-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
49 lines (49 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Googolplex Theater</title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
overflow:hidden;
background: #FFF;
}
#iframe {
width: 100%;
height: 100%;
}
#message {
position:absolute;
bottom:0px;
right:0px;
margin: 5px;
opacity:0.7;
font-family: sans-serif;
color: white;
text-shadow: 0px 0px 1px black;
}
</style>
</head>
<body>
<div id="message">Googolplex Theater</div>
<iframe id="iframe" src="" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" seamless="seamless"></iframe>
<script type="text/javascript" src="receiver.js"></script>
<script type="text/javascript">
GoogolplexTheater.init((deviceName, settings, sendMessage) => {
document.getElementById("message").innerText = deviceName;
const { refreshSeconds, url } = settings;
document.getElementById("iframe").src = url;
if (refreshSeconds) {
window.setInterval(() => {
iframe.src += '';
}, refreshSeconds * 1000);
}
});
</script>
</body>
</html>