Add noscript tag

This commit is contained in:
Peter deHaan 2017-08-02 23:37:55 -07:00
parent ee444186e9
commit 3f316fb8b0
No known key found for this signature in database
GPG Key ID: F0FC6C01C6305097
4 changed files with 16 additions and 1 deletions

View File

@ -17,6 +17,15 @@ Many browsers support this standard and should work fine, but some have not
implemented it yet (mobile browsers lag behind on this, in
particular).
## Why does Firefox Send require JavaScript?
- We use JavaScript to encrypt and decrypt files locally on the client instead of the server.
- We use JavaScript to render the user interface of Send.
- We use JavaScript to manage translate the website into [various different languages](https://github.com/mozilla/send#localization).
- We use JavaScript to collect data to help us improve Send in accordance with our [Terms & Privacy](https://send.firefox.com/legal).
Since Send is an open source project, you can see all of the cool ways we use JavaScript by [examining our code](https://github.com/mozilla/send/).
## How long are files available for?
Files are available to be downloaded for 24 hours, after which they are removed

View File

@ -19,6 +19,7 @@ if (storage.has('referrer')) {
}
$(document).ready(function() {
$('#page-one').removeAttr('hidden');
$('#file-upload').change(onUpload);
$('.legal-links a, .social-links a, #dl-firefox').click(function(target) {

View File

@ -1,4 +1,4 @@
<div id="page-one">
<div id="page-one" hidden>
<script src="/upload.js"></script>
<div class="title" data-l10n-id="uploadPageHeader"></div>
<div class="description">

View File

@ -29,6 +29,11 @@
<a href="https://qsurvey.mozilla.com/s3/txp-firefox-send" rel="noreferrer noopener" class="feedback" target="_blank" data-l10n-id="siteFeedback">Feedback</a>
</header>
<div class="all">
<noscript>
<h2>Firefox Send requires JavaScript</h2>
<p><a href="https://github.com/mozilla/send/blob/master/docs/faq.md#why-does-firefox-send-require-javascript" target="_blank" rel="noreferrer noopener">Why does Firefox Send require JavaScript?</a></p>
<p>Please enable JavaScript and try again.</p>
</noscript>
{{{body}}}
</div>
<div class="footer">