From a5e64c49e5ee018ce8665f30a86e1485b046474a Mon Sep 17 00:00:00 2001 From: vgaNAR6ta Date: Fri, 3 Jul 2026 18:38:03 +0200 Subject: [PATCH] =?UTF-8?q?edit:=20favicon=20change=20de=20couleur=20?= =?UTF-8?q?=C3=A0=20l'ouverture=20^^?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +- src/assets/favicon.svg | 4 +- src/assets/favicon_open.svg | 76 ++++++++++++++++++++++++++++++++++++ src/components/lolStatus.vue | 5 ++- 4 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 src/assets/favicon_open.svg diff --git a/index.html b/index.html index dc42e0e..3247528 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + L(. O.)L @@ -12,7 +12,7 @@
-

LOL

+

LL

Git diff --git a/src/assets/favicon.svg b/src/assets/favicon.svg index ef2b02f..b396f5f 100644 --- a/src/assets/favicon.svg +++ b/src/assets/favicon.svg @@ -61,14 +61,14 @@ inkscape:pagecheckerboard="1" inkscape:deskcolor="#d1d1d1" /> + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/src/components/lolStatus.vue b/src/components/lolStatus.vue index 0ec6198..4386712 100644 --- a/src/components/lolStatus.vue +++ b/src/components/lolStatus.vue @@ -50,9 +50,12 @@ methods: { updateVisibleStatus(){ let currentTheme = this.lolCurrentStatus ? 'open' : 'closed'; - console.log(currentTheme); + let pageIcon = document.querySelector('link'); + //console.log(currentTheme); + console.log(pageIcon.href); this.statusText = this.lolCurrentStatus ? 'OUVERT !' : 'FERMÉ...'; document.documentElement.setAttribute('data-theme' , currentTheme); + document.querySelector('link').href = this.lolCurrentStatus ? './src/assets/favicon_open.svg' : './src/assets/favicon.svg' this.$refs.lolStatus.style.animation = this.lolCurrentStatus ? 'blink 1.61s infinite' : 'none'; } },