-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (49 loc) · 2.63 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 id="ng-app" data-ng-app="app">
<head>
<title>Automatic Image Montage with Angularjs</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="public/css/style.css" />
<link rel="stylesheet" type="text/css" href="public/css/bootstrap.min.css" />
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css' />
</head>
<body style="background:#000;" data-ng-controller="dashboard as vm">
<!-- gallery -->
<div class="container">
<gallery size="{{vm.posts.length}}">
<a href="#" data-ng-repeat="post in vm.posts" data-ng-click="vm.show($index)"><img class="galleryImage" data-ng-src="{{post.imageUrl}}" galleryImage></img></a>
</gallery>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">{{vm.selectedPost.header}}</h4>
</div>
<div class="modal-body">
<img src="{{vm.selectedPost.imageUrl}}" ></img>
{{vm.selectedPost.body}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="public/libraries/angular.min.js"></script>
<script type="text/javascript" src="public/libraries/angular-route.min.js"></script>
<script type="text/javascript" src="public/libraries/jquery.min.js"></script>
<script type="text/javascript" src="public/libraries/bootstrap.min.js"></script>
<script type="text/javascript" src="public/libraries/jquery.montage.min.js"></script>
<!-- Bootstrapping -->
<script type="text/javascript" src="src/app.js"></script>
<!-- app -->
<script type="text/javascript" src="src/index.js"></script>
<script type="text/javascript" src="src/gallery.js"></script>
</body>
</html>