fix(rules): fix w3 validator

This commit is contained in:
Romain J 2021-05-07 14:45:59 +02:00
parent 15e0ad1115
commit 1907e83792
4 changed files with 16 additions and 15 deletions

View file

@ -18,13 +18,6 @@
<a href="https://git.gnous.eu/gnouseu/gnousdoteu/src/commit/{% version 'long' %}" target="_blank" class="uk-text-small uk-button-link">{% version 'short' %}</a>
</div>
<div class="uk-float-right">
<noscript>
<style>
.need-js {
display: none !important;
}
</style>
</noscript>
<label class="uk-switch need-js" for="themeSwitcher">
<input type="checkbox" id="themeSwitcher" name="theme">
<span class="uk-switch-slider"></span>

View file

@ -53,4 +53,12 @@
<script src="{% static 'javascripts/turbolinks.js' %}"></script>
<script src="{% static 'javascripts/main.js' %}" defer></script>
<noscript>
<style>
.need-js {
display: none !important;
}
</style>
</noscript>
</head>

View file

@ -46,12 +46,12 @@
{% get_current_language as LANGUAGE_CODE %}
{% if LANGUAGE_CODE == 'en' %}
<button type="submit" style="background: transparent; border: none">
<img src="{% static 'images/icons/fr.svg' %}" alt="fr" width="18vw">
<img src="{% static 'images/icons/fr.svg' %}" alt="fr" width="18">
</button>
<input type="hidden" name="language" value="fr">
{% else %}
<button type="submit" style="background: transparent; border: none">
<img src="{% static 'images/icons/en.svg' %}" alt="en" width="18vw">
<img src="{% static 'images/icons/en.svg' %}" alt="en" width="18">
</button>
<input type="hidden" name="language" value="en">
{% endif %}

View file

@ -43,10 +43,10 @@
{% csrf_token %}
{% get_current_language as LANGUAGE_CODE %}
{% if LANGUAGE_CODE == 'en' %}
<img src="{% static 'images/icons/fr.svg' %}" alt="en" onclick="window.document.languageForm2.submit()" width="18vw">
<img src="{% static 'images/icons/fr.svg' %}" alt="en" onclick="window.document.languageForm2.submit()" width="18">
<input type="hidden" name="language" value="fr">
{% else %}
<img src="{% static 'images/icons/en.svg' %}" alt="fr" onclick="window.document.languageForm2.submit()" width="18vw">
<img src="{% static 'images/icons/en.svg' %}" alt="fr" onclick="window.document.languageForm2.submit()" width="18">
<input type="hidden" name="language" value="en">
{% endif %}
</form>