Compare commits
No commits in common. "1212a03441da3b506d3ecad3c21f488f3efa9876" and "7d08fab8e3845caee4849b9b012e52c0e9c9885b" have entirely different histories.
1212a03441
...
7d08fab8e3
@ -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 |
Loading…
Reference in New Issue
Block a user