blob: c5a8ecf6db5efc2b5cda888da89380f0bbc00f2e (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Directory <!--DIRDIR--></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
var listing=[/*LISTINGLISTING*/];
window.addEventListener("load",function(){
document.getElementById("dirdir").innerHTML=document.title.slice(10);
var i,div,a;
var e=document.getElementById("listing");
var pathname=location.pathname;
if(pathname[pathname.length-1]=="/")pathname=pathname.slice(0,pathname.length-1);
for(i=0;i<listing.length;i++){
div=document.createElement("div");
a=document.createElement("a");
a.innerHTML=listing[i];
a.setAttribute("href",pathname+"/"+listing[i]);
div.appendChild(a);
e.appendChild(div);
}
});
</script>
</head>
<body>
<h1>Directory <span id="dirdir">><</span></h1>
<hr>
<div id="listing"></div>
</body>
</html>
|