-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (40 loc) · 1.22 KB
/
index.php
File metadata and controls
46 lines (40 loc) · 1.22 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
38
39
40
41
42
43
44
45
46
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script>
var windowe = false;
window.onload = function() {
document.getElementById("finfiler").onclick=function() {
if(windowe == false){
var height = window.outerHeight-70;
var left = (window.innerWidth/2)-112;
if(left < 0){
left = 0
}
windowe = window.open("filfinder.php?", "Fileeater", "width=450,height="+height+",top=0,left="+left);
windowe.onbeforeunload = function(){
windowe = false;
};
windowe.focus();
}else{
windowe.focus()
}
};
};
window.onbeforeunload = function(){
if(windowe !== false){
windowe.close();
}
};
function setValue(url){
document.getElementById("finfiler").value=url;
windowe = false;
}
</script>
</head>
<body>
<input placeholder="Tryk for at vælg fil" readonly id="finfiler">
</body>
</html>