Change the sound to rick roll

This commit is contained in:
2023-05-31 12:59:12 +02:00
parent caf6ed92b3
commit 31af6a846e
4 changed files with 11 additions and 11 deletions

Binary file not shown.

View File

@@ -140,10 +140,10 @@
background: rgba(0, 0, 0, 0.65);
border: 1px solid silver;
box-shadow: inset 0px 0px 0px 2px #808080;
top: 12%;
left: 12%;
right: 12%;
bottom: 12%;
top: 25%;
left: 25%;
right: 25%;
bottom: 25%;
z-index: 1;
}
.number {
@@ -192,10 +192,10 @@
}
.inner:after {
z-index: 3;
top: 24%;
right: 24%;
bottom: 24%;
left: 24%;
top: 40%;
right: 40%;
bottom: 40%;
left: 40%;
background-color: #4d4d4d;
border: 3px solid #808080;
}

View File

@@ -5,7 +5,7 @@ let $inner = $('.inner'),
maskDefault = 'Faites vos jeux',
timer = 9000;
let red = [32,19,21,25,34,27,36,30,23,5,16,1,14,9,18,7,12,3];
let black = [32,19,21,25,34,27,36,30,23,5,16,1,14,9,18,7,12,3];
@@ -35,8 +35,8 @@ $spin.on('click',function(event){
// remove the disabled attribute when the ball has stopped
setTimeout(function() {
if($.inArray(randomNumber, red) !== -1){ color = 'red'} else { color = 'black'};
if(randomNumber == 0){color = 'green'};
if($.inArray(randomNumber, black) === -1){ color = 'red'} else { color = 'black'};
if(randomNumber === 0){color = 'green'};
$data.addClass('reveal');
$inner.addClass('rest');

Binary file not shown.