forked from JCofman/javascript-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (29 loc) · 855 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<title>Example apps</title>
</head>
<body>
<h1>Example applications</h1>
<div id='appList'></div>
<script>
//Token replaced by build.sh
const apps = @AppsToken
const ul = document.createElement('ul');
document.getElementById('appList').appendChild(ul);
apps.forEach(app => {
const li = document.createElement('li');
const a = document.createElement('a');
const linkText = document.createTextNode(app);
a.appendChild(linkText);
a.title = app;
a.href = app + '/';
li.appendChild(a);
ul.appendChild(li);
});
</script>
</body>
</html>