Compare commits

..

No commits in common. "1212a03441da3b506d3ecad3c21f488f3efa9876" and "7d08fab8e3845caee4849b9b012e52c0e9c9885b" have entirely different histories.

2 changed files with 16 additions and 0 deletions

View File

@ -953,6 +953,22 @@
<?php include('include_foot.html'); ?>
<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>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB