This commit is contained in:
alexandre-pereira 2015-03-18 12:09:00 +01:00
parent 91b4183afe
commit f196d93ddc
1 changed files with 10 additions and 4 deletions

View File

@ -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;
});
</script>
@endsection