diff options
| author | Debulois <quentin@debulois.fr> | 2022-04-06 21:37:53 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-04-06 21:37:53 +0200 |
| commit | 6ee8ad125692175ddfb705080a4bc54b76c5a4f6 (patch) | |
| tree | d8321eab73354eeea2b2ca7ea5ee16175a71ff43 /Static/Js/main.js | |
| parent | 5582d242d03692a7e1b2c631e1b4ff3f52e8b72c (diff) | |
Finalisation, affinage du css et ajout d'un système de vérification pour les mdp pour qu'ils soient forts.
Diffstat (limited to 'Static/Js/main.js')
| -rw-r--r-- | Static/Js/main.js | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/Static/Js/main.js b/Static/Js/main.js index 7f3935c..3a6c3e5 100644 --- a/Static/Js/main.js +++ b/Static/Js/main.js @@ -1,17 +1,25 @@ -// **************************************************************************** -// Main -// **************************************************************************** - + +// ############################################################################ +// # # +// # Description: JS utile un peu de partout # +// # # +// ############################################################################ // Site web utilisés pour JS: // https://www.w3schools.com/js/default.asp // https://stackoverflow.com/ -// Changement de langue + +// **************************************************************************** +// CHANGEMENT DE LANGUE +// **************************************************************************** document.getElementById("navSelLang").addEventListener("change", () => { document.getElementById("navFormLang").submit(); }); -// TODO: A commenter + +// **************************************************************************** +// TOGGLE UNE CLASSE SUR UN ELEMENT PARMIS PLUSIEURS IDENTIQUES +// **************************************************************************** function show(parentId, element, id, className) { let elements = document.getElementById(parentId).getElementsByTagName(element); elements[id].classList.add(className); @@ -22,8 +30,12 @@ function show(parentId, element, id, className) { } } + +// **************************************************************************** +// AFFICHER LA BAR DE NAVIGATION +// **************************************************************************** function showNavButtons() { document.getElementsByTagName("nav")[0].classList.toggle("showNav") // first-child à chaque fois document.getElementsByTagName("header")[0].getElementsByTagName("a")[0].getElementsByTagName("i")[0].classList.toggle("navLinkClicked") -}
\ No newline at end of file +} |
