-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
337 lines (326 loc) · 11.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="shortcut icon" type="image/x-icon" href="/asset/img/favicon.ico"/>
<title>Mobile Application UI</title>
<script>
var show_page1 = function () {
var p1 = document.getElementById('page1');
var p2 = document.getElementById('page2');
p2.classList.remove('page-active');
p1.classList.add('page-active');
};
var show_page2 = function (direction) {
var p1 = document.getElementById('page1');
var p2 = document.getElementById('page2');
p2.className = 'page page-swap page-' + direction;
window.requestAnimationFrame(function() {
p1.classList.remove('page-active');
p2.classList.remove('page-swap');
p2.classList.add('page-active');
});
};
var show_menu = function () {
var page = document.getElementById('page1');
var menu = document.getElementById('menu');
page.classList.remove('page-active');
menu.classList.add('page-active');
};
document.addEventListener('DOMContentLoaded', function (e, t) {
document.getElementById('menu-overlay').addEventListener('click', function (e, t) {
console.log('click overlay');
var page = document.getElementById('page1');
var menu = document.getElementById('menu');
menu.classList.remove('page-active');
page.classList.add('page-active');
});
});
</script>
</head>
<body>
<div id="page1" class="page page-active">
<header>
<a class="back"><i class="icon icon-back"></i><span>Back</span></a>
<h1>Hello its header</h1>
<a class="menu" onclick="show_menu()"><i class="icon icon-bars"></i></a>
</header>
<nav>
<a class="active">Click 1</a>
<a>Menu 2</a>
</nav>
<main>
<section>
<h2>Here goes some text</h2>
<article>
<h3>Title for article</h3>
<p>You can <a onclick="show_page2('right');">click</a> to show next page.</p>
<p><a onclick="show_page2('top')">Show top</a>, <a onclick="show_page2('left')">Show left</a>, <a onclick="show_page2('right')">Show right</a>, <a onclick="show_page2('bottom')">Show bottom</a></p>
<p>Second paragraph with some text here.</p>
<p>Third paragraph with some text here.</p>
<p>Paragraph <a href="">with link</a> to check it that all works properly.</p>
</article>
</section>
<section>
<h2>Simple list goes here</h2>
<ul>
<li>Line 1</li>
<li>Line 2</li>
<li>Line 3</li>
<li>Line 4</li>
<li>Line 5</li>
</ul>
</section>
<section>
<h2>Some buttons example</h2>
<p>
<button>Simple</button>
<button class="button-raised">Raised</button>
<button class="button-raised button-fill">Fill</button>
</p>
<p class="button-list">
<button>Simple</button>
<button>Simple</button>
<button>Simple</button>
</p>
<p><button class="button-raised button-fill button-block">Block button</button></p>
<p><button class="button-raised button-fill button-float"><i class="icon icon-plus"></i></button></p>
</section>
<section>
<h2>Time for form</h2>
<form action="" method="post">
<fieldset>
<legend>Group of input #1</legend>
<p>
<input type="text" name="text1" required/>
<span class="bar"></span>
<span class="highlight"></span>
<label>Text 1</label>
</p>
<p>
<input type="text" name="text2" required/>
<span class="bar"></span>
<span class="highlight"></span>
<label>Text 2</label>
</p>
<p>
<select>
<option value="1">
Value 1
</option>
<option value="2">
Value 2
</option>
</select>
<span class="bar"></span>
<span class="highlight"></span>
<label>Select 1</label>
</p>
</fieldset>
<fieldset>
<legend>Group of input #2</legend>
<p>
<input type="text" name="text3" required/>
<span class="bar"></span>
<span class="highlight"></span>
<label>Text 3</label>
</p>
<p>
<input type="text" name="text4" required/>
<span class="bar"></span>
<span class="highlight"></span>
<label>Text 4</label>
</p>
</fieldset>
<fieldset>
<legend>Switches</legend>
<p class="switch">
<input type="checkbox" name="switch1"/>
<label>Switch me</label>
</p>
<p class="switch">
<input type="checkbox" name="switch2"/>
<label>Switch me</label>
</p>
</fieldset>
<fieldset>
<legend>Radio buttons</legend>
<p onclick="document.getElementById('radio-popup').classList.add('popup-show');">Click me</p>
<div id="radio-popup" class="popup">
<section>
<h3>Radio buttons example</h3>
<p class="radio">
<input type="radio" name="radio" value="radio1"/>
<label>Radio 1</label>
</p>
<p class="radio">
<input type="radio" name="radio" value="radio2"/>
<label>Radio 2</label>
</p>
<p class="radio">
<input type="radio" name="radio" value="radio3"/>
<label>Radio 3</label>
</p>
<p class="align-right">
<button onclick="document.getElementById('radio-popup').classList.remove('popup-show')">Close it</button>
</p>
</section>
</div>
<div class="overlay"></div>
</fieldset>
<p><button class="button-raised button-fill button-block">Submit</button></p>
</form>
</section>
<section>
<button class="button-block" onclick="document.getElementById('popup').classList.add('popup-show');">Show popup</button>
<div id="popup" class="popup">
<section>
<h3>Popup example</h3>
<p>Hello its just a popup</p>
<p>More text goes here. More text goes here. More text goes here. More text goes here. More text goes here. More text goes here.</p>
<p class="align-right">
<button onclick="document.getElementById('popup').classList.remove('popup-show')">Close it</button>
</p>
</section>
</div>
<div class="overlay"></div>
</section>
<section>
<h2>Lets show some icons</h2>
<p style="background-color: #000">
<i class="icon icon-back"></i>
<i class="icon icon-forward"></i>
<i class="icon icon-bars"></i>
<i class="icon icon-prev"></i>
<i class="icon icon-next"></i>
<i class="icon icon-plus"></i>
</p>
</section>
<section class="card-list">
<article>
<h3>Hello from article title</h3>
<p>Some funny content goes here</p>
<p class="action-list align-right"><button>Some button</button></p>
</article>
<article>
<div class="row">
<aside>
<img src="/asset/img/card-image.jpg" alt="" width=="50" height="50"/>
</aside>
<div class="box">
<h3>Hello from article title</h3>
<p>Some funny content goes here</p>
</div>
</div>
<p class="action-list align-right"><button>Some button</button></p>
</article>
<article>
<div class="row">
<div class="box">
<h3>Hello from article title</h3>
<p>Some funny content goes here</p>
</div>
<aside>
<img src="/asset/img/card-image.jpg" alt="" width=="50" height="50"/>
</aside>
</div>
<p class="action-list align-right"><button>Some button</button></p>
</article>
</section>
<section class="link-list">
<h2>Simple block link list</h2>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</section>
<section class="link-list">
<h2>Not so simple block link list</h2>
<ul>
<li>
<h3>Name</h3>
<span>description</span>
</li>
<li>
<h3>Name</h3>
<span>Description more</span>
</li>
<li>
<h3>Name</h3>
<span>Description</span>
</li>
</ul>
</section>
<section class="link-list">
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</section>
<section>
<h2>Preloader example</h2>
<p>
<span class="preloader"></span>
</p>
</section>
</main>
</div>
<div id="page2" class="page page-right">
<header>
<a class="back" onclick="show_page1()"><i class="icon icon-back"></i></a>
<h1>Hello its header</h1>
</header>
<main>
<section>
<h2>Here goes some text</h2>
<article>
<h3>Title for article</h3>
<p>First paragraph with some text here.</p>
<p>Second paragraph with some text here.</p>
<p>Third paragraph with some text here.</p>
<p>Paragraph <a href="">with link</a> to check it that all works properly.</p>
</article>
</section>
</main>
</div>
<div id="menu" class="page page-left page-menu">
<header>
<h1>Just simple menu</h1>
</header>
<main>
<section class="link-list">
<h2>Here goes links</h2>
<ul>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
</ul>
</section>
</main>
</div>
<div id="menu-overlay" class="overlay"></div>
</body>
</html>