-
Notifications
You must be signed in to change notification settings - Fork 3
/
frames.html
37 lines (29 loc) · 998 Bytes
/
frames.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
<!doctype html>
<html>
<head>
<title>Artnet Weblight Frames</title>
<!--<link href="./css/style.css" rel="stylesheet">-->
<script src="/js/jquery.js"></script>
<script>
$(function () {
let frameNr = parseInt(window.location.pathname.substr(8));
if (!frameNr) frameNr = 0;
const urlParams = new URLSearchParams(location.search);
let frameCount = parseInt(urlParams.get('count'));
if (!frameCount) frameCount = 4;
let debugMode = '?debug';
if (urlParams.get('debug') === 'false') {
debugMode = '';
}
for (let i = frameNr; i < (frameCount + frameNr); i++) {
$('<iframe height="200px" width="100%" src="/' + i + debugMode + '" frameBorder="0"></iframe>', {})
.appendTo('#frames');
}
});
</script>
</head>
<body style="background-color: #232323">
<div id="frames">
</div>
</body>
</html>