Fix background image placeholder

This commit is contained in:
printempw 2017-06-30 12:04:27 +08:00
parent f4dc8cbcf9
commit c9bdc1b6e9

View File

@ -134,7 +134,10 @@
{!! bs_footer() !!}
<script>
$(window).resize(changeWrapperHeight).scroll(function(event) {
$(window)
.ready(changeWrapperHeight)
.resize(changeWrapperHeight)
.scroll(function(event) {
// change color of the navigation bar when scrolling
if (document.body.scrollTop >= ($(window).height() * 2 / 3)) {
$('.main-header').removeClass('transparent');