Files
ionic-framework/test/scroll.html
2013-10-23 12:33:53 -05:00

32 lines
925 B
HTML

<html>
<head>
<meta charset="utf-8">
<title>Scroll</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="../dist/css/ionic.css" rel="stylesheet">
</head>
<body>
<section>
<div class="bar bar-header bar-secondary">
<a href="#" class="button button-danger button-clear">Edit</a>
<h1 class="title">Scroll Me</h1>
<a href="#" class="button button-danger button-clear">Delete</a>
</div>
<div id="scroller" class="scroll">
<div style="height: 4000px; background: url('tree_bark.png') repeat;"></div>
</div>
</section>
<script src="../dist/js/ionic.js"></script>
<script>
var s = document.getElementById('scroller');
var scroll = new ionic.views.Scroll({
el: s
});
</script>
</body>
</html>