Skip to content

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

Open
BlueskyFR wants to merge 1 commit into
LAB-MI:masterfrom
BlueskyFR:master
Open

Display warning if JavaScript is disabled, fixes #15#17
BlueskyFR wants to merge 1 commit into
LAB-MI:masterfrom
BlueskyFR:master

Conversation

@BlueskyFR

Copy link
Copy Markdown

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
Copy Markdown
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.

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

Copy link
Copy Markdown

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
Copy Markdown
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 ?) ?

Comment thread index.html
<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
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
</div>

Comment thread index.html
Comment thread main.css
}

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

Copy link
Copy Markdown

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;

Comment thread main.css
p {
text-align: center;
font-weight: bold;
font-size: 1.3em;

Copy link
Copy Markdown

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
Copy Markdown
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 ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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