-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
186 lines (170 loc) · 8.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script src="script.js" defer></script>
<link rel="stylesheet" href="styles.css">
<div id="story1" class="story"> <!-- SET OF STORIES THAT CYCLE -->
<button class="up" onclick="showStory('story3')">⌃</button>
<div id="images" class="images1"> <!-- SET OF IMAGES THAT CYCLE -->
<img id="image" class="image1"
src="https://images.unsplash.com/photo-1654222182084-9128dbf0fa7b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDR8Q0R3dXdYSkFiRXd8fGVufDB8fHx8&w=1000&q=80">
<img id="image" class="image1"
src="https://images.unsplash.com/photo-1654107333878-5eeba7d5be9b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDh8Q0R3dXdYSkFiRXd8fGVufDB8fHx8&auto=format&fit=crop&w=500&q=60">
<img id="image" class="image1"
src="https://images.unsplash.com/photo-1653745289778-bacf6d8a96e5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDIyfENEd3V3WEpBYkV3fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt=''>
<a id="prev" title="Previous">❮</a>
<a id="next" title="Next">❯</a>
</div>
<button id="desc1" class="desc" onclick="showHide('info1','story1')">⌄ Product 1 Information
⌄</button>
<div class="dots">
<span id="dot" class="dot1"></span>
<span id="dot" class="dot1"></span>
<span id="dot" class="dot1"></span>
</div>
<button class="down" onclick="showStory('story2')">⌄</button>
</div>
<div id="info1" class="info" style="display: none;"> <!-- INFO PAGE THAT IS HIDDEN AND SHOWN (SWITCHES BETWEEN STORY AND INFO PAGE) -->
<nav class="back-button">
<button id="back1" class="back" onclick="showHide('story1','info1')"><span>⌃ Back
⌃</span></button>
</nav>
<h4>First item</h4>
<hr width="350px" align="centre">
<p class="sizes">Size Chart</p>
<div class="table">
<table>
<tr>
<td>S</td>
<td>30"</td>
</tr>
<tr>
<td>M</td>
<td>35"</td>
</tr>
<tr>
<td>L</td>
<td>40"</td>
</tr>
</table>
</div>
<p class="d-info">The Flexible Box Module, usually referred to as flexbox, was designed as a
one-dimensional layout model, and as a method that could offer space distribution between items in
an interface and powerful alignment capabilities. <br> <br> This article gives an outline of the main
features
of flexbox, which we will be exploring in more detail in the rest of these guides.</p>
<button class="cart"><span>Cart</span></button>
<button class="wl"><span>Wishlist</span></button>
</div>
<div id="story2" class="story" style="display: none;">
<button class="up" onclick="showStory('story1')">⌃</button>
<div id="images" class="images2">
<img id="image" class="image2"
src="https://images.unsplash.com/photo-1652946544979-3427f4ade436?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=607&q=80">
<img id="image" class="image2"
src="https://images.unsplash.com/photo-1657899316601-5a4e2da6af25?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80">
<!-- BUTTONS FOR NAV -->
<a id="prev" title="Previous">❮</a>
<a id="next" title="Next">❯</a>
</div>
<button id="desc2" class="desc" onclick="showHide('info2','story2')">⌄ Product 2 Information
⌄</button>
<div class="dots">
<span id="dot" class="dot2"></span>
<span id="dot" class="dot2"></span>
</div>
<button class="down" onclick="showStory('story3')">⌄</button>
</div>
<div id="info2" class="info" style="display: none;">
<nav class="back-button">
<button id="back2" class="back" onclick="showHide('story2','info2')"><span>⌃ Back
⌃</span></button>
</nav>
<h4>Second item</h4>
<hr width="350px" align="centre">
<p class="sizes">Size Chart</p>
<div class="table">
<table>
<tr>
<td>S</td>
<td>30"</td>
</tr>
<tr>
<td>M</td>
<td>35"</td>
</tr>
<tr>
<td>L</td>
<td>40"</td>
</tr>
</table>
</div>
<p class="d-info">The Flexible Box Module, usually referred to as flexbox, was designed as a
one-dimensional layout model, and as a method that could offer space distribution between items in
an interface and powerful alignment capabilities. <br> <br> This article gives an outline of the main
features
of flexbox, which we will be exploring in more detail in the rest of these guides.</p>
<button class="cart"><span>Cart</span></button>
<button class="wl"><span>Wishlist</span></button>
</div>
<div id="story3" class="story" style="display: none;">
<button class="up" onclick="showStory('story2')">⌃</button>
<div id="images" class="images3">
<video id="image" class="image3" autoplay loop src="pixels.mp4.mp4"></video>
<img id="image" class="image3"
src="https://images.unsplash.com/photo-1512692723619-8b3e68365c9c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80">
<!-- BUTTONS FOR NAV -->
<a id="prev" title="Previous">❮</a>
<a id="next" title="Next">❯</a>
</div>
<button id="desc3" class="desc" onclick="showHide('info3','story3')">⌄ Product 3 Information
⌄</button>
<div class="dots">
<span id="dot" class="dot3"></span>
<span id="dot" class="dot3"></span>
</div>
<button class="down" onclick="showStory('story1')">⌄</button>
</div>
<div id="info3" class="info" style="display: none;">
<nav class="back-button">
<button id="back2" class="back" onclick="showHide('story3','info3')"><span>⌃ Back
⌃</span></button>
</nav>
<h4>Third item</h4>
<hr width="350px" align="centre">
<p class="sizes">Size Chart</p>
<div class="table">
<table>
<tr>
<td>S</td>
<td>30"</td>
</tr>
<tr>
<td>M</td>
<td>35"</td>
</tr>
<tr>
<td>L</td>
<td>40"</td>
</tr>
</table>
</div>
<p class="d-info">The Flexible Box Module, usually referred to as flexbox, was designed as a
one-dimensional layout model, and as a method that could offer space distribution between items in
an interface and powerful alignment capabilities. <br> <br> This article gives an outline of the main
features
of flexbox, which we will be exploring in more detail in the rest of these guides.</p>
<button class="cart"><span>Cart</span></button>
<button class="wl"><span>Wishlist</span></button>
</div>
</body>
</html>