aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/wwwroot/.files.html
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-06 16:48:56 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit48e3fff6bcea94da5bd46ee2def17eb6bdca716c (patch)
tree959135f29269c36b3b4c413716e9ab6ebcedc659 /backends/networking/wwwroot/.files.html
parent627bda9d82c178641e5b5253379c21ce556eb3c2 (diff)
downloadscummvm-rg350-48e3fff6bcea94da5bd46ee2def17eb6bdca716c.tar.gz
scummvm-rg350-48e3fff6bcea94da5bd46ee2def17eb6bdca716c.tar.bz2
scummvm-rg350-48e3fff6bcea94da5bd46ee2def17eb6bdca716c.zip
CLOUD: Refactor LocalWebserver
Its handlers are now more compact. This commit moves Handler classes in handlers\ directory. ResourceHandler ignores "hidden" files in the archive, and these are used as markup templates in IndexPageHandler and FilesPageHandler.
Diffstat (limited to 'backends/networking/wwwroot/.files.html')
-rw-r--r--backends/networking/wwwroot/.files.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/backends/networking/wwwroot/.files.html b/backends/networking/wwwroot/.files.html
new file mode 100644
index 0000000000..2baf4a02dc
--- /dev/null
+++ b/backends/networking/wwwroot/.files.html
@@ -0,0 +1,52 @@
+<!doctype html>
+<html>
+ <head>
+ <title>ScummVM</title>
+ <meta charset="utf-8"/>
+ <link rel="stylesheet" type="text/css" href="style.css"/>
+ </head>
+ <body>
+ <div class="container">
+ <div class='header'>
+ <center><img src="logo.png"/></center>
+ </div>
+ <div class="controls">
+ <table class="buttons"><tr>
+ <td><a href="javascript:show('create_directory');">{create_directory_button}</a></td>
+ <td><a href="javascript:show('upload_file');">{upload_files_button}</a></td>
+ </tr></table>
+ <div id="create_directory" class="modal">
+ <p>{create_directory_desc}</p>
+ <form action="create">
+ <input type="text" name="directory_name" value=""/>
+ <input type="submit" value="{create_directory_button}"/>
+ </form>
+ </div>
+ <div id="upload_file" class="modal">
+ <p>{upload_file_desc}</p>
+ <form action="upload" method="post">
+ <input type="file" name="upload_file"/>
+ <input type="submit" value="{upload_file_button}"/>
+ </form>
+ </div>
+ </div>
+ <div class="content">
+ <table class="files_list">
+ {content}
+ </table>
+ </div>
+ </div>
+ <script>
+ function show(id) {
+ var e = document.getElementById(id);
+ var visible = (e.style.display == "block");
+ if (visible) id = ""; //hide
+
+ e = document.getElementById("create_directory");
+ e.style.display = (e.id == id ? "block" : "none");
+ e = document.getElementById("upload_file");
+ e.style.display = (e.id == id ? "block" : "none");
+ }
+ </script>
+ </body>
+</html> \ No newline at end of file