-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (73 loc) · 1.81 KB
/
index.html
File metadata and controls
92 lines (73 loc) · 1.81 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Search</title>
<script type='text/javascript' src='build/app_bundle.js'></script>
<style type='text/css'>
img {
width: 200px;
height: 200px;
}
#search {
margin-bottom: 1em;
}
.item {
float:left;
padding: 2em;
width: 250px;
height:500px;
display: inline-block;
vertical-align: top;
margin:2em;
border:solid;
}
.title {
text-transform: uppercase;
font-weight: bold;
}
.description {
margin-top: 0.5em;
font-size: 75%;
height:39%;
overflow:auto;
}
nav{
clear:both;
display:block;
margin:5px;
padding:5px;
margin-top:10px;
}
main{
min-height:100%;
overflow-y: hidden;
position:relative;
}
aside{
display:inline;
}
</style>
</head>
<body>
<div data-ng-app="app" data-ng-controller="MainController" data-ng-cloak>
<section id="search">
<span><input type="text" data-ng-model="search"/></span>
<span><button>Search</button></span>
</section>
<main class="contentArea">
<article class="item" data-ng-repeat="item in filteredItems| startAtIndex:(index-1)*max |limitTo:max">
<p class="title">{{item.title}}</p>
<img class="img" data-ng-src="{{item.picture}}"/>
<p class="description">{{item.description}}</p>
</article>
</main>
<nav>
<aside data-ng-show="pagesCount>0">page{{index}} of {{pagesCount}} </aside>
<aside data-ng-show="pagesCount<1">No content matching {{search}}</aside>
<button data-ng-show="index>1" data-ng-click=prevPage()>Previous</button>
<button data-ng-show="pagesCount>1 && index<pagesCount" data-ng-click=nextPage()>Next</button>
</nav>
</div>
</body>
</html>