forked from LiveCarta/LiveCartaWP
LAW-3741
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
(function(){
|
||||
|
||||
var slider;
|
||||
var sliderOptions = {
|
||||
perPage: 3,
|
||||
@@ -50,9 +52,13 @@ function resizeWindow(){
|
||||
}
|
||||
}
|
||||
|
||||
if (document.querySelector('.splide')) {
|
||||
mountSlider();
|
||||
resizeWindow();
|
||||
window.onresize = resizeWindow;
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
function scrollToCalendar() {
|
||||
event.preventDefault();
|
||||
@@ -60,3 +66,4 @@ function scrollToCalendar() {
|
||||
var scrollCoords = window.pageYOffset + scrollContCoords + 15;
|
||||
window.scrollTo(0, scrollCoords);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user