-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (43 loc) · 1.42 KB
/
index.php
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
<?php
require_once("app/imagemanager.php");
?>
<html ng-app="gallery">
<head>
<title></title>
<script src="angular.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body ng-controller="thumb_controller as gl">
<header>
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="upload.php">Upload</a></li>
</ul>
</nav>
</header>
<div class="thumbnails">
<h1>Thumbnails</h1>
<span ng-repeat= "item in gl.thumbs.data">
<img class="thumbnail" ng-src={{item}} ng-click="gl.showModal($index)" />
</span>
</div>
<div id="modal" class="modal">
<!-- Modal content -->
<div class="modal-content" id="modalcontent">
<span class="close" ng-click="gl.closeModal()">×</span></br>
<div class="img-canvas">
<table>
<tr>
<td><span ng-click="gl.previousImg()" class="arrow-left"><</span></td>
<td><img class="modelimg" ng-src="{{gl.currentimg}}"></td>
<td><span ng-click="gl.nextImg()" class="arrow-right">></span></td>
</tr>
</table>
<div>
<button class="toggleslideshow" ng-click = "gl.toggleSlideShow()">Toggle Slideshow</button>
</div>
</div>
</body>
</html>