Added noscript content for the landing page

This commit is contained in:
Gautham Chandra 2015-11-15 16:42:48 -05:00
parent b5e10bf1e9
commit 8df005d29e
5 changed files with 29 additions and 17 deletions

View file

@ -9,8 +9,8 @@
@import "../bower_components/select2/select2.css"
// Custom includes
@import "./global-colors.styl";
@import "./global-modules.styl";
@import "./global-colors.styl"
@import "./global-modules.styl"
@import "./tasks.styl"
@import "./avatar.styl"
@import "./customizer.styl"

View file

@ -10,3 +10,6 @@ noscript
display: block
margin-top: 5px
noscript.banner
background-color: #fff9ca
border: 1px solid #dfd8c2

View file

@ -30,6 +30,7 @@ html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":a
body(ng-cloak, ng-controller='GroupsCtrl')
include ./shared/no-script
include ./shared/mixins
include ./shared/avatar/index
include ./shared/header/menu
@ -39,21 +40,6 @@ html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":a
include ./main/index
include ./options/index
// For those who have JavaScript disabled
noscript
style.
div, footer {
display: none;
}
h3
| Alas! Your browser doesn't have JavaScript enabled
img(src='/front/images/coding_by_phoneix_faerie.png', alt='Coding placeholder image')
p
| Habitica can't properly display the site without it!
a(href='http://www.enable-javascript.com/', target='_blank')
| Please Enable JavaScript to continue!
#notification-area(ng-controller='NotificationCtrl')
#wrap.container-fluid
.row

View file

@ -0,0 +1,15 @@
// For those who have JavaScript disabled
noscript
style.
div, footer {
display: none;
}
h3
| Alas! Your browser doesn't have JavaScript enabled
img(src='/front/images/coding_by_phoneix_faerie.png', alt='Coding placeholder image')
p
| Habitica can't properly display the site without it!
br
a(href='http://www.enable-javascript.com/', target='_blank')
| Please Enable JavaScript to continue!

View file

@ -40,6 +40,14 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
include ../shared/avatar/index
include ../shared/mixins
include ../shared/modals/members
noscript(class='banner')
| Alas! Your browser doesn't have JavaScript enabled and without it,
| Habitica can't work properly
br
a(href='http://www.enable-javascript.com/', target='_blank')
| Please Enable JavaScript to continue!
.mobile-container
div(ng-init='Analytics.track({"hitType":"pageview","eventCategory":"page","eventAction":"landing page","page":"/static/front"});')
header#header