Files
ionic-framework/js/ext/angular/test/list-fit.html
2014-04-03 11:29:08 -06:00

52 lines
1.3 KiB
HTML

<html ng-app="ionic">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Sample UL</title>
<link href="../../../../dist/css/ionic.css" rel="stylesheet">
<script src="../../../../dist/js/ionic.bundle.js"></script>
</head>
<body>
<ion-content ng-controller="ContentCtrl" padding="false">
<ion-refresher on-refresh="onRefresh()" pulling-text="pull!" refreshing-text="refreshing!"></ion-refresher>
<p>...</p><br/><br/><br/>
<p>...</p><br/><br/><br/>
<p>...</p><br/><br/><br/>
<p>...</p><br/><br/><br/>
<p>...</p><br/><br/><br/>
<p>...</p><br/><br/><br/>
</ion-content>
<ion-footer-bar class="bar-assertive">
<h1 class="title">Footer!</h1>
</ion-footer-bar>
<script>
function ContentCtrl($scope, $timeout) {
$scope.onRefresh = function() {
$timeout(function() {
$scope.$broadcast('scroll.refreshComplete');
}, 1500);
};
$scope.more = [];
$scope.addMore = function() {
$timeout(function() {
var l = $scope.more.length;
for (var i=l; i<l+15; i++) {
$scope.more.push(i);
}
$scope.$broadcast('scroll.infiniteScrollComplete');
}, 1500);
};
}
</script>
</body>
</html>