Skip to content

Commit

Permalink
Merge pull request #147 from La-CHATTE-2-0/feat/troll_inge
Browse files Browse the repository at this point in the history
troll ingé
  • Loading branch information
alanlecart authored Sep 20, 2024
2 parents e90bc77 + 76c6824 commit e8939cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file added public/images/insigne/troll_ingé.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/js/easteregg.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ const imageSciences = document.getElementById("ea-palmeSciences");
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");

let clicsSciences = 0;
let clicsSf = 0;
let clicsDroit = 0;
let clicsPharma = 0;
let clicsInge = 0;

imageSciences.addEventListener("click", async () => {
clicsSciences++;
Expand Down Expand Up @@ -48,4 +50,14 @@ imagePharma.addEventListener("click", async () => {
imagePharma.src = "/jean-loup.png"
clicsPharma = 0;
}
});

billotInge.addEventListener("click", async () => {
clicsInge++;
console.log("clic")

if (clicsInge === 5) {
billotInge.src = "/images/insigne/troll_ingé.png"
clicsInge = 0;
}
});
1 change: 1 addition & 0 deletions src/components/articles/Article13Spé.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<div>
<span>Inter-Fillières</span>
<img
id="ea-billot-inge"
class="billot"
loading="lazy"
src="/images/insigne/billot_satin.png"
Expand Down

0 comments on commit e8939cb

Please sign in to comment.