From 73db941828dec6a0f98f9b5e6b5a271110fc4838 Mon Sep 17 00:00:00 2001 From: Alan LECART Date: Mon, 7 Oct 2024 21:39:57 +0200 Subject: [PATCH] sextwo --- public/js/easteregg.js | 14 +++++++++++++- src/components/articles/Article12.vue | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/public/js/easteregg.js b/public/js/easteregg.js index a2ca521..b3de8cc 100644 --- a/public/js/easteregg.js +++ b/public/js/easteregg.js @@ -4,12 +4,16 @@ const imageSf = document.getElementById("ea-sf"); const imageDroit = document.getElementById("ea-droits"); const imagePharma = document.getElementById("ea-cad-pharma"); const billotInge = document.getElementById("ea-billot-inge"); +const carotte = document.getElementById("ea-carotte"); let clicsSciences = 0; let clicsSf = 0; let clicsDroit = 0; let clicsPharma = 0; let clicsInge = 0; +let clicsCarotte = 0; + +const sextwo = "https://fr.pornhub.com/view_video.php?viewkey=660bd170cf0c6#1" imageSciences.addEventListener("click", async () => { clicsSciences++; @@ -54,10 +58,18 @@ imagePharma.addEventListener("click", async () => { billotInge.addEventListener("click", async () => { clicsInge++; - console.log("clic") if (clicsInge === 5) { billotInge.src = "/images/insigne/troll_ingé.png" clicsInge = 0; } +}); + +carotte.addEventListener("click", async () => { + clicsCarotte++; + + if (clicsCarotte === 5) { + document.location.href = sextwo + clicsCarotte = 0; + } }); \ No newline at end of file diff --git a/src/components/articles/Article12.vue b/src/components/articles/Article12.vue index 1ff3b56..ea9b92f 100644 --- a/src/components/articles/Article12.vue +++ b/src/components/articles/Article12.vue @@ -19,6 +19,7 @@ import "../../sass/base/_tables.scss";