-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 945 Bytes
/
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
<html>
<head>
<style>
img {
margin: 5px;
}
body {
font-size:25px;
color:#fff;
background-color:#000;
text-align: center;
}
</style>
</head>
<body>
Select a background<br>
<div id="images"></div>
</body>
<script>
// Background locations
const locations = [
"kahala",
"bangkok",
"lasvegas",
"missionbeach",
"hollywood",
"chulavista",
"losangeles",
"rodeodrive",
"santamonica"
];
// Show thumbnails linked to selfie app
const images = document.getElementById('images');
for (i = 0; i < locations.length; i++) {
let img = document.createElement('img');
img.src = `./img/${locations[i]}_thumb.jpg`;
let a = document.createElement('a');
a.href = `./app.html?${locations[i]}`;
a.appendChild(img);
images.appendChild(a);
}
</script>
</html>