Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
grecaptcha.reset();
},
error: function (err) {
console.log(err);
},
complete: function() {
$(this).find('.is-submit-btn').removeClass('is-loading');
}
});
return false;
}
});
// Lazyload covers
var myLazyLoad = new LazyLoad({
elements_selector: ".lazy"
});
// Making blog post notification appear after some time
let heyListen = document.getElementById('heyListen');
if (heyListen) {
window.setTimeout(() => {
heyListen.classList.add('is-active');
window.setTimeout(() => {
heyListen.classList.remove('is-active');
}, 30000);
}, 10000);
// Making notification disapear on click
let closeListen = document.getElementById('closeListen');
closeListen.addEventListener('click', () => {
inserted(el) {
el._lazyload = new LazyLoad({
container: el,
elements_selector: 'iframe',
load_delay: 300
});
// doLazyLoad(el);
},
update(el) {
created() {
// Root page.
getPageTotalDescAsync('').then(rootPageDescMap => {
this.rootPageDescMap = Object.freeze(rootPageDescMap);
});
this._lazyload = new LazyLoad({
elements_selector: 'iframe',
load_delay: 300
});
this.updateCurrentPath(this.shared.currentPath, true);
},
(function () {
if (!$("#search-results").length) {
return;
}
const myLazyLoad = new LazyLoad();
// Load more adventures
let currentPage = 1;
const $loadMoreBtn = $("#load-more-btn");
$loadMoreBtn.click(function () {
$loadMoreBtn.attr("disabled", true);
$loadMoreBtn.find(".fa-spin").removeClass("d-none");
const $searchForm = $("#search-form");
const data = $searchForm.serialize() + "&page=" + ++currentPage;
$.ajax({
method: "POST",
url: $searchForm.attr("action"),
data: data,
})
.done(function (result) {
});
createDisabilityFormWizard(store, widgetTypes.DISABILITY_APP_STATUS);
createFacilityListWidget();
createFacilityDetailWidget();
createBasicFacilityListWidget();
createFacilityPatientSatisfactionScoresWidget();
// homepage widgets
if (location.pathname === '/') {
createMyVALoginWidget(store);
}
/* eslint-disable no-unused-vars,camelcase */
const lazyLoad = new LazyLoad({
elements_selector: '.lazy',
});
/* eslint-enable */