This commit is contained in:
alexandre-pereira 2015-03-18 12:09:00 +01:00
parent 91b4183afe
commit f196d93ddc

View File

@ -23,15 +23,21 @@
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("mouseup", function() { document.getElementById('imgRef').addEventListener("mouseup", function() {
clearTimeout(redirect); clearTimeout(redirect);
return false; 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;
});
</script> </script>
@endsection @endsection