index.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>{{hostname}} File Share</title>
  7. <link rel="stylesheet" href="../script/skeleton/offline.css">
  8. <link rel="stylesheet" href="../script/skeleton/normalize.css">
  9. <link rel="stylesheet" href="../script/skeleton/skeleton.css">
  10. <script type="application/javascript" src="../script/jquery.min.js"></script>
  11. <style>
  12. .bar{
  13. height: 12px;
  14. background-color: #1a1a1a;
  15. width: 100%;
  16. }
  17. .footer{
  18. position: fixed;
  19. left: 0px;
  20. bottom: 0px;
  21. height: 100px;
  22. width: 100%;
  23. background-color: #1a1a1a;
  24. padding: 20px;
  25. color: white;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="bar"></div>
  31. <br>
  32. <div class="container" style="padding-bottom: 150px;">
  33. <div class="row">
  34. <div class="one-half column">
  35. <h5>{{hostname}} File Sharing</h5>
  36. <p>You are seeing this page because you are requesting the share API without a proper share ID. Enter a share code to continue:</p>
  37. <div>
  38. <label for="exampleEmailInput">Share Code (UUIDv4)</label>
  39. <input class="u-full-width" type="text" placeholder="00000000-0000-0000-0000-000000000000" onkeydown="handleKeyDown(event);" id="shareCodeID">
  40. <small>Example: 8dfb688c-a6da-4dd5-b657-fe21f9fbe2b1</small>
  41. </div>
  42. <button class="button-primary" onclick="gotoShare();">Continue</button>
  43. </div>
  44. <div class="one-half column">
  45. <img style="pointer-events: none; width: 100%;" src="../../img/public/share/noID.png">
  46. </div>
  47. </div>
  48. </div>
  49. <div class="footer">
  50. <div class="container">
  51. Cloud File Sharing Interface, <br>Powered by <a style="color: white;" href="http://arozos.com">arozos</a>
  52. </div>
  53. </div>
  54. <script>
  55. function handleKeyDown(e){
  56. if (e.keyCode == 13){
  57. //Enter
  58. gotoShare();
  59. }
  60. }
  61. function gotoShare(){
  62. var shareCode = $("#shareCodeID").val();
  63. window.location.href = "./" + shareCode + "/";
  64. }
  65. </script>
  66. </body>
  67. </html>