From 0065eac1ab971c120ba6b19aacd67294d8e19835 Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Sun, 20 May 2012 03:22:20 +0200 Subject: [PATCH] Display error message when javascript disabled. --- zerobin/static/css/style.css | 9 +++++++++ zerobin/static/js/behavior.js | 5 ++++- zerobin/views/base.tpl | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/zerobin/static/css/style.css b/zerobin/static/css/style.css index 58db25c..90c7abe 100644 --- a/zerobin/static/css/style.css +++ b/zerobin/static/css/style.css @@ -339,3 +339,12 @@ canvas { border: 1px solid white; } +#wrap-content { + display: none; +} + +.noscript { + text-align: center; + color: red; + font-weight: bold; +} diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 517349d..df3b84f 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -674,8 +674,11 @@ $('.email-link').each(function(i, elem){ }); +$('#wrap-content').each(function(i, elem){ + $(elem).show(); +}); }); /* End of "document ready" jquery callback */ -})(); /* End of self executing function */ \ No newline at end of file +})(); /* End of self executing function */ diff --git a/zerobin/views/base.tpl b/zerobin/views/base.tpl index 78b6beb..fd26307 100644 --- a/zerobin/views/base.tpl +++ b/zerobin/views/base.tpl @@ -81,7 +81,13 @@ -
+ + +