Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display warning if JavaScript is disabled, fixes #15 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BlueskyFR
Copy link

This PR fixes #15, allowing users to get instructions on how to enable JavaScript for their browser in the case it is disabled.
This will enable more people to use the generator.

@BlueskyFR
Copy link
Author

J'ai essayé d'utiliser bootstrap au maximum, tout en essayant d'intégrer au mieux le message dans la page déjà existant.
Si vous avez des suggestions n'hésitez pas.

index.html Show resolved Hide resolved
Comment on lines +52 to +53
<div id="noscript" class="d-flex align-items-center flex-column justify-content-center">
<p>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div id="noscript" class="d-flex align-items-center flex-column justify-content-center">
<p>
<p id="noscript" class="d-flex align-items-center flex-column justify-content-center">

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'ai pas rebuild pour vérifier mais tu as bien checké que l'affichage reste toujours le même via ce changement (propriétés par défaut du div et du p qui ne sont pas les mêmes ?) ?

<a href="https://www.enable-javascript.com/fr/">Cliquez ici</a> pour accéder aux instructions
pour activer JavaScript dans votre navigateur.
</p>
</div>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</div>

index.html Show resolved Hide resolved
@@ -55,6 +55,17 @@ h2 {
font-size: large;
}

#noscript {
margin: 250px 0 250px 0;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
margin: 250px 0 250px 0;
margin: 250rem 0 250rem 0;

p {
text-align: center;
font-weight: bold;
font-size: 1.3em;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
font-size: 1.3em;
font-size: 1.3rem;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quel avantage les rem ont-ils par rapport aux em ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +281 to +283
document.addEventListener("DOMContentLoaded", function() {
document.querySelector("#wrapper").classList.remove("d-none");
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cela me semble overkill d'ajouter du JS, j'aurai mis le texte en rouge.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ca évite toute confusion au moins.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu aurais mis quelle partie du texte en rouge ?

@BlueskyFR
Copy link
Author

Je veux bien continuer d'éditer cette PR mais je ne pense pas qu'ils la mergent plus tard.
D'après ce que j'ai compris ils vont seulement s'en "inspirer".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Améliorer la prise en charge des navigateurs où le JavaScript est désactivé
4 participants