From 75e0cbce4cca7f38279a7cb1cad624402b3cd7dc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 22 May 2016 18:28:01 +0100 Subject: [PATCH] Add no JS page --- content/pages/no-js.html | 65 ++++++++++++++++++++++++++++++++ theme/static/src/scss/index.scss | 13 ++++++- theme/templates/base.html | 5 +++ theme/templates/page-no-js.html | 19 ++++++++++ 4 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 content/pages/no-js.html create mode 100644 theme/templates/page-no-js.html diff --git a/content/pages/no-js.html b/content/pages/no-js.html new file mode 100644 index 0000000..b890340 --- /dev/null +++ b/content/pages/no-js.html @@ -0,0 +1,65 @@ + + + + + + +
+
+

You have Javascript is disabled!

+
+
+
+

+ You appear to have javascript disabled. For my site to function properly, javascript must be enabled. To re-enable javascript, simply follow the instructions below. +

+

+ After enabling javascript, the page should automatically redirect to the homepage. If it doesn't, just refresh the page, or Click here to return home. +

+
+
+

Re-enabling Javascript in your browser

+
+
+

Re-enabling in Firefox

+
+
+
    +
  1. Navigate to 'about:config', using the browsers address bar.
  2. +
  3. Accept the security warning, and notice that no dragons lie ahead.
  4. +
  5. In the search bar, enter 'javascript'
  6. +
  7. Find the entry 'Javascript.enabled' (possibly using ctrl + F)
  8. +
  9. Toggle the entry by either double-clicking the entry, or right-clicking and selecting 'Toggle'.
  10. +
+
+
+ +
+
+

Re-enabling in Chrome

+
+
+
    +
  1. Click the Chrome menu icon () in the top right hand corder of the window.
  2. +
  3. Click 'Settings'.
  4. +
  5. Under the 'Privacy' section, select 'Content settings'.
  6. +
  7. Under 'Javascript', select 'Allow all sites to run Javascript (Recommended)'.
  8. +
+
+
+ +
+
+

Re-enabling in Internet Explorer

+
+
+
    +
  1. Select the gear icon in the top right hand corner (), and click 'Internet Options'.
  2. +
  3. Select Security > Internet > Custom Level.
  4. +
  5. Scroll down until you find 'Scripting', and select 'Enable'
  6. +
+
+
+
+ + diff --git a/theme/static/src/scss/index.scss b/theme/static/src/scss/index.scss index 15089f4..0241ed9 100644 --- a/theme/static/src/scss/index.scss +++ b/theme/static/src/scss/index.scss @@ -1,3 +1,5 @@ +@import "variables"; // Import variables before anything else + /* @group Fonts */ @import url("https://fonts.googleapis.com/css?family=Roboto:400,700,300,300italic,400italic,700italic"); @@ -19,7 +21,6 @@ $fa-font-path: "../fonts"; /* @group Other Imports */ -@import "variables"; @import "creative/creative"; /* @end Other Imports */ @@ -27,3 +28,13 @@ $fa-font-path: "../fonts"; @import "homepage"; @import "footer"; + + +.panel-green { + @include panel-variant(#139F5B, $white, #139F5B, #139F5B); +} + + +.panel-blue { + @include panel-variant(#337AB7, $white, #337AB7, #337AB7); +} diff --git a/theme/templates/base.html b/theme/templates/base.html index 271dd68..aa030dd 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -51,5 +51,10 @@ + + diff --git a/theme/templates/page-no-js.html b/theme/templates/page-no-js.html new file mode 100644 index 0000000..54ccaeb --- /dev/null +++ b/theme/templates/page-no-js.html @@ -0,0 +1,19 @@ + + + + + + + + + + {{ page.title }} | {{ SITENAME }} + + + + + {{ page.content }} + + {% include "extras/footer.html" %} + +