parent
2bfce06210
commit
06ba796342
@ -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'); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user