diff options
author | Micah Lee <micah@micahflee.com> | 2019-05-06 18:06:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 18:06:14 -0700 |
commit | bbf6c02da645fcd4fc50db18dd341178ad4fa2e6 (patch) | |
tree | c1e2757c56f517e051c9f905f8a7a12e1b8d66ae /share/templates/receive.html | |
parent | a8201593ec0bfe7596ef530e80aa30e5172ef71d (diff) | |
parent | 9e9c29b189cb91ea495a85ed749730395926e07b (diff) | |
download | onionshare-bbf6c02da645fcd4fc50db18dd341178ad4fa2e6.tar.gz onionshare-bbf6c02da645fcd4fc50db18dd341178ad4fa2e6.zip |
Merge pull request #980 from micahflee/developv2.1
Version 2.1
Diffstat (limited to 'share/templates/receive.html')
-rw-r--r-- | share/templates/receive.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/share/templates/receive.html b/share/templates/receive.html index a557a967..4f207a03 100644 --- a/share/templates/receive.html +++ b/share/templates/receive.html @@ -2,8 +2,8 @@ <html> <head> <title>OnionShare</title> - <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" /> - <link href="/static/css/style.css" rel="stylesheet" type="text/css" /> + <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon"> + <link rel="stylesheet" rel="subresource" type="text/css" href="/static/css/style.css" media="all"> </head> <body> @@ -13,16 +13,24 @@ </header> <div class="upload-wrapper"> + <!-- + We are not using a <noscript> tag because it only works when the security slider is set to + Safest, not Safer: https://trac.torproject.org/projects/tor/ticket/29506 + --> + <div id="noscript"> + <p> + <img src="/static/img/warning.png" title="Warning" /><strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads + sometimes never finish. To upload reliably, either set your Tor Browser + <a rel="noreferrer" target="_blank" href="https://tb-manual.torproject.org/en-US/security-slider/">security slider</a> + to Standard or + <a target="_blank" href="/noscript-xss-instructions">turn off your Tor Browser's NoScript XSS setting</a>.</p> + </div> + <p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p> <p class="upload-header">Send Files</p> <p class="upload-description">Select the files you want to send, then click "Send Files"...</p> - <form id="send" method="post" enctype="multipart/form-data" action="{{ upload_action }}"> - <p><input type="file" id="file-select" name="file[]" multiple /></p> - <p><button type="submit" id="send-button" class="button">Send Files</button></p> - </form> - <div id="uploads"></div> <div> @@ -37,22 +45,14 @@ </ul> </div> - <!-- - We are not using a <noscript> tag because it only works when the security slider is set to - Safest, not Safer: https://trac.torproject.org/projects/tor/ticket/29506 - --> - <div id="noscript"> - <p> - <strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads - sometimes never finish. To upload reliably, either set your Tor Browser - <a rel="noreferrer" target="_blank" href="https://tb-manual.torproject.org/en-US/security-slider/">security slider</a> - to Standard or - <a target="_blank" href="/noscript-xss-instructions">turn off your Tor Browser's NoScript XSS setting</a>.</p> - </div> - <script src="/static/js/receive-noscript.js"></script> + <form id="send" method="post" enctype="multipart/form-data" action="{{ upload_action }}"> + <p><input type="file" id="file-select" name="file[]" multiple /></p> + <p><button type="submit" id="send-button" class="button">Send Files</button></p> + </form> </div> - <script src="/static/js/jquery-3.3.1.min.js"></script> - <script src="/static/js/receive.js"></script> + <script src="/static/js/receive-noscript.js"></script> + <script src="/static/js/jquery-3.4.0.min.js"></script> + <script async src="/static/js/receive.js"></script> </body> </html> |