added global js and fixed buttons
This commit is contained in:
parent
8a0f8c77fe
commit
a0fa864475
4 changed files with 21 additions and 7 deletions
12
static/abaev-global.js
Normal file
12
static/abaev-global.js
Normal 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>');
|
||||
});
|
||||
});
|
|
@ -216,7 +216,7 @@ a.abv-map img {
|
|||
height: 2ex;
|
||||
}
|
||||
|
||||
a.abv-map:hover {
|
||||
a.link:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue