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