menu ok graphiquement et page 404 ok
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const menuButtons = document.querySelectorAll('.menu-button[data-target]');
|
||||
|
||||
menuButtons.forEach((button) => {
|
||||
button.addEventListener('click', () => {
|
||||
const target = button.getAttribute('data-target');
|
||||
if (target) {
|
||||
window.location.href = target;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user