-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (46 loc) · 1.69 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
</head>
<body ng-app="newsApp" ng-controller="newsController">
<ion-pane>
<ion-header-bar class="bar-positive">
<h1 class="title">News Reader</h1>
</ion-header-bar>
<ion-content>
<ion-refresher
pulling-text="Pull To Refresh..."
on-refresh="doRefresh()">
</ion-refresher>
<section class="list">
<article ng-repeat="newsArticle in news track by $index">
<a href="{{newsArticle.link}}" class="item item-avatar-left" ng-if="newsArticle.title">
<img ng-src="{{newsArticle.image}}">
<h2 class="noWhiteSpace">{{newsArticle.title}}</h2>
<p class="noWhiteSpace">{{newsArticle.content}}</p>
<p> - Posted on {{newsArticle.date}} {{newsArticle.time}}</p>
</a>
</article>
</section>
<ion-infinite-scroll
on-infinite="loadMore()"
distance="5%">
</ion-infinite-scroll>
</ion-content>
</ion-pane>
</body>
</html>