-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·51 lines (48 loc) · 2.19 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
<!doctype html>
<html ng-app="photoApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js" integrity="sha384-THPy051/pYDQGanwU6poAc/hOdQxjnOEXzbT+OuUAFqNqFjL+4IGLBgCJC3ZOShY" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js" integrity="sha384-Plbmg8JY28KFelvJVai01l8WyZzrYWG825m+cZ0eDDS1f7d/js6ikvy1+X+guPIB" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css" integrity="sha384-MIwDKRSSImVFAZCVLtU0LMDdON6KVCrZHyVQQj6e8wIEJkW4tvwqXrbMIya1vriY" crossorigin="anonymous">
<script src="photo.js"></script>
<link rel="stylesheet" href="photo.css">
</head>
<body ng-controller="PhotoListController">
<div>
<h2 class="title">Photos - {{getInfo()}}</h2>
<div ng-repeat="photo in photos" class="photo-container">
<img
ng-click="showPhoto(photo)"
ng-src="{{photo.thumbnailUrl}}"
alt="{{photo.title}}" t
itle="{{photo.title}}"/>
</div>
<div class="clearfix"></div>
<button id="mais-photos" type="button" class="btn btn-info" ng-click="maisPhotos()">Mais photos</button>
</div>
<div class="modal fade" id="modalPhoto">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Photo</h4>
</div>
<div class="modal-body">
<div class="photo"></div>
<h2>Comments:</h2>
<div class="comments" ng-controller="PhotoListController">
<div ng-repeat="comment in comments" class="comment">
<h3>{{comment.name}}</h3>
<p>{{comment.body}}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>