mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Added noscript content for the landing page
This commit is contained in:
parent
b5e10bf1e9
commit
8df005d29e
5 changed files with 29 additions and 17 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -10,3 +10,6 @@ noscript
|
|||
display: block
|
||||
margin-top: 5px
|
||||
|
||||
noscript.banner
|
||||
background-color: #fff9ca
|
||||
border: 1px solid #dfd8c2
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
15
website/views/shared/no-script.jade
Normal file
15
website/views/shared/no-script.jade
Normal 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!
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue