Ajouter 'Js/switch-faction.js'

This commit is contained in:
2023-07-19 01:50:10 +00:00
parent 1ca0e2d0e9
commit 389c1e17a6
+8
View File
@@ -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');
}
}