-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrotator.html
More file actions
executable file
·51 lines (43 loc) · 1.24 KB
/
rotator.html
File metadata and controls
executable file
·51 lines (43 loc) · 1.24 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
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
var sites = [
"http://10.1.10.27/BusTracker/index.html",
"http://10.1.10.27/BusTracker/weather.html"
];
var currentSite = sites.length;
$(document).ready(function() {
var $iframe = $("iframe").attr("src", "http://10.1.10.27/BusTracker/index.html");
setInterval(function() {
(currentSite == 0) ? currentSite = sites.length - 1: currentSite = currentSite - 1;
$iframe.attr("src", sites[currentSite]);
}, 30000);
});
</script>
<style type="text/css" media="screen">
iframe {
height: 100%;
width: 100%;
border: none;
}
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#content {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0px;
}
</style>
</head>
<body>
<iframe frameborder="0"></iframe>
</body>
</html>