-
Notifications
You must be signed in to change notification settings - Fork 0
/
slide.html
62 lines (59 loc) · 1.63 KB
/
slide.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>slide</title>
<link rel="stylesheet" type="text/css" href="./slide.css">
</head>
<body>
<div class="mg-slide s1">
<div class="mg-slide-container">
<div class="mg-slide-item">
<div class="img" style="background-image: url(./1.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./2.png);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./3.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./1.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./2.png);"></div>
</div>
</div>
</div>
<br>
<br>
<div class="mg-slide s2">
<div class="mg-slide-container">
<div class="mg-slide-item">
<div class="img" style="background-image: url(./1.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./2.png);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./3.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./1.jpg);"></div>
</div>
<div class="mg-slide-item">
<div class="img" style="background-image: url(./2.png);"></div>
</div>
</div>
</div>
<script type="text/javascript" src="./slide.js"></script>
<script type="text/javascript">
const slide = new mSlide('.s1', {
onSlideEnd(v) {
// alert(v)
}
})
</script>
</body>
</html>