Revert "Script arret carousel"

This reverts commit 6847f6535a.
This commit is contained in:
nyanloutre 2018-10-27 17:28:45 +02:00
parent 2bfce06210
commit 06ba796342
1 changed files with 0 additions and 16 deletions

View File

@ -947,22 +947,6 @@
</div>
</section>
<script type="text/javascript">
$(document).ready(function(){
var windowHeight = window.innerHeight || document.documentElement.clientHeight
$('.carousel').carousel('pause');
$('.carousel').toArray().forEach(function(element) {
var rect = element.getBoundingClientRect();
if(rect.top <= windowHeight && rect.bottom >= 0) {
element.carousel('cycle');
} else {
element.carousel('pause');
}
});
});
</script>
<?php include('contact.html'); ?>
<?php include('footer.html'); ?>