-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
147 lines (131 loc) · 5.5 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
<!doctype html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="ms-slides.css">
<style>
/* CSS Styles */
body {
font-family: Arial, Helvetica, sans-serif;
}
.container {
width: 1200px;
margin: auto;
}
/* Developer Styles */
#slides {
width: 1200px;
height: 400px;
margin: auto;
}
.small-slides {
width: 300px;
height: 169px;
margin: auto;
}
.card-row {
display: flex;
justify-content: space-between;
}
.card-row > div {
margin: 1em;
flex: 1;
}
</style>
</head>
<body>
<div class="container">
<h1>MS Slides Demo</h1>
<!-- Big Slideshow -->
<!-- delay 8 secs transition time 0.4 secs-->
<div id="slides" class="ms-slides" data-delay="8000" data-transition="400">
<!-- Define the Slide Show Elements -->
<div class="ms-slides__inner">
<img src="images/bee-1200-400.jpg" width="1200" height="400" alt="bee">
<img src="images/beetle-1200-400.jpg" width="1200" height="400" alt="beetle">
<img src="images/dandelion-1200-400.jpg" width="1200" height="400" alt="dandelion">
<img src="images/ladybug-1200-400.jpg" width="1200" height="400" alt="ladybug">
</div>
<!-- Show Indicators -->
<ol class="ms-slides__indicators">
<!-- slide indicators -->
</ol>
<!-- Show Next and Previous Buttons -->
<a href="#" class="ms-slides__next-button"></a>
<a href="#" class="ms-slides__prev-button"></a>
</div>
<!-- Notes -->
<div>
<p>This example shows all features in use. Slides are changing every
8 seconds with 400 millisecond transition. The buttons and
indicators are visible.</p>
</div>
<!-- Big Slideshow -->
<!-- Row of Small Slideshows -->
<div class="card-row">
<div>
<!-- Slides with no options -->
<!-- delay 4 secs transition time 2 secs-->
<div id="slides-2" class="ms-slides small-slides" data-delay="4000" data-transition="2000">
<div class="ms-slides__inner">
<img src="images/hellebore-pollen-300-169.jpg" width="300" height="169" alt="hellbore">
<img src="images/li-pollen-300-169.jpg" width="300" height="169" alt="li pollen">
<img src="images/pollen-300-169.jpg" width="300" height="169" alt="pollen">
<img src="images/spores-300-169.jpg" width="300" height="169" alt="spores">
</div>
</div>
<!-- Notes -->
<div>
<p>This slideshow runs on it's own with no controls. Slides change
every 4 seconds with a 2second transition time.</p>
</div>
</div>
<div>
<!-- Slides with indicators -->
<!-- delay 5 secs transition time 0.8 secs -->
<div id="slides-3" class="ms-slides small-slides" data-delay="5000" data-transition="800">
<div class="ms-slides__inner">
<img src="images/Cactus_flower_pollen-300-169.jpg" width="300" height="169" alt="hellbore">
<img src="images/toxic-mold-spore-300-169.jpg" width="300" height="169" alt="li pollen">
<img src="images/yellow-polllen-300-169.jpg" width="300" height="169" alt="pollen">
<img src="images/zsa-300-169.jpg" width="300" height="169" alt="zsa">
</div>
<!-- Show Indicators -->
<ol class="ms-slides__indicators">
<!-- slide indicators -->
</ol>
</div>
<!-- Notes -->
<div>
<p>This slide show shows the indicators only. Slides change every
5 seconds with an 800 millisecond transition.</p>
</div>
</div>
<div>
<!-- Slides with Buttons -->
<!-- Delay time 0 slides only change when the buttons are clickes transition 0.2 secs -->
<div id="slides-4" class="ms-slides small-slides" data-delay="0" data-transition="2000">
<div class="ms-slides__inner">
<img src="images/p1-300-169.jpg" width="300" height="169" alt="hellbore">
<img src="images/p2-300-169.jpg" width="300" height="169" alt="li pollen">
<img src="images/p3-300-169.jpg" width="300" height="169" alt="pollen">
<img src="images/p4-300-169.jpg" width="300" height="169" alt="spores">
</div>
<!-- Show Next and Previous Buttons -->
<a href="#" class="ms-slides__next-button"></a>
<a href="#" class="ms-slides__prev-button"></a>
</div>
<div>
<p>This slide show shows the next and previous button. The delay is
set to 0 which allows slides to change only when a button is clicked.
The transition time is 2 seconds.</p>
</div>
</div>
</div>
</div>
<script src="ms-slides.js"></script>
<script>
// Other code
</script>
</body>
</html>