-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (43 loc) · 1.7 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<title> Flicker Search </title>
<link rel="stylesheet" href="bower_components/angular-material/angular-material.min.css"/>
<link rel="stylesheet" href="style.css"/>
</head>
<body ng-app="flickrApp" ng-controller="CTR" layout="column" layout-align="top center" >
<md-toolbar>
<div class="md-toolbar-tools">
<span class="md-felx">
Flickr Search
</span>
</div>
</md-toolbar>
<md-content layout="column" layout-align="center center">
<div class="app-content">
<form ng-submit="search()">
<md-input-container ng-show="!isSearching">
<label>Search For</label>
<input ng-model="searchTerm">
</md-input-container>
<md-progress-circular ng-if="isSearching" class="md-accent md-hue-2" md-mode="indeterminate"></md-progress-circular>
</form>
<div ng-repeat="result in results.photos.photo">
<md-card>
<img src="https://farm{{result.farm}}.staticflickr.com/{{result.server}}//{{result.id}}_{{result.secret}}_b.jpg " alt="" class="md-card-image"/>
<h3 style="padding: 0px 10px;"> {{ result.title }} </h3>
</md-card>
</div>
</div>
</md-content>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-aria/angular-aria.min.js"></script>
<script src="bower_components/angular-animate/angular-animate.min.js"></script>
<script src="bower_components/hammerjs/hammer.min.js"></script>
<script src="bower_components/angular-material/angular-material.min.js"></script>
<script src="app.js"></script>
</body>
</html>