Skip to content

Commit

Permalink
Fixed Navbar Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-03 committed Jul 4, 2024
1 parent b0658fc commit 64d811d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@ $(document).ready(function () {
$('.preloader').fadeOut();
});

$(window).scroll(function () {
var scroll = $(window).scrollTop();
if (scroll > 200) {
$('#page-navigation').addClass('bg-white').removeClass('bg-transparent');
$('#page-navigation').addClass('navbar-light').removeClass('navbar-dark');
$('#your-image').attr(
'src',
'assets/img/logo/krishiconnect-high-resolution-logo.png'
);
} else {
$('#page-navigation').addClass('bg-transparent').removeClass('bg-white');
$('#page-navigation').addClass('navbar-dark').removeClass('navbar-light');
$('#your-image').attr(
'src',
'assets/img/logo/krishiconnect-high-resolution-logo_black.png'
);
}
});

$('.landing-categories').owlCarousel({
loop: true,
items: 4,
Expand Down

0 comments on commit 64d811d

Please sign in to comment.