index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <link rel="icon" type="image/png" href="../img/public/share/share.png" />
  12. <style>
  13. .bar{
  14. height: 12px;
  15. background-color: #1a1a1a;
  16. width: 100%;
  17. }
  18. .footer{
  19. position: fixed;
  20. left: 0px;
  21. bottom: 0px;
  22. height: 100px;
  23. width: 100%;
  24. background-color: #1a1a1a;
  25. padding: 20px;
  26. color: white;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <div class="bar"></div>
  32. <br>
  33. <div class="container" style="padding-bottom: 150px;">
  34. <div class="row">
  35. <div class="one-half column">
  36. <h5>{{hostname}} File Sharing</h5>
  37. <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>
  38. <div>
  39. <label for="exampleEmailInput">Share Code (UUIDv4)</label>
  40. <input class="u-full-width" type="text" placeholder="00000000-0000-0000-0000-000000000000" onkeydown="handleKeyDown(event);" id="shareCodeID">
  41. <small>Example: 8dfb688c-a6da-4dd5-b657-fe21f9fbe2b1</small>
  42. </div>
  43. <button class="button-primary" onclick="gotoShare();">Continue</button>
  44. </div>
  45. <div class="one-half column">
  46. <img style="pointer-events: none; width: 100%;" src="../../img/public/share/noID.png">
  47. </div>
  48. </div>
  49. </div>
  50. <div class="footer">
  51. <div class="container">
  52. Cloud File Sharing Interface, <br>Powered by <a style="color: white;" href="http://arozos.com">arozos</a>
  53. </div>
  54. </div>
  55. <script>
  56. function handleKeyDown(e){
  57. if (e.keyCode == 13){
  58. //Enter
  59. gotoShare();
  60. }
  61. }
  62. function gotoShare(){
  63. var shareCode = $("#shareCodeID").val();
  64. window.location.href = "./" + shareCode + "/";
  65. }
  66. </script>
  67. </body>
  68. </html>