summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-11-08 09:43:34 +0200
committerYuval Adam <yuval@y3xz.com>2015-11-08 09:43:34 +0200
commit740935e8936df84a73f89eb5512355584e10fe11 (patch)
tree16866f094e362e30bc0d40fe843f0a4f2924650b /templates/index.html
parent06649f30a429222fd564020257340c63245bc675 (diff)
Add timestamp support
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index 6e36f61..1b7e034 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -8,11 +8,17 @@
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.2/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
+ #datetime { position:fixed; color: #ee8877; z-index: 100; font-family: monospace; padding: 5px; }
+ #date { font-size: 0.7em; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
+<div id='datetime'>
+ <div id='date'>{{ ts.strftime('%d/%m/%Y') }}</div>
+ <div id='hour'>{{ ts.strftime('%H:%M') }}</div>
+</div>
<div id='map'></div>
<script>