-
Notifications
You must be signed in to change notification settings - Fork 2
/
random.html
606 lines (549 loc) · 18.4 KB
/
random.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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
<body>
<!-- Side Navigation -->
<nav class="w3-sidebar w3-bar-block w3-card w3-animate-left w3-center" style="display:none" id="mySidebar">
<h1 class="w3-xxxlarge w3-text-theme">Side Navigation</h1>
<button class="w3-bar-item w3-button" onclick="w3_close()">Close <i class="fa fa-remove"></i></button>
<a href="#" class="w3-bar-item w3-button">Link 1</a>
<a href="#" class="w3-bar-item w3-button">Link 2</a>
<a href="#" class="w3-bar-item w3-button">Link 3</a>
<a href="#" class="w3-bar-item w3-button">Link 4</a>
</nav>
<!-- Header -->
<header class="w3-container w3-theme w3-padding" id="myHeader">
<i onclick="w3_open()" class="fa fa-bars w3-xlarge w3-button w3-theme"></i>
<div class="w3-center">
<h4>BEAUTIFUL RESPONSIVE WEB SITES</h4>
<h1 class="w3-xxxlarge w3-animate-bottom">BUILT WITH W3.CSS</h1>
<div class="w3-padding-32">
<button class="w3-btn w3-xlarge w3-dark-grey w3-hover-light-grey" onclick="document.getElementById('id01').style.display='block'" style="font-weight:900;">LEARN W3.CSS</button>
</div>
</div>
</header>
<!-- Modal -->
<div id="id01" class="w3-modal">
<div class="w3-modal-content w3-card-4 w3-animate-top">
<header class="w3-container w3-theme-l1">
<span onclick="document.getElementById('id01').style.display='none'"
class="w3-button w3-display-topright">×</span>
<h4>Oh snap! We just showed you a modal..</h4>
<h5>Because we can <i class="fa fa-smile-o"></i></h5>
</header>
<div class="w3-padding">
<p>Cool huh? Ok, enough teasing around..</p>
<p>Go to our <a class="w3-btn" href="/w3css/default.asp">W3.CSS Tutorial</a> to learn more!</p>
</div>
<footer class="w3-container w3-theme-l1">
<p>Modal footer</p>
</footer>
</div>
</div>
<div class="w3-row-padding w3-center w3-margin-top">
<div class="w3-third">
<div class="w3-card w3-container" style="min-height:460px">
<h3>Responsive</h3><br>
<i class="fa fa-desktop w3-margin-bottom w3-text-theme" style="font-size:120px"></i>
<p>Built-in responsiveness</p>
<p>Mobile first fluid grid</p>
<p>Fits any screen sizes</p>
<p>PC Tablet and Mobile</p>
</div>
</div>
<div class="w3-third">
<div class="w3-card w3-container" style="min-height:460px">
<h3>Standard CSS</h3><br>
<i class="fa fa-css3 w3-margin-bottom w3-text-theme" style="font-size:120px"></i>
<p>Standard CSS only</p>
<p>Easy to learn</p>
<p>No need for jQuery</p>
<p>No JavaScript library</p>
</div>
</div>
<div class="w3-third">
<div class="w3-card w3-container" style="min-height:460px">
<h3>Design</h3><br>
<i class="fa fa-diamond w3-margin-bottom w3-text-theme" style="font-size:120px"></i>
<p>Paper like design</p>
<p>Bold colors and shadows</p>
<p>Equal across platforms</p>
<p>Equal across devices</p>
</div>
</div>
</div>
<div class="w3-container">
<hr>
<div class="w3-center">
<h2>Color Classes</h2>
</div>
<div class="w3-row">
<div class="w3-col w3-container m2 w3-red"><p>Red</p></div>
<div class="w3-col w3-container m2 w3-blue"><p>Blue</p></div>
<div class="w3-col w3-container m2 w3-blue-grey"><p>Blue Grey</p></div>
<div class="w3-col w3-container m2 w3-teal"><p>Teal</p></div>
<div class="w3-col w3-container m2 w3-yellow"><p>Yellow</p></div>
<div class="w3-col w3-container m2 w3-orange"><p>Orange</p></div>
</div>
<hr>
<div class="w3-center">
<h2>Built-In Responsiveness</h2>
<p class="w3-large">Resize the page to see the effect!</p>
</div>
<br>
<div class="w3-row w3-border">
<div class="w3-half w3-container w3-blue w3-border">
<h5>w3-half</h5>
<p>The w3-half class uses half (50%) of the screen window.</p>
<p>On small screens (max 600 pixels) it automatically resizes to full screen width.</p>
</div>
<div class="w3-half w3-container">
<h5>w3-half</h5>
</div>
</div>
<br>
<div class="w3-row w3-border">
<div class="w3-third w3-container w3-green">
<h5>w3-third</h5>
<p>The w3-third class uses one third (33.33%) of the screen widow.</p>
<p>On small screens (max 600 pixels) it automatically resizes to full screen width.</p>
</div>
<div class="w3-third w3-container">
<h5>w3-third</h5>
</div>
<div class="w3-third w3-container">
<h5>w3-third</h5>
</div>
</div>
<br>
<div class="w3-row w3-border">
<div class="w3-quarter w3-container w3-red">
<h5>w3-quarter</h5>
<p>The w3-quarter class uses one quarter (25%) of the screen window.</p>
<p>On small screens (max 600 pixels) it automatically resizes to full screen width.</p>
</div>
<div class="w3-quarter w3-container">
<h5>w3-quarter</h5>
</div>
<div class="w3-quarter w3-container">
<h5>w3-quarter</h5>
</div>
<div class="w3-quarter w3-container">
<h5>w3-quarter</h5>
</div>
</div>
<div class="w3-center">
<h2>Containers</h2>
<p>Use containers to create headers, sections and footers.</p>
</div>
<header class="w3-container w3-blue-grey">
<h2>Header</h2>
</header>
<div class="w3-padding w3-white w3-display-container">
<span onclick="this.parentElement.style.display='none'" class="w3-button w3-display-topright"><i class="fa fa-remove"></i></span>
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.</p>
<p>By the way, you can add a close icon to all containers if you want the ability to hide them. Look to your right!</p>
</div>
<footer class="w3-container w3-blue-grey">
<h5>Footer</h5>
<p class="w3-opacity">Footer information goes here</p>
</footer>
<hr>
<div class="w3-center">
<h2>Color Themes</h2>
<p>The color themes have been designed to work harmoniously with each other.</p>
</div>
</div>
<div class="w3-row-padding">
<div class="w3-half">
<div class="w3-card white">
<div class="w3-container w3-indigo">
<h3>Theme Indigo</h3>
</div>
<div class="w3-container">
<h3 class="w3-text-indigo">Movies 2014</h3>
</div>
<ul class="w3-ul w3-border-top">
<li>
<h3>Frozen</h3>
<p>The response to the animations was ridiculous</p>
</li>
<li>
<h3>The Fault in Our Stars</h3>
<p>Touching, gripping and genuinely well made</p>
</li>
<li>
<h3>The Avengers</h3>
<p>A huge success for Marvel and Disney</p>
</li>
</ul>
<div class="w3-container w3-indigo w3-large"><span class="w3-right">Next</span></div>
</div>
</div>
<div class="w3-half">
<div class="w3-card white">
<div class="w3-container w3-theme">
<h3>Theme</h3>
</div>
<div class="w3-container">
<h3 class="w3-text-theme">Movies 2014</h3>
</div>
<ul class="w3-ul w3-border-top">
<li>
<h3>Frozen</h3>
<p>The response to the animations was ridiculous</p>
</li>
<li>
<h3>The Fault in Our Stars</h3>
<p>Touching, gripping and genuinely well made</p>
</li>
<li>
<h3>The Avengers</h3>
<p>A huge success for Marvel and Disney</p>
</li>
</ul>
<div class="w3-container w3-theme w3-large"><span class="w3-right">Next</span></div>
</div>
</div>
</div>
<div class="w3-container w3-center">
<hr>
<h3>Paper-like Cards with Shadows</h3>
</div>
<div class="w3-row-padding">
<div class="w3-third">
<div class="w3-card">
<img src="/w3images/car.jpg" alt="Car" style="width:100%">
<div class="w3-container">
<p>w3-card</p>
</div>
</div>
</div>
<div class="w3-third">
<div class="w3-card-4">
<img src="/w3images/car.jpg" alt="Car" style="width:100%">
<div class="w3-container">
<p>w3-card-4</p>
</div>
</div>
</div>
<div class="w3-third">
<div class="w3-card-4">
<img src="/w3images/car.jpg" alt="Car" style="width:100%">
<div class="w3-container">
<p>w3-card-4</p>
</div>
</div>
</div>
</div>
<div class="w3-container">
<hr>
<div class="w3-center">
<h2>Tables</h2>
<p w3-class="w3-large">Don't worry. W3.CSS takes care of your tables.</p>
</div>
<div class="w3-responsive w3-card-4">
<table class="w3-table w3-striped w3-bordered">
<thead>
<tr class="w3-theme">
<th>First Name</th>
<th>Last Name</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr class="w3-white">
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>Adam</td>
<td>Johnson</td>
<td>67</td>
</tr>
</tbody>
</table>
</div>
<hr>
<h2 class="w3-center">Forms and Lists</h2>
</div>
<div class="w3-row-padding">
<div class="w3-half">
<form class="w3-container w3-card-4">
<h2>Input Form</h2>
<div class="w3-section">
<input class="w3-input" type="text" required>
<label>Name</label>
</div>
<div class="w3-section">
<input class="w3-input" type="text" required>
<label>Email</label>
</div>
<div class="w3-section">
<input class="w3-input" type="text" required>
<label>Subject</label>
</div>
<div class="w3-row">
<div class="w3-half">
<input id="milk" class="w3-check" type="checkbox" checked="checked">
<label>Milk</label>
<br>
<input id="sugar" class="w3-check" type="checkbox">
<label>Sugar</label>
<br>
<input id="lemon" class="w3-check" type="checkbox" disabled>
<label>Lemon (Disabled)</label>
<br><br>
</div>
<div class="w3-half">
<input id="male" class="w3-radio" type="radio" name="gender" value="male" checked>
<label>Male</label>
<br>
<input id="female" class="w3-radio" type="radio" name="gender" value="female">
<label>Female</label>
<br>
<input id="unknown" class="w3-radio" type="radio" name="gender" value="" disabled>
<label> Don't know (Disabled)</label>
</div>
</div>
</form>
</div>
<div class="w3-half">
<div class="w3-card-4 w3-container">
<h2>Lists</h2>
<ul class="w3-ul w3-margin-bottom">
<li>Jill</li>
<li>Eve</li>
<li>Adam</li>
</ul>
<br>
<ul class="w3-ul w3-border w3-hoverable">
<li class="w3-theme">Jill</li>
<li>Eve</li>
<li>Adam</li>
<li>Steve</li>
</ul>
<br>
</div>
</div>
</div>
<hr>
<h2 class="w3-center">Progress Bars</h2>
<div class="w3-container">
<div class="w3-light-gray">
<div id="myBar" class="w3-center w3-padding w3-theme" style="width:5%">5%</div>
</div><br>
<button class="w3-btn w3-theme" onclick="move()">Click Me</button>
</div>
<hr>
<h2 class="w3-center">Slideshows</h2>
<div class="w3-content" style="max-width:800px;position:relative">
<img class="mySlides w3-animate-opacity" src="/w3images/snow.jpg" style="width:100%">
<img class="mySlides w3-animate-opacity" src="/w3images/lights.jpg" style="width:100%">
<img class="mySlides w3-animate-opacity" src="/w3images/mountains.jpg" style="width:100%">
<img class="mySlides w3-animate-opacity" src="/w3images/forest.jpg" style="width:100%">
<a class="w3-button w3-hover-dark-grey" style="position:absolute;top:45%;left:0;" onclick="plusDivs(-1)">❮</a>
<a class="w3-button w3-hover-dark-grey" style="position:absolute;top:45%;right:0;" onclick="plusDivs(+1)">❯</a>
</div>
<div class="w3-container">
<hr>
<h2 class="w3-center">Navigation</h2>
<div class="w3-bar w3-theme">
<a href="#" class="w3-bar-item w3-button w3-padding-16">Home</a>
<a href="#" class="w3-bar-item w3-button w3-padding-16">Link 1</a>
<div class="w3-dropdown-hover">
<button class="w3-button w3-padding-16">
Dropdown <i class="fa fa-caret-down"></i>
</button>
<div class="w3-dropdown-content w3-card-4 w3-bar-block">
<a href="javascript:void(0)" class="w3-bar-item w3-button">Link 1</a>
<a href="javascript:void(0)" class="w3-bar-item w3-button">Link 2</a>
<a href="javascript:void(0)" class="w3-bar-item w3-button">Link 3</a>
</div>
</div>
</div>
<hr>
<h2 class="w3-center">Accordions</h2>
<button onclick="myAccFunc('Demo1')" class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">Open Section 1</button>
<div id="Demo1" class="w3-hide">
<div class="w3-container">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
<button onclick="myAccFunc('Demo2')" class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">Open Section 2</button>
<div id="Demo2" class="w3-hide">
<a href="#" class="w3-button w3-block w3-left-align">Link 1</a>
<a href="#" class="w3-button w3-block w3-left-align">Link 2</a>
<a href="#" class="w3-button w3-block w3-left-align">Link 3</a>
</div>
<button onclick="myAccFunc('Demo3')" class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">Open Section 3</button>
<div id="Demo3" class="w3-hide w3-black">
<div class="w3-container">
<p>Accordion with Images:</p>
<img src="img_snowtops.jpg" style="width:30%;" class="w3-animate-zoom">
<p>French Alps</p>
</div>
</div>
<hr>
<h2 class="w3-center">Tabs</h2>
<div class="w3-border">
<div class="w3-bar w3-theme">
<button class="w3-bar-item w3-button testbtn w3-padding-16" onclick="openCity(event,'London')">London</button>
<button class="w3-bar-item w3-button testbtn w3-padding-16" onclick="openCity(event,'Paris')">Paris</button>
<button class="w3-bar-item w3-button testbtn w3-padding-16" onclick="openCity(event,'Tokyo')">Tokyo</button>
</div>
<div id="London" class="w3-container city w3-animate-opacity">
<h2>London</h2>
<p>London is the capital city of England.</p>
<p>It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
</div>
<div id="Paris" class="w3-container city w3-animate-opacity">
<h2>Paris</h2>
<p>Paris is the capital of France.</p>
<p>The Paris area is one of the largest population centers in Europe, with more than 12 million inhabitants.</p>
</div>
<div id="Tokyo" class="w3-container city w3-animate-opacity">
<h2>Tokyo</h2>
<p>Tokyo is the capital of Japan.</p>
<p>It is the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
</div>
</div>
<hr>
<h2 class="w3-center">Buttons</h2>
<div class="w3-center">
<br>
<a class="w3-button w3-theme">Button</a>
<a class="w3-button w3-theme">Button</a>
<a class="w3-button w3-theme-d3 w3-disabled">Button</a>
<br><br>
<a class="w3-button w3-circle w3-large w3-black"><i class="fa fa-plus"></i></a>
<a class="w3-button w3-circle w3-large w3-theme"><i class="fa fa-plus"></i></a>
<a class="w3-button w3-circle w3-large w3-card-4"><i class="fa fa-plus"></i></a>
</div>
<br>
<div class="w3-center">
<div class="w3-dropdown-hover">
<button class="w3-button w3-theme">Dropdown <i class="fa fa-caret-down"></i></button>
<div class="w3-dropdown-content w3-bar-block w3-border">
<a href="#" class="w3-bar-item w3-button">Link 1</a>
<a href="#" class="w3-bar-item w3-button">Link 2</a>
<a href="#" class="w3-bar-item w3-button">Link 3</a>
</div>
</div>
</div>
</div>
<hr>
<div class="w3-center">
<h2>Pagination</h2>
<!-- Pagination -->
<div class="w3-center w3-padding-32">
<div class="w3-bar">
<a href="#" class="w3-bar-item w3-button w3-hover-theme">«</a>
<a href="#" class="w3-bar-item w3-button w3-theme w3-hover-theme">1</a>
<a href="#" class="w3-bar-item w3-button w3-hover-theme">2</a>
<a href="#" class="w3-bar-item w3-button w3-hover-theme">3</a>
<a href="#" class="w3-bar-item w3-button w3-hover-theme">4</a>
<a href="#" class="w3-bar-item w3-button w3-hover-theme">5</a>
<a href="#" class="w3-bar-item w3-button w3-hover-theme">»</a>
</div>
</div>
</div>
<br>
<!-- Footer -->
<footer class="w3-container w3-theme-dark w3-padding-16">
<h3>Footer</h3>
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
<div style="position:relative;bottom:55px;" class="w3-tooltip w3-right">
<span class="w3-text w3-theme-light w3-padding">Go To Top</span>
<a class="w3-text-white" href="#myHeader"><span class="w3-xlarge">
<i class="fa fa-chevron-circle-up"></i></span></a>
</div>
<p>Remember to check out our <a href="w3css_references.asp" class="w3-btn w3-theme-light" target="_blank">W3.CSS Reference</a></p>
</footer>
<!-- Script for Sidebar, Tabs, Accordions, Progress bars and slideshows -->
<script>
// Side navigation
function w3_open() {
var x = document.getElementById("mySidebar");
x.style.width = "100%";
x.style.fontSize = "40px";
x.style.paddingTop = "10%";
x.style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
}
// Tabs
function openCity(evt, cityName) {
var i;
var x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
var activebtn = document.getElementsByClassName("testbtn");
for (i = 0; i < x.length; i++) {
activebtn[i].className = activebtn[i].className.replace(" w3-dark-grey", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " w3-dark-grey";
}
var mybtn = document.getElementsByClassName("testbtn")[0];
mybtn.click();
// Accordions
function myAccFunc(id) {
var x = document.getElementById(id);
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
// Slideshows
var slideIndex = 1;
function plusDivs(n) {
slideIndex = slideIndex + n;
showDivs(slideIndex);
}
function showDivs(n) {
var x = document.getElementsByClassName("mySlides");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
showDivs(1);
// Progress Bars
function move() {
var elem = document.getElementById("myBar");
var width = 5;
var id = setInterval(frame, 10);
function frame() {
if (width == 100) {
clearInterval(id);
} else {
width++;
elem.style.width = width + '%';
elem.innerHTML = width * 1 + '%';
}
}
}
</script>
</body>
</html>