|
|
@ -178,7 +178,7 @@
|
|
|
|
var enigmeId = '<?php echo $enigme->getIdEnigme(); ?>';
|
|
|
|
var enigmeId = '<?php echo $enigme->getIdEnigme(); ?>';
|
|
|
|
console.log("[Savecode]index : " + index, "[Savecode]enigmeId : " + enigmeId);
|
|
|
|
console.log("[Savecode]index : " + index, "[Savecode]enigmeId : " + enigmeId);
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=saveCodeMulti', true);
|
|
|
|
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=saveCodeMulti', true);
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.onload = function () {
|
|
|
|
xhr.onload = function () {
|
|
|
@ -203,7 +203,7 @@
|
|
|
|
document.getElementById('countdown').innerHTML = hours + " heures " + minutes + " minutes " + remainingSeconds + " secondes";
|
|
|
|
document.getElementById('countdown').innerHTML = hours + " heures " + minutes + " minutes " + remainingSeconds + " secondes";
|
|
|
|
if (seconds == 0) {
|
|
|
|
if (seconds == 0) {
|
|
|
|
clearInterval(countdown);
|
|
|
|
clearInterval(countdown);
|
|
|
|
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=endGame'
|
|
|
|
window.location.href = 'http://82.165.180.114/Scripted/index.php?action=endGame'
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
seconds--;
|
|
|
|
seconds--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|