-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathindex.html
56 lines (49 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no, shrink-to-fit=no">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery-1.10.2.js"></script>
<script type="text/javascript" src="jquery.touchSwipe.js"></script>
<script type="text/javascript" src="jquery.horizonScroll.js"></script>
</head>
<body>
<header data-role="header" id="header">
<nav class="menu">
<ul>
<li>
<a href="#section-section1"><span>Section</span></a>
</li>
<li>
<a href="#section-section2"><span>Section</span></a>
</li>
<li>
<a href="#section-section3"><span>Section</span></a>
</li>
<li>
<a href="#section-section4"><span>Section</span></a>
</li>
</ul>
</nav>
</header>
<div class="horizon-prev"><img src="images/l-arrow.png"></div>
<div class="horizon-next"><img src="images/r-arrow.png"></div>
<section data-role="section" id="section-section1"></section>
<section data-role="section" id="section-section2"></section>
<section data-role="section" id="section-section3"></section>
<section data-role="section" id="section-section4">
<div class="go-to-2">Go to panel 2 via ID.</div>
</section>
<footer data-role="footer" id="footer"></footer>
<script type="text/javascript">
// By default, swipe is enabled.
$('section').horizon();
// If you do not want to include another plugin, TouchSwipe, you can set it to false in the default options by passing in the option as false.
//$('section').horizon({swipe: false});
$(document).on('click', '.go-to-2', function () {
$(document).horizon('scrollTo', 'section-section2');
});
</script>
</body>
</html>