-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·77 lines (76 loc) · 2.89 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<title>paginate-angular.js</title>
<link rel="stylesheet" type="text/css" href="src/reset.css">
<link rel="stylesheet" type="text/css" href="src/main.css">
</head>
<body id="paginate" ng-app="pagination">
<main class="container" ng-controller="listController">
<h1>
Displaying {{ itemsLength }} items
</h1>
<div class="form-group">
<label for="filter-searches">
Filter
</label>
<select ng-model="filter"
ng-options="item.value as item.label for item in status"
ng-change="resetPagination()"
class="custom-select"
id="filter-searches-select">
</select>
</div>
<div class="list-navigation">
<a href=""
class="previous-page"
ng-click="previousPage()"
ng-class="disablePrevious == true ? 'disabled': ''">
Previous
</a>
<span>
{{ currentPage }} / {{ paginationLength }}
</span>
<a href=""
class="next-page"
ng-click="nextPage()"
ng-class="disableNext == true ? 'disabled': ''">
Next
</a>
</div>
<ul class="search-list">
<li class="{{item.status}}"
ng-repeat="item in filteredResults = (items | filter: { status : filter } | orderBy:'-savedDate') | limitTo : listLimit : startList">
<h2>
{{item.title}}
</h2>
<span>
{{item.status | statusFilter}}
</span>
<time>
{{item.savedDate | date: 'h:mm:ss a, MMM d, y'}}
</time>
</li>
</ul>
<div class="list-navigation lower">
<a href=""
class="previous-page"
ng-click="previousPage()"
ng-class="disablePrevious == true ? 'disabled': ''">
Previous
</a>
<span>
{{ currentPage }} / {{ paginationLength }}
</span>
<a href=""
class="next-page"
ng-click="nextPage()"
ng-class="disableNext == true ? 'disabled': ''">
Next
</a>
</div>
</main>
<script src="src/angular-1.4.8.min.js"></script>
<script src="src/main.js"></script>
</body>
</html>