-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphotos.html
44 lines (41 loc) · 1.09 KB
/
photos.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
<!doctype html>
<html ng-app>
<head>
<link href="vendor/css/bootstrap.min.css" rel="stylesheet">
<script src="vendor/angular.min.js"></script>
<script src="vendor/socket.io.js"></script>
<script src="js/photos.js"></script>
<script src="js/services.js"></script>
<style>
ul li {
display: inline-block;
height:200px;
width:200px;
margin:5px;
}
ul li img{
}
</style>
</head>
<body ng-controller="TodoCtrl">
<div class="container-fluid">
<h1>Photos</h1>
<div class="alert alert-info">Double click to remove photo and hit 'update'</div>
<br><br>
<div class="photos ">
<ul>
<li ng-repeat="photo in photos" ng-dblclick="remove($index)">
<a class="thumbnail">
<img ng-src="{{photo}}">
</a>
</li>
</ul>
</div>
</div>
<div class="container-fluid">
<form ng-submit="updateServer()">
<button type="submit" class="btn btn-default" >Update Server</button>
</form>
</div>
</body>
</html>