-
Notifications
You must be signed in to change notification settings - Fork 177
Display warning if JavaScript is disabled, fixes #15 #17
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -48,8 +48,17 @@ <h1 class="flex flex-wrap"> | |||
| </div> | ||||
| </header> | ||||
|
|
||||
| <div class="wrapper"> | ||||
| <noscript> | ||||
| <div id="noscript" class="d-flex align-items-center flex-column justify-content-center"> | ||||
| <p> | ||||
| Pour pouvoir utiliser ce générateur, il vous faut préalablement activer JavaScript.<br /> | ||||
|
BlueskyFR marked this conversation as resolved.
|
||||
| <a href="https://www.enable-javascript.com/fr/">Cliquez ici</a> pour accéder aux instructions | ||||
| pour activer JavaScript dans votre navigateur. | ||||
|
BlueskyFR marked this conversation as resolved.
|
||||
| </p> | ||||
| </div> | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| </noscript> | ||||
|
|
||||
| <div id="wrapper" class="wrapper d-none"> | ||||
| <form id="form-profile"> | ||||
| <h2 class="titre-2">Remplissez en ligne votre attestation numérique :</h2> | ||||
|
|
||||
|
|
@@ -268,6 +277,11 @@ <h3>Choisissez un motif de sortie</h3> | |||
| sein de ce navigateur ! Merci d'ouvrir Chrome sur Android ou bien Safari sur iOS. | ||||
| </div> | ||||
|
|
||||
| <script> | ||||
| document.addEventListener("DOMContentLoaded", function() { | ||||
| document.querySelector("#wrapper").classList.remove("d-none"); | ||||
| }); | ||||
|
Comment on lines
+281
to
+283
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ca évite toute confusion au moins.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tu aurais mis quelle partie du texte en rouge ? |
||||
| </script> | ||||
| <script src="./certificate.js"></script> | ||||
| </body> | ||||
| </html> | ||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -55,6 +55,17 @@ h2 { | |||||
| font-size: large; | ||||||
| } | ||||||
|
|
||||||
| #noscript { | ||||||
| margin: 250px 0 250px 0; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| background-color: white; | ||||||
|
|
||||||
| p { | ||||||
| text-align: center; | ||||||
| font-weight: bold; | ||||||
| font-size: 1.3em; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quel avantage les rem ont-ils par rapport aux em ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://caniuse.com/#feat=mdn-api_css_em Le support des rem semble meilleur, non ? |
||||||
| } | ||||||
| } | ||||||
|
|
||||||
| footer { | ||||||
| margin-top: 40px; | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 ?) ?