correction bug tactile
This commit is contained in:
parent
31a37585b9
commit
423fb52c7b
@ -81,12 +81,16 @@
|
|||||||
|
|
||||||
document.getElementById('imgRef').addEventListener("touchstart", function(event) {
|
document.getElementById('imgRef').addEventListener("touchstart", function(event) {
|
||||||
absorbEvent_(event);
|
absorbEvent_(event);
|
||||||
|
timer = setInterval(function(){ decompte() } , 1000); //intervalle, decompte de 1 secondes
|
||||||
//redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000);
|
//redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('imgRef').addEventListener("touchend", function() {
|
document.getElementById('imgRef').addEventListener("touchend", function() {
|
||||||
clearTimeout(redirect);
|
clearTimeout(redirect);
|
||||||
|
document.getElementById("decompte").innerHTML =""; //on efface le contenu
|
||||||
|
i = 3; //on reset le compteur
|
||||||
|
clearInterval(timer); // on stop le decompte si on relache la souris
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
@extends('frontend/template')
|
@extends('frontend/template')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="abso referents">
|
<div class="abso referents">
|
||||||
<div class="game active"
|
<div class="game active"
|
||||||
onclick='location.href = "{{ URL::to('puzzle') }}";'
|
onclick='location.href = "{{ URL::to('puzzle') }}";'
|
||||||
|
Reference in New Issue
Block a user