From 62453745f376abc03e202c659aa0ad826837dcd5 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 27 Feb 2024 15:20:02 +0100 Subject: [PATCH] dark mode --- science-quest/index.html | 2 +- science-quest/src/components/Titre.vue | 9 +++++++-- science-quest/src/components/jeux/kahoot/Kahoot.vue | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/science-quest/index.html b/science-quest/index.html index 629ad9a..95af64d 100644 --- a/science-quest/index.html +++ b/science-quest/index.html @@ -6,7 +6,7 @@ Welcome to Science Quest - +
diff --git a/science-quest/src/components/Titre.vue b/science-quest/src/components/Titre.vue index 6aec7da..d778dc8 100644 --- a/science-quest/src/components/Titre.vue +++ b/science-quest/src/components/Titre.vue @@ -7,6 +7,11 @@ export default{ nomApp:NOM_APP } + }, + methods:{ + changerDarkMode: function(){ + document.body.dataset.bsTheme!="dark" ? document.body.dataset.bsTheme="dark" : document.body.dataset.bsTheme="light" + } } } @@ -15,7 +20,7 @@ export default{ -