|
|
@ -97,6 +97,7 @@ |
|
|
initTimer : 3, |
|
|
initTimer : 3, |
|
|
onGoingTimer : 0, |
|
|
onGoingTimer : 0, |
|
|
boothId : null, |
|
|
boothId : null, |
|
|
|
|
|
nbError : 0, |
|
|
pictureId : 0 |
|
|
pictureId : 0 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -184,6 +185,24 @@ |
|
|
}, 500) |
|
|
}, 500) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function BOB_showError () { |
|
|
|
|
|
BOB_var_context.nbError += 1 |
|
|
|
|
|
$('#idViewCountdown').fadeIn() |
|
|
|
|
|
$('#idViewCountdown').css('fontSize', '3em') |
|
|
|
|
|
if (BOB_var_context.nbError >= 3) { |
|
|
|
|
|
BOB_var_context.nbError = 0 |
|
|
|
|
|
$('#idViewCountdown').html("Oulala, le bobinoscope se sent pas<br/>très bien<br/>Revenez plus tard !") |
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
|
$('#idViewCountdown').fadeOut(500, function() { |
|
|
|
|
|
$('#idViewTrigger').fadeIn(); |
|
|
|
|
|
}) |
|
|
|
|
|
}, 5000) |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#idViewCountdown').html("Oops ! Un problème de pellicule ...<br/>On recommence") |
|
|
|
|
|
BOB_var_context.onGoingTimer = BOB_var_context.initTimer |
|
|
|
|
|
setTimeout(BOB_countdown, 4000) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function BOB_takeThe1Pictures() { |
|
|
function BOB_takeThe1Pictures() { |
|
|
$.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) { |
|
|
$.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) { |
|
|
@ -195,14 +214,15 @@ |
|
|
// }); |
|
|
// }); |
|
|
// return; |
|
|
// return; |
|
|
// } |
|
|
// } |
|
|
$('#idViewCountdown').html("Oops ! Un problème de pellicule<br/>On Recommence !!!"); |
|
|
|
|
|
$('#idViewCountdown').css('fontSize', '14em') |
|
|
|
|
|
} else { |
|
|
|
|
|
BOB_var_context.pictureId += 1 |
|
|
|
|
|
|
|
|
BOB_showError() |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BOB_var_context.pictureId += 1 |
|
|
|
|
|
BOB_var_context.nbError = 0 |
|
|
|
|
|
|
|
|
if( BOB_var_context.pictureId < 4 ) { |
|
|
if( BOB_var_context.pictureId < 4 ) { |
|
|
BOB_var_context.onGoingTimer = BOB_var_context.initTimer; |
|
|
|
|
|
|
|
|
BOB_var_context.onGoingTimer = BOB_var_context.initTimer |
|
|
BOB_countdown(); |
|
|
BOB_countdown(); |
|
|
} else { |
|
|
} else { |
|
|
$('#idViewCountdown').fadeOut(500, function() { |
|
|
$('#idViewCountdown').fadeOut(500, function() { |
|
|
|