-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
35 lines (29 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="./style.css" rel="stylesheet">
<title>Hackerspace.SG cam</title>
<!-- <script src="https://cdn.jsdelivr.net/ractive/0.7.3/ractive.min.js"></script> -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/ractive/0.7.3/ractive-legacy.min.js'></script>
<meta name=viewport content="width=device-width, initial-scale=1">
</head>
<body>
<div id='container'></div>
<script id='template' type='text/ractive'>
<picture>
<source srcset="{{image.src}}" type="image/webp" />
<img width=1024 height=768 src=https://s3-ap-southeast-1.amazonaws.com/cam.hackerspace.sg/latest.jpg alt="Last snapshot">
</picture>
<div class=controls>
<button class='prev' on-click='goto(current-1)'>«</button>
<button class='next' on-click='goto(current+1)'>»</button>
</div>
<p>{{image.date}} ({{image.size}} bytes) image {{current+1}} of {{total}} on
<!-- Not actually sure how to do this bind -->
<input type=date on-click='s3select(date)' value="{{date}}"></p>
</script>
<script src=main.js></script>
<p><a href=https://github.com/hackerspacesg/s3cam>MIT licensed source code</a></p>
</body>
</html>