Add "JS not working" error message

It is:
* hidden by JS code executed as early as possible
* not hidden by noscript tags, so that it is *not* shown when JavaScript is just no activated

Fix https://github.com/PrivateBin/PrivateBin/issues/103
This commit is contained in:
rugk
2016-10-25 21:13:43 +02:00
parent 5d822af5b1
commit 7bbb273c1c
9 changed files with 36 additions and 14 deletions

View File

@@ -20,6 +20,11 @@
/** global: showdown */
/** global: sjcl */
$(document).ready(function() {
// hide "no javascript" message as early as possible
$('#noscript').hide();
})
// Immediately start random number generator collector.
sjcl.random.startCollectors();