-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.html
117 lines (104 loc) · 3.03 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
<!doctype html>
<html>
<head>
<title>Xpull demo</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Add xpull plugin files-->
<link rel="stylesheet" href="xpull.css">
<script src="xpull.js"></script>
<script>
// jquery document ready
$(function () {
// Init xpull plugin for demo
$('#demo').xpull({
'callback': function () {
console.log('Released...');
}
});
});
</script>
<style type="text/css">
body {
padding-top: 20px;
}
#demo {
width: 100%;
height: 200px;
overflow: auto;
-webkit-overflow-scrolling: touch;
border: 1px solid #ccc;
}
/* Main marketing message */
.jumbotron {
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1><a href="https://github.com/sjovanovic/xpull">Xpull</a> demo</h1>
<p>pull to refresh jQuery plugin for touch devices</p>
</div>
<p class="lead">Pull the below list to refresh.</p>
<div id="demo">
<!-- Markup for xpull plugin -->
<div class="xpull">
<div class="xpull__start-msg">
<div class="xpull__start-msg-text">Pull Down & Release to Refresh</div>
<div class="xpull__arrow"></div>
</div>
<div class="xpull__spinner">
<div class="xpull__spinner-circle"></div>
</div>
</div>
<!-- End Markup for xpull plugin -->
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
</div>
</div>
</body>
</html>