-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilemanager.html
49 lines (44 loc) · 1.32 KB
/
filemanager.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
<!doctype html>
<html lang="en">
<head>
<title>Saved Game Manager</title>
<meta charset='utf-8'>
<style>
table {
border-top: 2px solid black;
border-bottom: 2px solid black;
border-collapse: collapse;
margin-bottom: 1em;
}
td, th {
padding: 0.25em 1em;
}
th {
border-bottom: 1px solid black;
}
#filemanager button {
font-size: 110%;
}
#editorFrame {
display: none;
}
</style>
</head>
<body>
<h1>Saved Game Manager</h1>
<p>This small utility allows for editing files saved by RatVM games hosted on this server. All files are presented in <a href='https://en.wikipedia.org/wiki/Base64'>Base64 Encoding</a>.
<p>(<a href='/index.html'>return to games list</a>)
<div id='filemanager'>
<table id='filelist'>
<tr id='filelistheader'><th>Name</th><th>Game ID</th><th>Last Modified</th><th><button id='newfile'>Create File</button></th></tr>
</table>
<div id='editorFrame'>
<label>Name: <input type='edit' id='filename'></label>
<label>GameID: <input type='edit' id='filegameid'></label><br>
<textarea style='width:80%; height: 12em' id='fileeditor'></textarea><br>
<button id='saveFile'>Save</button>
<button id='cancelFile'>Close Editor</button>
</div>
</div>
<script src='js/filemanager.js' type='module'></script>
<!-- <script src='js/filedb.js'></script> -->