Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Javascript disabled warning #260

Merged
merged 2 commits into from
Jun 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</head>
<body>
{% include 'partials/browser-warning.html' %}
{% include 'partials/javascript-warning.html' %}
<a href="#main-content" class="u-visually_hidden">skip navigation</a>
<div id="site-menu" class="modal__overlay" aria-hidden="true">
<div class="modal">
Expand Down
12 changes: 12 additions & 0 deletions templates/partials/javascript-warning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<noscript>
<div style="background-color: #DB4857; padding: 20px;">
<h2 style="color: #ffffff">Javascript Required</h2>
<p style="color: #ffffff"><a href="{{ url_for('search') }}">OpenFEC</a> uses Javascript to provide the best possible user experience. Please enable Javascript in your browser or visit fec.gov.</p>
<p style="color: #ffffff">
<a style="color: #ffffff; text-decoration: underline" target="_blank"
href="http://enable-javascript.com/">
Learn how to enable Javascript in your browser
</a>
</p>
</div>
</noscript>