I would like to my app to be vertically scrollable and wanted to use iscroll to perform it.I am not really sure how to use. It seems that the app still can't vertically scroll. code:
<head>
<script type="text/javascript" src="iscroll.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
setTimeout(function () {
myScroll = new iScroll('container');
}, 100);
}
window.addEventListener('load', loaded, false);
</script>
</head>
<body>
<div class="container">
<div class = "topcontainer">
<div class = "buttons img1"> </div>
<div class = "buttonstext">
Gallery
</div>
</div>
<div class = "middlecontainer">
<div class = "buttons img2">
<a href="gallery.html">Biography</a>
</div>
</div>
<div class = "middlecontainer">
<div class = "buttons img3">
Pictures
</div>
</div>
</body>
Need some guidance where i am going wrong. Do i need to do something else?