correction bug tactile

This commit is contained in:
Jerome Morjon 2015-03-20 21:39:23 +01:00
parent 31a37585b9
commit 423fb52c7b
2 changed files with 4 additions and 1 deletions

View File

@ -81,12 +81,16 @@
document.getElementById('imgRef').addEventListener("touchstart", function(event) {
absorbEvent_(event);
timer = setInterval(function(){ decompte() } , 1000); //intervalle, decompte de 1 secondes
//redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000);
return false;
});
document.getElementById('imgRef').addEventListener("touchend", function() {
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;
});
</script>

View File

@ -1,7 +1,6 @@
@extends('frontend/template')
@section('content')
<div class="abso referents">
<div class="game active"
onclick='location.href = "{{ URL::to('puzzle') }}";'