From 389c1e17a6690f6133d6f10e5c18b63ad0b02160 Mon Sep 17 00:00:00 2001 From: edwin <47649bd5-eeee-4f47-89f4-9f3e4d57ba93@localhost> Date: Wed, 19 Jul 2023 01:50:10 +0000 Subject: [PATCH] Ajouter 'Js/switch-faction.js' --- Js/switch-faction.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Js/switch-faction.js diff --git a/Js/switch-faction.js b/Js/switch-faction.js new file mode 100644 index 0000000..fbe2585 --- /dev/null +++ b/Js/switch-faction.js @@ -0,0 +1,8 @@ +function toggleMode() { + var linkElement = document.getElementById('styles-theme'); + if (linkElement.getAttribute('href') === 'css/styles-jour.css') { + linkElement.setAttribute('href', 'css/alliance.css'); + } else { + linkElement.setAttribute('href', 'css/horde.css'); + } +} \ No newline at end of file