added global js and fixed buttons

This commit is contained in:
Oleg Belyaev 2025-03-24 20:44:03 +03:00
parent 8a0f8c77fe
commit a0fa864475
4 changed files with 21 additions and 7 deletions

12
static/abaev-global.js Normal file
View file

@ -0,0 +1,12 @@
$( document ).ready(function() {
// GLOBALS;
// Link elements that do not have href out of the box
$('.link').on("click", function () {
window.location=$(this)[0].dataset.href+window.location.search+window.location.hash;
});
$('#abv-search').on("submit", function () {
$('#abv-search-icon').replaceWith('<div class="loader"></div>');
});
});

View file

@ -216,7 +216,7 @@ a.abv-map img {
height: 2ex;
}
a.abv-map:hover {
a.link:hover {
cursor: pointer;
}

View file

@ -10,6 +10,8 @@ $( document ).ready(function() {
$('#abv-search-icon').replaceWith('<div class="loader"></div>');
});
// INFINITE SCROLL
// init Infinite Scroll
$('main').infiniteScroll({
path: '.pagination__next',