diff --git a/CSS/couloir.css b/CSS/couloir.css
index f9ed864..ebeb7f8 100644
--- a/CSS/couloir.css
+++ b/CSS/couloir.css
@@ -64,6 +64,7 @@ body {
padding: 1vw 1.2vw 1vw 1.2vw;
color: black;
font-family: 'Special Elite', cursive;
+ text-align: center;
font-size: 0.8vw;
background-image: linear-gradient(to top, black -50%, #BF0909 80%);
cursor : pointer;
diff --git a/HTML/couloir.html b/HTML/couloir.html
index 8ae17e2..23636a6 100644
--- a/HTML/couloir.html
+++ b/HTML/couloir.html
@@ -8,8 +8,9 @@
+
-
+
Sur les traces
@@ -24,8 +25,8 @@
diff --git a/JAVASCRIPT/aide_ami.js b/JAVASCRIPT/aide_ami.js
index f93f61f..778c38a 100644
--- a/JAVASCRIPT/aide_ami.js
+++ b/JAVASCRIPT/aide_ami.js
@@ -54,8 +54,11 @@ function handleButtonClicked(event) {
button.setAttribute('href', './couloir_ami.html');
button.click();
} else {
+ //desactive le lien
button.removeAttribute('href');
+ //on enleve l'event listener pour pas pouvoir spam le bouton
button.removeEventListener("click", handleButtonClicked);
+ //faire clignoter le message d'erreur
let repeater = setInterval(() => {
friendInput.setAttribute("placeholder", "");
setTimeout(() => {
@@ -71,6 +74,7 @@ function handleButtonClicked(event) {
}
//------------------ Gestion events ------------------//
+//Pour pas faire apparaitre le texte avant que la premiere phrase soit apparue
setTimeout(() => {
document.addEventListener("keypress", makeNextTextAppear);
}, 2000);
diff --git a/JAVASCRIPT/couloir.js b/JAVASCRIPT/couloir.js
new file mode 100644
index 0000000..5157de1
--- /dev/null
+++ b/JAVASCRIPT/couloir.js
@@ -0,0 +1,21 @@
+// -------------- VARIABLES -------------//
+let lienCrypto = document.getElementById("button2");
+let body = document.getElementById("body");
+
+// -------------- FUNCTIONS -------------//
+function handleLienCryptoClicked() {
+ let audioPas = document.createElement("audio");
+ audioPas.setAttribute("preload", "auto");
+ audioPas.setAttribute("autoplay", true);
+ audioPas.setAttribute("src", "../Sounds/pas_insaide.mp3");
+ audioPas.style.cssText = "z-index: -1; opacity: 0;";
+ body.appendChild(audioPas);
+
+ setTimeout(() => {
+ lienCrypto.setAttribute("href", "./crypto_seul.html");
+ lienCrypto.click();
+ }, 5000);
+}
+
+// --------------- EVENTS ---------------//
+lienCrypto.addEventListener("click", handleLienCryptoClicked);
\ No newline at end of file
diff --git a/Sounds/pas_insaide.mp3 b/Sounds/pas_insaide.mp3
new file mode 100644
index 0000000..79e3bbe
Binary files /dev/null and b/Sounds/pas_insaide.mp3 differ