Compare commits
3 Commits
7d08fab8e3
...
1212a03441
Author | SHA1 | Date | |
---|---|---|---|
1212a03441 | |||
06ba796342 | |||
2bfce06210 |
@ -953,22 +953,6 @@
|
||||
|
||||
<?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