Fix background image placeholder
This commit is contained in:
parent
f4dc8cbcf9
commit
c9bdc1b6e9
|
|
@ -134,7 +134,10 @@
|
||||||
{!! bs_footer() !!}
|
{!! bs_footer() !!}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(window).resize(changeWrapperHeight).scroll(function(event) {
|
$(window)
|
||||||
|
.ready(changeWrapperHeight)
|
||||||
|
.resize(changeWrapperHeight)
|
||||||
|
.scroll(function(event) {
|
||||||
// change color of the navigation bar when scrolling
|
// change color of the navigation bar when scrolling
|
||||||
if (document.body.scrollTop >= ($(window).height() * 2 / 3)) {
|
if (document.body.scrollTop >= ($(window).height() * 2 / 3)) {
|
||||||
$('.main-header').removeClass('transparent');
|
$('.main-header').removeClass('transparent');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user