9c8cb962 by Jeff Balicki

slideChange

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent f51dff45
......@@ -26159,6 +26159,7 @@
styleInject(css_248z);
jQuery(document).ready(function ($) {
var myLazyLoad = new LazyLoad();
jQuery('.carousel-items').each(function () {
//var offset = ((window.innerWidth - $('#content').width()) / 2) - 28;
//var offsetAfter = ((window.innerWidth - $('#content').width()) / 2) - 28;
......@@ -26202,8 +26203,11 @@
onlyInViewport: false
}
};
new Swiper(this, swiper_params);
console.log(swiper_params);
var mySwiper = new Swiper(this, swiper_params);
mySwiper.on('slideChange', function () {
console.log('slideChange');
setTimeout(myLazyLoad.update(), 1500);
});
});
$('.carousel ').css('margin-left', "-" + $('#content').css('margin-left'));
$(window).on('resize', function () {
......@@ -26241,11 +26245,10 @@
$('html, body, #page').animate({
scrollTop: $("#relevant-resources").offset().top - 250
}, 100);
setTimeout(myLazyLoad.update(), 2000);
setTimeout(myLazyLoad.update(), 1500);
});
$(document).on("click", ".page-item, .swiper-button-next, .swiper-button-prev", function (e) {
console.log('page');
setTimeout(myLazyLoad.update(), 2000);
$(document).on("click", ".page-item ", function (e) {
setTimeout(myLazyLoad.update(), 1500);
});
});
document.addEventListener('wpcf7mailsent', function (event) {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -9,10 +9,11 @@ import 'swiper/css/navigation';
import 'swiper/css/pagination';
import 'swiper/css/keyboard';
import 'swiper/css/a11y';
import LazyLoad from "vanilla-lazyload";
jQuery(document).ready(function($) {
var myLazyLoad = new LazyLoad();
jQuery('.carousel-items').each(function() {
......@@ -70,8 +71,12 @@ jQuery(document).ready(function($) {
};
new Swiper(this, swiper_params);
console.log(swiper_params);
var mySwiper = new Swiper(this, swiper_params);
mySwiper.on('slideChange', function () {
console.log('slideChange');
setTimeout( myLazyLoad.update(), 1500);
});
});
$('.carousel ').css('margin-left',"-"+$('#content').css('margin-left'));
......
......@@ -3,6 +3,9 @@ import jquery from 'jquery';
import LazyLoad from "vanilla-lazyload";
import DataTable from 'datatables.net-dt';
import "./_menu_mobile";
import "./_search";
import "./_header_menu";
......@@ -12,9 +15,9 @@ import "./_carousels";
var myLazyLoad = new LazyLoad();
var myLazyLoad = new LazyLoad();
window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) {
evalType = evalType || "visible";
......@@ -46,18 +49,20 @@ jQuery(document).ready(function($) {
$('#relevant-resources').on( 'page.dt', function () {
$('html, body, #page').animate({
scrollTop: $("#relevant-resources").offset().top - 250
}, 100);
setTimeout( myLazyLoad.update(), 2000);
setTimeout( myLazyLoad.update(), 1500);
});
$(document).on("click", ".page-item, .swiper-button-next, .swiper-button-prev", function(e){
console.log('page');
setTimeout( myLazyLoad.update(), 2000);
});
} );
$(document).on("click", ".page-item ", function(e){
setTimeout( myLazyLoad.update(), 1500);
});
});
......@@ -69,7 +74,6 @@ document.addEventListener( 'wpcf7mailsent', function( event ) {
jQuery(document).ready(function($) {
$(document).on("click", ".pojo-a11y-toolbar-link", function(e){
console.log('click');
$('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open');
});
......
......@@ -2,6 +2,6 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.469
Version: 1.0.470
*/
......