-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.old
35 lines (31 loc) · 909 Bytes
/
index.old
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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
var list;
$(document).ready(function(){
$.get("/cgi-bin/index.cgi",function(data){
list = data.split("\n");
list.forEach(function(i){
if(i !== ""){
$("#list").append('<a href="'+i+'" class="list-group-item">'+i+'</a>');
}
});
});
});
</script>
</head>
<body>
<div class="container">
<h2>Basic List Group</h2>
<div id="list" class="list-group">
</div>
</div>
</body>
</html>