diff --git a/SRC/resources/views/frontend/games.blade.php b/SRC/resources/views/frontend/games.blade.php index 3b1326e..386b919 100755 --- a/SRC/resources/views/frontend/games.blade.php +++ b/SRC/resources/views/frontend/games.blade.php @@ -23,15 +23,21 @@ redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000); return false; - }); - + }); document.getElementById('imgRef').addEventListener("mouseup", function() { clearTimeout(redirect); return false; }); - - + document.getElementById('imgRef').addEventListener("touchstart", function() { + redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000); + return false; + }); + + document.getElementById('imgRef').addEventListener("touchend", function() { + clearTimeout(redirect); + return false; + }); @endsection