Skip to content

Commit

Permalink
Merge pull request #159 from La-CHATTE-2-0/feat/sextwo
Browse files Browse the repository at this point in the history
sextwo
  • Loading branch information
alanlecart authored Oct 7, 2024
2 parents 01071c0 + 73db941 commit 089e7ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion public/js/easteregg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -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;
}
});
1 change: 1 addition & 0 deletions src/components/articles/Article12.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import "../../sass/base/_tables.scss";
<tr>
<td data-fal-insigne>
<img
id="ea-carotte"
loading="lazy"
width="100"
height="100"
Expand Down

0 comments on commit 089e7ea

Please sign in to comment.