forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.html
More file actions
48 lines (46 loc) · 1.23 KB
/
scroll.html
File metadata and controls
48 lines (46 loc) · 1.23 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
<!DOCTYPE html>
<html ng-app="ionic">
<head>
<script src="../../dist/js/ionic.bundle.js"></script>
<meta charset="utf-8">
<title>Scroll</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="../../dist/css/ionic.css" rel="stylesheet">
<style>
#filler {
border-top: 10px solid red;
border-bottom: 10px solid red;
}
.list-item {
padding: 10px;
}
</style>
</head>
<body>
<section class="view-full">
<div class="bar bar-header bar-secondary">
<h1 class="title">Scroll Me</h1>
</div>
<div id="scroller" class="scroll" style="top:44px">
<form>
<input type="text">
</form>
<ul class="list">
</ul>
</div>
</section>
<script src="../../dist/js/ionic.js"></script>
<script>
var s = document.getElementById('scroller');
for(var i = 0; i < 100; i++) {
var li = document.createElement('li');
li.className = 'item';
li.innerHTML = 'Item ' + i;
s.firstElementChild.appendChild(li);
}
var scroll = new ionic.views.Scroll({
el: s
});
</script>
</body>
</html>