summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun SAG <sagarun@gmail.com>2011-09-02 12:03:36 +0530
committerArun SAG <sagarun@gmail.com>2011-09-02 12:03:36 +0530
commit7d9abf87fe485dc9b7d57c3938a3135b985cd4e6 (patch)
tree1d11ff5b41075f404fe130843d34c943ab89c12a
parenta16a80b5a0ab03340e8b308945ce3dcb733b6ac3 (diff)
downloadaskbot-7d9abf87fe485dc9b7d57c3938a3135b985cd4e6.tar.gz
askbot-7d9abf87fe485dc9b7d57c3938a3135b985cd4e6.tar.bz2
askbot-7d9abf87fe485dc9b7d57c3938a3135b985cd4e6.zip
Add noscript tag to warn and ask users to enable javascript
-rw-r--r--askbot/skins/default/media/style/style.css15
-rw-r--r--askbot/skins/default/templates/blocks/bottom_scripts.html5
2 files changed, 20 insertions, 0 deletions
diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css
index 7d2c558f..4e05ff8f 100644
--- a/askbot/skins/default/media/style/style.css
+++ b/askbot/skins/default/media/style/style.css
@@ -1911,6 +1911,21 @@ button::-moz-focus-inner {
text-decoration: none;
}
+.noscript {
+ position: fixed;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+ z-index: 100;
+ padding: 5px 0;
+ text-align: center;
+ font-family: sans-serif;
+ font-size: 120%;
+ font-weight: Bold;
+ color: #FFFFFF;
+ background-color: #AE0000;
+}
+
.big {
font-size: 15px;
}
diff --git a/askbot/skins/default/templates/blocks/bottom_scripts.html b/askbot/skins/default/templates/blocks/bottom_scripts.html
index aaad70c0..de0b7dbb 100644
--- a/askbot/skins/default/templates/blocks/bottom_scripts.html
+++ b/askbot/skins/default/templates/blocks/bottom_scripts.html
@@ -2,6 +2,11 @@
this template is included at the very bottow of the
main template "base.html"
#}
+<div id="no-javascript">
+ <noscript class="noscript">
+ Askbot works best with Javascript enabled
+ </noscript>
+</div>
<script type="text/javascript">
var i18nLang = '{{settings.LANGUAGE_CODE}}';
var scriptUrl = '/{{settings.ASKBOT_URL}}'