-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre_menubar_index.html
executable file
·227 lines (174 loc) · 4.63 KB
/
pre_menubar_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
<!DOCTYPE html>
<html>
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"
/>
<link
rel="stylesheet"
href="https://unpkg.com/swiper@8/swiper-bundle.min.css"
/>
<style>
html,
body {
position: relative;
height: 100%;
background: #ffffff;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color: #000;
margin: 0;
padding: 0;
}
.swiper {
width: 100vw;
height: 89vh;
}
.swiper-wrapper {
height:auto !important;
width:100%;
}
.swiper-slide {
height: 89vh;
width: 90vw;
/* background-size: contain; */
align-items: center;
text-align: center;
font-size: 18px;
background: #fff;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
.swiper-slide img {
display: block;
width: auto
height: 89vh;
max-height: 90%;
max-width: 80%
}
.swiper-button-next
{
bottom: 30px;
top: auto;
transform: translateX(-10%);
left:10x;
padding: 10px;
color: #000 !important;
fill: black !important;
stroke: black !important;
}
.swiper-button-prev {
bottom: 30px;
top: auto;
transform: translateX(+10%);
right:10x;
padding: 10px;
color: #000 !important;
fill: black !important;
stroke: black !important;
}
span.swiper-pagination-bullet.swiper-pagination-bullet-active {
background-color: black;
opacity: 1;
}
.swiper-pagination-bullet-2 {
width: 20px;
height: 20px;
text-align: center;
line-height: 20px;
font-size: 12px;
color:#000;
opacity: 1;
background: rgba(0,0,0,0.2);
}
.swiper-pagination-bullet-active-2 {
color:#fff;
background: #007aff;
}
.swiper-pagination-vertical {
/*how can i add the pagination-bullet-2 and active-2 to this class? */
}
</style>
</head>
<body>
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<!-- Slider main container -->
<div class="swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide"><img src="images/bandanna.jpeg"></div>
<div class="swiper-slide">
<div class="swiper mySwiper2 swiper-v">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="images/vines.jpg"></div>
<div class="swiper-slide"><img src="images/vines.jpg"></div>
<div class="swiper-slide"><img src="images/vines.jpg"></div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
<div class="swiper-slide"><img src="images/bikeWitch.jpeg"></div>
<div class="swiper-slide"><img src="images/chain.jpg"></div>
<div class="swiper-slide"><img src="images/floater.jpg"></div>
<div class="swiper-slide"><img src="images/legs.jpg"></div>
<div class="swiper-slide"><img src="images/medusaMom.jpg"></div>
<div class="swiper-slide"><img src="images/streetwalker.jpeg"></div>
<div class="swiper-slide"><img src="images/vines.jpg"></div>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- If we need scrollbar -->
</div>
<script>
const swiper = new Swiper('.swiper', {
// Optional parameters
loop: true,
centeredSlides: true,
spaceBetween: 0,
keyboard: {
enabled: true,
},
// If we need pagination
pagination: {
el: ".swiper-pagination",
clickable: true,
},
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
// And if we need scroll
});
var swiper2 = new Swiper(".mySwiper2", {
direction: "vertical",
loop: true,
centeredSlides: true,
spaceBetween: 0,
keyboard: {
enabled: true,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
});
</script>
</body>
</html>