-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcopytex.html
81 lines (72 loc) · 2.25 KB
/
copytex.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAP//AP///wANAP8A5Dz6ABueRwAAt/8A6BonABo86AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAREREREREREREREAAAEREREREQCIgREREd3dwAAB3d3d3d3d3d3d3d3d3d3d3d3d3VVVVVVVQAFVVAAVVVQIiBRAiIBEQIAIBECAAERAgAgFgIABmYCIiBmAiIGZgIiIGYCIgZmYCIAaIAAMzMzAAiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" rel="icon" type="image/x-icon" />
<!--Stop Google:-->
<META NAME="robots" CONTENT="noindex,nofollow">
</head>
<body>
<a href = "index.html">
<img src = "iconsymbols/home.svg" alt = "home"/>
</a>
<a id = "copylink" href = "copy.html">copy.php</a>
<table>
<tr>
<td>server url:</td>
<td><input id = "serverurlinput"/></td>
</tr>
<tr>
<td>filename:</td>
<td><input id = "fileinput"/></td>
</tr>
</table>
<div id = "dnascroll">
</div>
<script>
servername = "https://raw.githubusercontent.com/LafeLabs/bookofgeometron/main";
filename = "civilizations.tex";
redraw();
function redraw(){
document.getElementById("copylink").href = "copy.php?from=" + servername + "/" + filename + "&to=" + filename;
document.getElementById("copylink").innerHTML = "copy.php?from=" + servername + "/" + filename + "&to=" + filename;
}
document.getElementById("serverurlinput").value = "https://raw.githubusercontent.com/LafeLabs/thing/master";
document.getElementById("fileinput").value = "civilizations.tex";
document.getElementById("serverurlinput").onchange = function(){
servername = this.value;
if(servername.charAt(servername.length - 1) == "/"){
servername = servername.substring(0,servername.length - 1);
}
redraw();
}
document.getElementById("fileinput").onchange = function(){
filename = this.value;
redraw();
}
</script>
<style>
input{
width:30em;
}
#dnascroll{
overflow:scroll;
position:absolute;
top:50%;
bottom:0px;
right:0px;
left:0px;
background-color:#f0f0f0;
}
.element{
margin-left:1em;
margin-top:0.5em;
border:solid;
cursor:pointer;
}
.element:hover{
background-color:#00ff0080;
}
</style>
</body>
</html>