Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
parvin-noori authored Jul 9, 2024
1 parent d00ce93 commit bcb4718
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ $(document).ready(function () {
spaceBetween: 30,
},
}


});

//humburger menu
Expand All @@ -106,6 +108,14 @@ $(document).ready(function () {

})


$('.header-search-bar').on('submit', function(e) {
e.preventDefault(); // Prevent default form submission

// Redirect to the search page
window.location.href = 'https://parvin-noori.github.io/tipay/search';
});

//close responsive menu
$(".mega-menu-site-responsive .close").on("click", function () {
$('.mega-menu-site-responsive').removeClass('active')
Expand Down Expand Up @@ -168,10 +178,5 @@ $window.scroll(function () {
});


$('form.header-search-bar').on('submit', function(e) {
e.preventDefault(); // Prevent default form submission

// Redirect to the search page
window.location.href = 'https://parvin-noori.github.io/tipay/search';
});

0 comments on commit bcb4718

Please sign in to comment.