-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget.html
More file actions
37 lines (36 loc) · 1.1 KB
/
get.html
File metadata and controls
37 lines (36 loc) · 1.1 KB
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
<!DOCTYPE HTML>
<html>
<head>
<title>Get a file</title>
<script defer src="data.js"></script>
<meta charset=utf-8 name=viewport content="width=device-width">
</head>
<body>
<script>
function getRandom(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
function guv(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if (r != null) {
try {
return decodeURIComponent(r[2]);
} catch (e) {
return null;
}
}
return null;
};
window.addEventListener('load',function(){
for(let i=0;i<datas.length;i++){
try{
if(datas[i]()=="return") return;
}catch(e){ continue; }
}
document.documentElement.innerHTML="404";
return null;
});
</script>
</body>
</html>