-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfork.html
297 lines (232 loc) · 18.9 KB
/
fork.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--
EVERYTHING IS PHYSICAL
EVERYTHING IS FRACTAL
EVERYTHING IS RECURSIVE
NO MONEY
MO MINING
NO PROPERTY
LOOK AT THE INSECTS
LOOK AT THE FUNGI
LANGUAGE IS HOW THE MIND PARSES REALITY
-->
<title>TRASH MAGIC HYPERSIGN!</title>
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAZ4efAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEREREQEREREREREQABEREREQABEBEAARERABEQERABEREBARARAQEREREQEBAREREQEREAAREQEQAAAAAAAAABEBERAAEREBERERAQEBEREREBARARAQEREQAREBEQARERAAEQEQABERERERARERERERERAAEREREREREQEREREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" rel="icon" type="image/x-icon" />
<!--Stop Google:-->
<META NAME="robots" CONTENT="noindex,nofollow">
<script src = "https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src = "geometron.js"></script>
</head>
<body>
<div id = "header">
</div>
<div id = "linklist">
<table id = "newtable">
<tr>
<td>ENTER NAME OF NEW FORK:</td>
<td><input/><a id = "dirlink"></a></td>
</tr>
<tr id = "replicatorline">
<td>external replicator url(optional)</td>
<td><input/></td>
</tr>
</table>
<ul id = "mainlist">
</ul>
<div id = "deleteonbutton" style = "display:none">BECOME THE DESTROYER!</div>
</div>
<a style = "position:absolute;left:0px;bottom:0px;z-index:2;" href = "index.html"><canvas id = "chaosmagicicon"></canvas></a>
<a style = "position:absolute;left:0px;top:0px;z-index:2;" href = "../fork.html"><canvas id = "uplinkicon"></canvas></a>
<a style = "position:absolute;right:0px;bottom:0px;z-index:2;" href = "https://github.com/LafeLabs/ontology"><canvas id = "githubicon"></canvas></a>
<div id = "qrcode"></div>
<script>
board = "";
square = 100;
globalurl = window.location.href.split("fork.html")[0];
//globalurl = "https://www.southplatte.net";
//urltext = globalurl;
capsurl = globalurl.toUpperCase();
capsurl = capsurl.replace("HTTPS://","");
capsurl = capsurl.replace("HTTP://","");
capsurl = capsurl.replace(/\//g,"/<BR/>");
document.getElementById("header").innerHTML = capsurl;
codesquaresize = 170;
marginsize = 40;
fontsize = 12;
//globalurl = "http://www.trashrobot.org/qrcode.html";
globalurl = window.location.href;
qrcode = new QRCode(document.getElementById("qrcode"), {
text: globalurl,
width: codesquaresize,
height: codesquaresize,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H
});
githubicon = "0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0500,0500,0500,0500,0500,0500,0507,0500,0500,0507,0500,0500,0507,0500,0507,0500,0500,0507,0500,0503,0504,0503,0504,0503,0504,0503,0503,0504,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0505,0503,0503,0503,0505,0503,0505,0503,0503,0505,0503,0505,0503,0505,0503,0505,0503,0501,0507,0501,0501,0507,0501,0501,0507,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0506,0501,0506,0501,0505,0502,0502,0505,0502,0505,0502,0502,0505,0502,0502,0502,0502,0505,0502,0502,0502,0502,0502,0502,0502,0504,0502,0502,0502,0504,0502,0502,0502,0504,0502,0504,0502,0502,0504,0502,0504,0502,0504,0502,0504,0502,0500,0506,0500,0500,0506,0500,0500,0506,0500,0500,0500,0500,0500,0500,0500,0507,0507,0507,0507,0507,0507,0507,0507,0507,0507,0507,0507,0500,0500,0500,0500,0500,0500,0507,0500,0500,0500,0500,0500,0503,0503,0505,0503,0505,0503,0504,0503,0503,0503,0503,0503,0505,0503,0503,0504,0503,0504,0503,0503,0501,0501,0501,0501,0507,0501,0501,0501,0501,0501,0501,0501,0501,0506,0501,0506,0501,0502,0505,0502,0502,0502,0505,0503,0501,0501,0501,0501,0501,0501,0502,0502,0502,0502,0502,0502,0500,0500,0500,0502,0502,0502,0502,0504,0502,0500,0506,0500,0500,0502,0500,0507,0507,0501,0507,0501,0507,0501,0503,0503,0503,0500,0503,0500,0502,0502,0504,0502,0504,0502,0504,0502,0504,0502,0507,0507,0507,0507,0507,0507,0507,";
chaosmagicicon = "0506,0506,0506,0506,0506,0506,0506,0506,0506,0500,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0500,0500,0502,0502,0505,0502,0502,0505,0502,0502,0505,0502,0502,0505,0507,0503,0503,0505,0503,0503,0505,0503,0503,0503,0500,0500,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0501,0507,0501,0501,0507,0501,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0504,0502,0504,0502,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0501,0507,0500,0503,0504,0503,0503,0504,0503,0503,0503,0503,0504,0502,0504,0502,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0503,0505,0503,0503,0505,0503,0503,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0502,0502,0501,0501,0507,0501,0501,0507,0501,0501,0507,0501,0501,0507,0504,0500,0500,0507,0500,0500,0507,0500,0500,0500,0502,0502,0500,0500,0500,0500,0500,0500,0500,0500,0500,0500,0500,0503,0504,0503,0503,0504,0503,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0502,0505,0502,0503,0503,0505,0503,0503,0505,0503,0503,0505,0503,0503,0504,0502,0500,0506,0500,0500,0506,0500,0500,0500,0504,0502,0505,0502,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0500,0507,0500,0500,0507,0500,0500,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0501,0501,0503,0503,0504,0503,0503,0504,0503,0503,0504,0503,0503,0506,0506,0500,0502,0504,0502,0502,0504,0502,0502,0502,0501,0501,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0500,0500,0506,0500,0500,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0500,0507,0501,0507,0501,0500,0500,0507,0500,0500,0507,0500,0500,0507,0500,0500,0505,0502,0502,0505,0502,0502,0502,0505,0502,0502,0502,0501,0507,0501,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0506,0501,0502,0504,0502,0502,0502,0504,0502,0500,0500,0500,0500,0500,0500,0500,0500,0500,0500,0500,0503,0503,0500,0500,0506,0500,0500,0506,0500,0500,0506,0500,0500,0505,0505,0502,0501,0505,0502,0501,0505,0502,0501,0501,0503,0503,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0501,0505,0502,0502,0502,0505,0502,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0504,0502,0507,0500,0500,0502,0502,0504,0502,0502,0504,0502,0502,0504,0502,0505,0505,0503,0501,0507,0501,0501,0507,0501,0501,0507,0501,0500,0507,0500,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0505,0503,0501,0506,0501,0501,0505,0502,0507,0507,0507,0507,0507,0507,0507,0507,0507,0505,0505,";
nyancaticon = "0502,0500,0500,0500,0500,0500,0500,0500,0500,0500,0500,0507,0500,0507,0500,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0505,0503,0505,0503,0501,0501,0501,0501,0501,0501,0504,0503,0503,0504,0503,0503,0505,0503,0501,0501,0501,0501,0505,0503,0501,0501,0501,0501,0501,0506,0501,0506,0501,0505,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0500,0504,0502,0504,0502,0500,0500,0500,0500,0500,0507,0500,0500,0500,0500,0500,0507,0500,0503,0503,0505,0503,0505,0503,0505,0503,0503,0503,0503,0503,0505,0505,0505,0505,0507,0507,0503,0501,0502,0506,0506,0502,0506,0506,0506,0506,0500,0501,0502,0502,0507,0507,0505,0501,0501,0503,0503,0503,0503,0500,0505,0503,0503,0503,0500,0506,0506,0506,0506,0506,0505,0505,0505,0505,0501,0507,0501,0503,0503,0500,0506,0506,0506,0506,0506,0502,0501,0502,0502,0504,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0500,0502,0500,0500,0500,0500,0500,0500,0504,0504,0502,0502,0504,0502,0502,0504,0502,0502,0502,0505,0502,0505,0502,0501,0503,0503,0505,0503,0503,0503,0503,0505,0503,0503,0505,0505,0505,0501,0502,0507,0501,0502,0502,0505,0502,0501,0501,0503,0503,0504,0503,0503,0503,0503,0505,0503,0503,0503,0500,0506,0506,0506,0506,0506,0506,0506,0506,0506,0327,0502,0502,0502,0502,0505,0502,0502,0502,0502,0502,0502,0502,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0504,0504,0504,0504,0326,0502,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0503,0503,0505,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0504,0504,0504,0506,0506,0506,0506,0506,0325,0502,0502,0505,0502,0502,0502,0502,0502,0502,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0502,0504,0504,0504,0324,0500,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0505,0503,0503,0503,0503,0503,0503,0503,0504,0504,0504,0507,0507,0507,0507,0504,0507,0507,0507,0507,0507,0507,0323,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0502,0502,0502,0502,0502,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0502,0502,0504,0504,0504,0322,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0504,0503,0503,0503,0503,0503,0503,0503,0504,0503,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0502,0502,0502,0502,0502,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0502,0507,0507,0507,0507,0507,0507,0507,0507,0507,0507,0507,0505,0507,0507,0507,0505,0507,0507,0507,0505,0507,0507,0505,0507,0505,0507,0505,0507,0505,0507,0505,0507,0505,0507,0505,0507,0505,0507,0507,0507,0507,0320,0327,0507,0507,0507,0501,0507,0507,0504,0500,0506,0506,0504,0504,0504,0504,0500,0507,0507,0507,0507,0507,0507,0500,0500,0507,0507,0503,0505,0507,0507,0507,0507,0507,0505,0501,0506,0506,0506,0506,0506,0506,0506,0506,0506,0501,0505,0505,0505,0505,0505,0505,0505,0505,0502,0506,0506,0502,0504,0504,0504,0504,0506,0506,0506,0506,0320,";
scrollicon = "0502,0502,0502,0502,0502,0502,0507,0507,0507,0507,0507,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0507,0507,0507,0507,0507,0500,0500,0507,0500,0500,0500,0507,0500,0500,0507,0500,0500,0500,0500,0507,0500,0500,0500,0500,0500,0500,0500,0506,0500,0500,0506,0500,0506,0500,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0505,0502,0505,0502,0501,0501,0501,0501,0507,0501,0501,0507,0501,0503,0505,0503,0504,0503,0504,0503,0500,0500,0500,0506,0500,0503,0503,0503,0503,0503,0503,0500,0506,0500,0500,0506,0500,0505,0505,0505,0507,0505,0507,0501,0501,0501,0501,0501,0502,0502,0502,0502,0502,0507,0507,0507,0507,0507,0501,0501,0506,0501,0501,0501,0506,0501,0501,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0501,0506,0501,0501,0501,0506,0501,0501,0501,0506,0501,0501,0501,0501,0506,0501,0501,0501,0501,0501,0507,0501,0501,0501,0507,0501,0503,0503,0505,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0504,0503,0503,0504,0503,0500,0507,0500,0500,0500,0506,0500,0500,0506,0500,0502,0502,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0505,0502,0505,0502,0501,0501,0507,0501,0503,0503,0503,0503,0503,0503,0500,0500,0506,0500,0500,0505,0505,0505,0505,0507,0501,0506,0501,0506,0501,0505,0502,0502,0507,0507,0507,0507,0504,0507,0507,0504,0507,0504,0507,0507,0507,0507,0507,0507,0507,0507,0504,0507,0504,0507,0504,0507,0504,0507,0504,0507,0504,0507,0500,0500,0500,0500,0507,0500,0500,0500,0507,0500,0500,0507,0500,0500,0500,0507,0500,0500,0504,0504,0504,0504,0504,0504,0506,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0504,0504,0504,0504,0504,0504,0504,0507,0507,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0503,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0505,0506,0506,0506,0506,0506,0506,0506,0506,0504,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0502,0507,0507,0507,0507,0504,0507,0507,0507,0507,0507,0507,0504,0504,0504,0504,0504,0504,";
uplinkicon = "0500,0500,0500,0500,0500,0500,0502,0501,0502,0501,0502,0501,0502,0501,0502,0501,0502,0507,0504,0507,0504,0504,0507,0504,0507,0504,0507,0504,0503,0505,0503,0501,0503,0501,0503,0501,0503,0501,0503,0501,0503,0505,0505,0505,0506,0506,0506,0506,0506,0506,0500,0500,0501,0501,0501,0501,0501,0501,0501,0501,0502,0501,0502,0501,0502,0501,0501,0501,0501,0503,0501,0503,0501,0503,0503,0503,0500,0503,0503,0500,0500,0500,0500,0500,0502,0500,0502,0500,0502,0506,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0502,0500,0502,0502,0500,0502,0500,0500,0502,0500,0500,0500,0503,0500,0503,0503,0500,0503,0503,0503,0503,0501,0503,0503,0501,0501,0501,0501,0501,0502,0501,0502,0501,0502,0501,0502,0505,0505,0505,0505,0505,0505,0505,0505,0505,";
forklinkicon = "0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0504,0502,0502,0500,0502,0500,0502,0500,0500,0500,0503,0500,0503,0500,0503,0503,0503,0501,0503,0503,0501,0503,0501,0501,0502,0501,0501,0501,0502,0502,0502,0505,0505,0506,0506,0506,0506,0506,0506,0506,0501,0501,0502,0501,0502,0501,0502,0501,0502,0501,0501,0502,0501,0502,0501,0502,0501,0502,0501,0501,0501,0502,0502,0501,0500,0500,0500,0500,0500,0500,0501,0501,0501,0501,0501,0501,0501,0503,0500,0503,0503,0500,0503,0503,0500,0503,0503,0500,0505,0505,0505,0505,0505,0506,0506,0506,0506,0506,0506,0506,0502,0502,0502,0501,0502,0502,0501,0501,0502,0501,0501,0501,0501,0503,0501,0503,0503,0501,0503,0503,0503,0503,0500,0503,0500,0503,0500,0500,0500,0500,0502,0500,0500,0502,0502,0500,0504,0504,0507,0504,0507,0504,0503,0500,0504,0507,0504,0504,0504,0507,0504,0507,0507,0507,0507,0507,0504,0504,0507,0507,0507,0507,0504,0507,0504,0504,0507,0507,0504,0507,0507,0507,0507,0503,0501,0503,0501,0503,0501,0501,0503,0501,0503,0501,0503,0501,0503,0501,0503,0501,0503,0501,0501,0503,0501,0501,0502,0502,0502,0502,0502,0502,0507,0507,0507,0507,0507,0507,0503,0500,0503,0501,0504,0500,0500,0502,0500,0500,0502,0500,0500,0502,0500,0500,0502,0500,0505,0505,0507,0505,0507,0507,0505,0505,0507,0507,0505,0505,0507,0505,0505,0505,0505,0505,0503,0503,0503,0501,0503,0501,0501,0501,0501,0501,0502,0501,0501,0502,0501,0502,0502,0502,0502,0500,0502,0502,0500,0500,0500,0500,0500,0500,0503,0500,0500,0503,0503,0503,0504,0504,0504,0506,0506,0504,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,0506,";
iconsize = 200;
var newGVM = new GVM(document.getElementById("chaosmagicicon"),iconsize,iconsize);
newGVM.importbytecode(hypercube);
newGVM.drawGlyph(scrollicon);
iconsize = 200;
var newGVM2 = new GVM(document.getElementById("githubicon"),iconsize,iconsize);
newGVM2.importbytecode(hypercube);
newGVM2.drawGlyph(githubicon);
iconsize = 200;
var newGVM2 = new GVM(document.getElementById("uplinkicon"),iconsize,iconsize);
newGVM2.importbytecode(hypercube);
newGVM2.drawGlyph(uplinkicon);
//iconsize = 200;
//var newGVM3 = new GVM(document.getElementById("nyancaticon"),iconsize,iconsize);
//newGVM3.importbytecode(hypercube);
//newGVM3.drawGlyph(nyancaticon);
deleteprotect = true;//set to false to enable deletion of directories
//deleteprotect = false;//set to ture to disable deletion of directories
directories = [];
var httpc2 = new XMLHttpRequest();
httpc2.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
directories = JSON.parse(this.responseText);
for(var index = 0;index < directories.length;index++) {
if(directories[index] != "trashmagic"){
var newa = document.createElement("A");
newa.innerHTML = directories[index] + "/";
newa.href = directories[index] + "/";
var newli = document.createElement("LI");
newli.appendChild(newa);
document.getElementById("mainlist").appendChild(newli);
}
}
if(!deleteprotect){
addDeleteButtons();
}
}
};
httpc2.open("GET", "dir.php?type=dir", true);
httpc2.send();
inputs = document.getElementById("newtable").getElementsByTagName("input");
inputs[0].value = "";
inputs[1].value = "";
inputs[0].onchange = function() {
dir = this.value;
dirlink.innerHTML = "<BR>CLICK ME(1/3)!";
// dirlink.innerHTML = "mkdir.php?dir=" + this.value;
dirlink.href = "mkdir.php?dir=" + this.value;
}
inputs[1].onchange = function(){
dir = inputs[0].value;
dirlink.innerHTML = "mkdir.php?dir=" + dir + "&replicator=" + this.value;
dirlink.href = "mkdir.php?dir=" + dir + "&replicator=" + this.value;
}
function addDeleteButtons(){
dirlist = document.getElementById("mainlist").getElementsByTagName("LI");
for(var index = 0;index < dirlist.length;index++){
var newdeletebutton = document.createElement("span");
newdeletebutton.innerHTML = "DELETE";
newdeletebutton.className = "button";
dirlist[index].appendChild(newdeletebutton);
}
deletebuttons = document.getElementById("mainlist").getElementsByClassName("button");
for(var index = 0;index < deletebuttons.length;index++){
deletebuttons[index].onclick = function() {
thisdir = this.parentNode.getElementsByTagName("A")[0].innerHTML;
var httpc = new XMLHttpRequest();
var url = "rdelete.php";
httpc.open("POST", url, true);
httpc.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
httpc.send("filename=" + thisdir);//send text to deletefile.php
this.parentNode.parentNode.removeChild(this.parentNode);
}
}
}
document.getElementById("deleteonbutton").onclick = function(){
addDeleteButtons();
this.style.display = "none";
}
</script>
<style>
body{
background-color:#9f8767;
overflow:hidden;
}
#linklist{
position:absolute;
background-color:black;
font-family:Comic Sans MS;
font-size:3em;
left:5%;
bottom:200px;
width:90%;
height:50%;
border:solid;
border-width:8px;
border-radius:40px;
color:#00ff00;
overflow:scroll;
}
input{
font-size:0.8em;
color:#ff2cb4;
background-color:black;
border-color:#00ff00;
font-family:Comic Sans MS;
}
#newtable{
color:#00ff00;
}
#deleteonbutton{
color:red;
cursor:pointer;
border:solid;
border-color:red;
text-align:center;
border-radius:10px;
width:12em;
display:block;
margin:auto;
}
#linklist a{
color:#ff2cb4;
}
#header{
font-family:Comic Sans MS;
font-size:3em;
position:absolute;
overflow:scroll;
left:200px;
right:200px;
top:0px;
height:300px;
}
#backgroundimage{
position:absolute;
left:0px;
top:0px;
overflow:hidden;
z-index:-1;
}
#qrcode{
position:absolute;
top:20px;
right:20px;
z-index:1;
}
#mainlist .button{
cursor:pointer;
color:red;
border:solid;
border-color:red;
}
@media only screen and (orientation: portrait) {
}
</style>
</body>
</html>