My js is working very well but clicking on any page, page is loading with ajax but some function is not working for example my bootstrap carousel or my parallax.js plugin..
How do I do event management ?
some js example on my page
`if (!$(".scene").length) return false;
var q = document.getElementsByClassName("scene")[0];
var r = new Parallax(q, {
calibrateX: false,
calibrateY: true,
invertX: false,
invertY: true,
limitX: false,
frictionX: .2,
frictionY: 4,
originX: 0,
originY: 1
});
On my web page, everything is okay.
My js is working very well but clicking on any page, page is loading with ajax but some function is not working for example my bootstrap carousel or my parallax.js plugin..
How do I do event management ?
some js example on my page
`if (!$(".scene").length) return false; var q = document.getElementsByClassName("scene")[0]; var r = new Parallax(q, { calibrateX: false, calibrateY: true, invertX: false, invertY: true, limitX: false, frictionX: .2, frictionY: 4, originX: 0, originY: 1 });
$('.img-area').cycle({ fx: 'fadeout', speed: 950, timeout: 100 }).cycle("pause");
$(".otel-history-list").on("click",function(){
});`
and my spf code
`$(function () { spf.init(); NProgress.configure({ showSpinner: false });
});`