-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (42 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link rel='icon' type='image/png' href='./favicon.png'>
<style>
div {
width: 400px;
display: inline-block;
/* float: left; */
padding: 5px;
}
iframe {
width: 100%;
border: none;
height: 500px;
}
</style>
</head>
<body>
<script>
let nStart = 10;
let n = 150;
window.onload = function() {
let container = document.body;
for (let i = nStart; i <= n; i++) {
let link = "https://nsmg-projects-public.s3.eu-west-2.amazonaws.com/live/nsmg-" + (""+i).padStart(3, '0') + "/index.html";
let divTag = document.createElement("div");
let aTag = document.createElement("a");
aTag.innerHTML = "nsmg-" + i;
aTag.href = link;
divTag.appendChild(aTag);
let iframe = document.createElement("iframe");
iframe.src = link;
divTag.appendChild(iframe);
container.appendChild(divTag);
}
}
</script>
</body>
</html>