-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 1.18 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
<html>
<head>
<title>camelInstall</title>
</head>
<body>
<h1>camelInstall</h1>
<h3>What's camelInstall?</h3>
<h4>camelInstall is AOS-GUI's package manager.</h4>
<h3>Application list:</h3>
<ul id="applist">
</ul>
<script src="js/jquery.js"></script>
<script>
$.ajax({
type: "GET",
url: "https://aos-gui.github.io/cInstall/dl/appList.txt",
success: function(text) {
var spltext = text.split("\n")
spltext.forEach(element => {
var elemlist = element.split("|")
elemlist.pop()
element = elemlist.join(" - ")
var li = document.createElement('li')
var listItem = document.createTextNode(element)
li.appendChild(listItem)
document.getElementById('applist').appendChild(li)
});
},
error: function() {
alert("err")
}
});
</script>
</body>
</html>