Skip to content

Commit

Permalink
Add a <noscript> banner to the base template
Browse files Browse the repository at this point in the history
Explain how to enable JavaScript for users and use the site features for
users.
  • Loading branch information
francoisfreitag committed Apr 25, 2024
1 parent ca5078b commit a63b495
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions itou/templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
{% block extra_head %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
<noscript>
<div class="alert alert-info" role="status">
<p class="mb-0">
Pour bénéficier de toutes les fonctionnalités de ce site, l’activation de JavaScript est nécessaire.
Voici les <a href="https://www.enablejavascript.io/" target="_blank" rel="noopener">
instructions pour activer JavaScript dans votre navigateur Web</a>.
</p>
</div>
</noscript>
<nav role="navigation" aria-label="Accès rapide" tabindex="0" class="visually-hidden">
<ul>
<li>
Expand Down

0 comments on commit a63b495

Please sign in to comment.