francisation+bonus apres rickroll
This commit is contained in:
parent
2a377b25c9
commit
4b4d8c3d03
1 changed files with 5 additions and 5 deletions
10
js/main.js
10
js/main.js
|
|
@ -294,10 +294,10 @@ function leBoostDuProf(){
|
||||||
if (i === 0){
|
if (i === 0){
|
||||||
rickRoll()
|
rickRoll()
|
||||||
i+=1
|
i+=1
|
||||||
}else{
|
|
||||||
score += 1000000000
|
|
||||||
majAffichageScore()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
majAffichageScore()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -419,7 +419,7 @@ function rendreNombreLisible(n){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showGift() {
|
function afficherCadeau() {
|
||||||
const x = Math.random() * (window.innerWidth - 50);
|
const x = Math.random() * (window.innerWidth - 50);
|
||||||
const y = Math.random() * (window.innerHeight - 50);
|
const y = Math.random() * (window.innerHeight - 50);
|
||||||
|
|
||||||
|
|
@ -429,7 +429,7 @@ function showGift() {
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
gift.style.display = "none";
|
gift.style.display = "none";
|
||||||
setTimeout(showGift, Math.random() * 3000 + 2000); // Temps aléatoire entre 2 et 5 secondes
|
setTimeout(afficherCadeau, Math.random() * 3000 + 2000); // Temps aléatoire entre 2 et 5 secondes
|
||||||
}, Math.random() * 2000 + 1000); // Durée d'affichage entre 1 et 2 secondes
|
}, Math.random() * 2000 + 1000); // Durée d'affichage entre 1 et 2 secondes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue