-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.php
More file actions
54 lines (46 loc) · 1.27 KB
/
scroll.php
File metadata and controls
54 lines (46 loc) · 1.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<style>
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
#wrap {
position: fixed;
display: block;
width: 100%;
height: 100%;
}
.wrap_section {
display: block;
height: 100%;
width: 100%;
border: 1px solid #000000;
}
</style>
<body>
<div id="wrap">
<section class="wrap_section">1</section>
<section class="wrap_section">2</section>
<section class="wrap_section">3</section>
<section class="wrap_section">4</section>
<section class="wrap_section">5</section>
</div>
<script>
console.log($.event.special.swipe);
$("body").swipe(function (e) {
console.log(e);
});
</script>
</body>
</html>