Skip to content

Commit

Permalink
Add a noscript tag to alert users when they have not enabled JS
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Mar 15, 2021
1 parent 6335b56 commit 0f92bb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions view/light.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<title>{{ ServiceName }}{% block title %}{% endblock %}</title>
</head>
<body{% if request.vocabid == '' and request.page != 'feedback' and request.page != 'about' %} class="frontpage-logo"{% else %} class="vocab-{{ request.vocabid }}"{% endif %}>
<noscript>
<strong>We're sorry but Skosmos doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<a id="skiptocontent" href="{{ request.langurl }}#maincontent">{% trans "Skip to main" %}</a>
{% if request.vocabid != '' or request.page == 'feedback' or request.page == 'about' %}<div class="topbar-white">{% endif %}
<div class="topbar{% if request.vocabid != '' or request.vocabid == 'feedback' or request.vocabid == 'about' %} topbar-white{% else %} frontpage{% endif %}">
Expand Down

0 comments on commit 0f92bb9

Please sign in to comment.