minmod
This commit is contained in:
parent
854add1046
commit
434b3b08fb
|
@ -89,6 +89,7 @@
|
||||||
|
|
||||||
#machine-box > #r1.active,
|
#machine-box > #r1.active,
|
||||||
#machine-box > #r2.active{
|
#machine-box > #r2.active{
|
||||||
|
font-weight: bold;
|
||||||
color: #18eea9;
|
color: #18eea9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +311,6 @@
|
||||||
|
|
||||||
/* [4] Passage de carte
|
/* [4] Passage de carte
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
var PRESSED = false;
|
|
||||||
var INTERVAL = null;
|
var INTERVAL = null;
|
||||||
var COUNT = 0;
|
var COUNT = 0;
|
||||||
|
|
||||||
|
@ -319,14 +319,9 @@
|
||||||
function countRoutine(){
|
function countRoutine(){
|
||||||
COUNT++;
|
COUNT++;
|
||||||
|
|
||||||
if( COUNT == 1 )
|
if( COUNT == 1 ) STATE.started = !STATE.started;
|
||||||
STATE.started = !STATE.started;
|
if( COUNT == 2 ) STATE.signaled = true;
|
||||||
|
if( COUNT == 3 ) STATE.locked = true;
|
||||||
if( COUNT == 2 )
|
|
||||||
STATE.signaled = true;
|
|
||||||
|
|
||||||
if( COUNT == 3 )
|
|
||||||
STATE.locked = true;
|
|
||||||
|
|
||||||
updateChips();
|
updateChips();
|
||||||
}
|
}
|
||||||
|
@ -334,7 +329,6 @@
|
||||||
/* (1) Appui carte
|
/* (1) Appui carte
|
||||||
---------------------------------------------------------*/
|
---------------------------------------------------------*/
|
||||||
pass.addEventListener('mousedown', function(e){
|
pass.addEventListener('mousedown', function(e){
|
||||||
PRESSED = true;
|
|
||||||
COUNT = 0;
|
COUNT = 0;
|
||||||
|
|
||||||
countRoutine();
|
countRoutine();
|
||||||
|
@ -345,10 +339,7 @@
|
||||||
/* (2) Levé carte
|
/* (2) Levé carte
|
||||||
---------------------------------------------------------*/
|
---------------------------------------------------------*/
|
||||||
document.body.addEventListener('mouseup', function(e){
|
document.body.addEventListener('mouseup', function(e){
|
||||||
if( PRESSED == true ){
|
|
||||||
PRESSED = false;
|
|
||||||
clearInterval(INTERVAL);
|
clearInterval(INTERVAL);
|
||||||
}
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue