diff options
author | Thierry Crozat | 2016-09-06 00:43:25 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-09-06 00:43:25 +0100 |
commit | fa5a5bf865e86f02257f3b1bec84ba74e71319b1 (patch) | |
tree | 65fe939a958c8d9d588a9b7a0ed4895b8f3fb6c4 /dists/networking/wwwroot/.files.html | |
parent | b8948c332643da2be296cf3df4daa1fa6eeb1f08 (diff) | |
download | scummvm-rg350-fa5a5bf865e86f02257f3b1bec84ba74e71319b1.tar.gz scummvm-rg350-fa5a5bf865e86f02257f3b1bec84ba74e71319b1.tar.bz2 scummvm-rg350-fa5a5bf865e86f02257f3b1bec84ba74e71319b1.zip |
CLOUD: Move wwwroot archive to dists and script to devtools
Both the data used to generate the archive and the archive itself
were moved to dists/ instead of being in backends/.
The script was also improved to optionally take a path as a command
line argument to indicate where the wwwroot data are instead of
assuming they are in the working directory.
Finally a 'wwwroot' make target was also added to invoke the python script and generate the archive.
with the expected path to
Diffstat (limited to 'dists/networking/wwwroot/.files.html')
-rw-r--r-- | dists/networking/wwwroot/.files.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dists/networking/wwwroot/.files.html b/dists/networking/wwwroot/.files.html new file mode 100644 index 0000000000..f05c0113f8 --- /dev/null +++ b/dists/networking/wwwroot/.files.html @@ -0,0 +1,60 @@ +<!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="hidden" name="path" value="{path}"/> + <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?path={path}" method="post" enctype="multipart/form-data"> + <!-- we don't need "[]" in the name, as our webserver is not using PHP --> + <!-- "allowdirs" is a proposal, not implemented yet --> + <input type="file" name="upload_file-f" allowdirs multiple/> + <br/><br/> + <p>{or_upload_directory_desc}</p> + <!-- "directory"/"webkitdirectory" works in Chrome only yet, "multiple" is just in case here --> + <input type="file" name="upload_file-d" directory webkitdirectory multiple/> + <input type="submit" value="{upload_file_button}"/> + </form> + </div> + </div> + <div class="content"> + <table class="files_list"> + <td></td><td><b class="directory_name">{index_of_directory}</b></td><td></td> + {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 |