-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (36 loc) · 1.43 KB
/
Copy pathindex.html
File metadata and controls
39 lines (36 loc) · 1.43 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Bowerbird 3.5</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="/bowerbird.css" type="text/css">
<script type="text/javascript">
var ifrNo = 0;
var ifrHidden;
var ifr;
function swap() {
ifr = document.getElementById('iframe_' + ifrNo);
ifrNo = 1 - ifrNo;
ifrHidden = document.getElementById('iframe_' + ifrNo);
// when the hidden one finishes loading,
// it will swap with the visible one automatically
ifr.onload = null;
ifrHidden.onload = function() {
ifr.style.display = 'none';
ifrHidden.style.display = 'block';
}
ifrHidden.src = "/overview";
}
// make sure that this interval is longer than the slowest page load...
function start_refresh_cycle() {
setInterval(function () { swap(); }, 5000);
}
</script>
</head>
<body onload="start_refresh_cycle()">
<!-- nav header -->
${nav}
<iframe src="/overview" id="iframe_0" style="border:none;width:100%;height:800px;display:block"></iframe>
<iframe src="/overview" id="iframe_1" style="border:none;width:100%;height:800px;display:none"></iframe>
</body>
</html>