Skip to content

Commit

Permalink
Improved enable-js-plox-message
Browse files Browse the repository at this point in the history
  • Loading branch information
contradictioned committed Jul 24, 2014
1 parent a474a38 commit e87bd1a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -4,7 +4,7 @@ source 'https://rubygems.org'
gem 'rails', '4.0.0'

gem 'sqlite3'
gem 'pg'
#gem 'pg'

This comment has been minimized.

Copy link
@ayonix

ayonix Jul 26, 2014

Contributor

Dat is Knorz


# Gems used only for assets and not required
# in production environments by default.
Expand Down
23 changes: 15 additions & 8 deletions app/assets/stylesheets/custom/_body.scss
Expand Up @@ -14,14 +14,21 @@ body {
}

html.no-js {
background: #da34e2;
font-size: 24pt;
text-align: center;
font-family: "Comic Sans", "Open Sans", sans;
body {
#body-wrapper {
display: none;
}
&::before {
content: 'Please activate JavaScript'
}
body {
background: blue;
color: white;
font-size: 14px;
text-align: left;
width:600px;
font-family: "Lucida Console", Monaco, monospace;
}
}

html:not(.no-js) {
div.no-js {
display:none;
}
}
9 changes: 8 additions & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -22,7 +22,14 @@
<%= javascript_include_tag :modernizr %>
<%= csrf_meta_tags %>
</head>

<div class="no-js">
'A problem has been detected and Intranet has been shut down to prevent damage to your computer.<br /><br />
The system encountered an uncorrectable client error. <br /><br />
If this is the first time you have seen this Stop error screen, activate Javascript on your computer. If this screen appears again, follow these steps:<br /><br />
Check to make sure any Chrome is properly installed. If this is a new installation, ask your Browser dealer for any updates you might need. If problems continue, disable or remove any newly installed Firefox.<br /><br />
Disable l33thaXxor options like Javascript deactivation or same-origin cookie prevention. If you need to use privacy-mode to hide plugins or cookie-access, press Alt+F4 to get instant 100.000$.
<br /><br />Technical Information:<br />*** STOP: 5984320987345987643298756430985712458769437penis347509873218476'
</div>
<body>
<div id="body-wrapper">
<div id="main">
Expand Down

0 comments on commit e87bd1a

Please sign in to comment.