Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(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 */