|
|
|
|
120
|
$("#rep2").off('click');
|
120
|
$("#rep2").off('click');
|
121
|
$("#both").off('click');
|
121
|
$("#both").off('click');
|
122
|
stopTimer();
|
122
|
stopTimer();
|
|
|
123
|
+ console.log(reponseUser == bonneReponse);
|
123
|
if(reponseUser == bonneReponse) {
|
124
|
if(reponseUser == bonneReponse) {
|
124
|
score += secRestantes+1;
|
125
|
score += secRestantes+1;
|
125
|
}
|
126
|
}
|
|
|
127
|
+ console.log(score);
|
126
|
if(score > 1) {
|
128
|
if(score > 1) {
|
127
|
$("#score").html("Score : "+score+" miams");
|
129
|
$("#score").html("Score : "+score+" miams");
|
128
|
$("#score-responsive").html(score+" miams");
|
130
|
$("#score-responsive").html(score+" miams");
|
|
|
|
|
191
|
window.clearTimeout(timer);
|
193
|
window.clearTimeout(timer);
|
192
|
$("#timer").addClass("pause");
|
194
|
$("#timer").addClass("pause");
|
193
|
secRestantes = Math.round($("#timer").width()/baseWidth*timing);
|
195
|
secRestantes = Math.round($("#timer").width()/baseWidth*timing);
|
|
|
196
|
+ console.log(secRestantes);
|
194
|
}
|
197
|
}
|
195
|
|
198
|
|
196
|
function endGame() {
|
199
|
function endGame() {
|