summaryrefslogtreecommitdiffstats
path: root/modules-available/main/templates/page-main.html
blob: ee85220e4fc0151df953398097df82e54bca8445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="jumbotron">
	<h1>{{lang_welcome}}, {{user}}</h1>
	<p>{{lang_intro}}</p>
</div>

<script type="application/javascript"><!--
document.addEventListener("DOMContentLoaded", function () {
	if (Date.now && Math.abs(Date.now() / 1000 - {{now}}) > 300
			&& (!window.sessionStorage || window.sessionStorage.getItem('nau') != {{now}})) {
		$('#browser-time').text(new Date().toLocaleString());
		$('#server-time').text(new Date({{now}} * 1000).toLocaleString());
		$('#time-warner').show();
	}
	if (window.sessionStorage) window.sessionStorage.setItem('nau', {{now}});
});
//--></script>

<div class="alert alert-warning collapse" id="time-warner">
	{{lang_clockDriftWarn}}<br>
	<b>{{lang_browserTime}}</b>: <span id="browser-time"></span>, <b>{{lang_serverTime}}</b>: <span id="server-time"></span>
</div>