PageSourceSearch

https://www.iifl.com/themes/custom/iifl_finance/js/anchor_attributes.min.js?v=6.0.2

js iifl.com collected 2026-09-24 19:55:50 UTC 6,773 bytes, 1 lines download raw bytes

1!function(e,t){t.behaviors.getPincodeFromLatLng={attach:function(t,o){const n=o=>{const n=o.coords.latitude,a=o.coords.longitude;e(t).find('input[name="lat_long"]').each(function(){this.value=`${n},${a}`});const i=e("input.geocode-pincode");i.length&&!i.val().trim()&&fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${n},${a}&key=AIzaSyBfS_g4Z_2dBVHfDCGp-X3eWVQkw43u97s`).then(e=>e.json()).then(t=>{if(!t.results||!t.results.length)return;let o=null;if(t.results.forEach(e=>{e.address_components.forEach(e=>{e.types.includes("postal_code")&&(o=e.long_name)})}),o){const t=e("input.geocode-pincode");t.val(o),t.attr("value",o)}}).catch(()=>console.warn("Failed to fetch pincode"))},a=e=>{console.error("Error getting location: "+e.message)};function i(){const e={enableHighAccuracy:!1,timeout:5e3,maximumAge:3e5};navigator.geolocation&&navigator.geolocation.getCurrentPosition(n,a,e)}"/gold-loans/gold-loan-at-home"==window.location.pathname?(document.body.dataset.locationPrefetched||(document.body.dataset.locationPrefetched="true","requestIdleCallback"in window?requestIdleCallback(()=>i()):setTimeout(()=>i(),500)),t.querySelectorAll('input[name="full_name"]').forEach(function(e){e.dataset.locationBound||(e.dataset.locationBound="true",e.addEventListener("click",function(){i()}))})):document.body.dataset.locationAuto||(document.body.dataset.locationAuto="true",i())}},document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".input-js-disable").forEach(e=>{e.classList.add("d-none")})}),t.behaviors.generalBehavior={attach:function(t,o){once("marquee-check","body",t).forEach(function(){e("marquee").length>0&&e("body").addClass("marquee-block-enable")}),once("number-only",".number-only",t).forEach(function(t){e(t).find("input").on("keypress keyup input",function(t){var o=t.which||t.keycode||t.key;return o>=48&&o<=57||o>=96&&o<=105||8==o||46==o||13==o||37==o||39==o||9==o?(e(this).attr("value",this.value),!0):(this.value=this.value.replace(/[^0-9]/g,""),
1!1)})}),once("alphabet-only",".alphabet-only",t).forEach(function(t){e(t).find("input").on("keypress keyup input",function(t){var o=t.which;return o>64&&o<91||o>96&&o<123||32==o||0==o||8==o?(e(this).attr("value",this.value),!0):(this.value=this.value.replace(/[^a-zA-Z ]/g,""),!1)})}),once("materialize-inputs","body",t).forEach(function(){e.fn.materializeInputs=function(e){function t(e){e.setAttribute("value",e.value)}void 0===e&&(e="input, textarea"),this.find(e).each(function(){t(this)}),this.on("keyup",e,function(){t(this)})},e("body").materializeInputs()}),once("search-open",".search-open-link",t).forEach(function(t){e(t).on("click",function(){e(".search-box").addClass("active"),e(".header").addClass("search-active"),e("body").addClass("body-search-box-open")})}),once("search-close",".search-box .btn-search-close",t).forEach(function(t){e(t).on("click",function(){e(".search-box").removeClass("active"),e(".header").removeClass("search-active"),e("body").removeClass("body-search-box-open")})}),once("footer-accordion",".site-footer-top__left .region h5",t).forEach(function(t){e(t).on("click",function(){e(window).width()<768&&(e(this).parent().parent().siblings().find(".nav").slideUp(),e(this).parent().parent().siblings().find("h5").removeClass("active"),e(this).next(".nav").slideToggle(),e(this).toggleClass("active"))})})}},t.behaviors.webformSubmitOverflow={attach(e){if(once("webform-submit-overflow",e.querySelectorAll("button.form-submit")).forEac
1h(e=>{e.addEventListener("click",()=>{document.body.style.overflow="hidden"})}),!t.Ajax.prototype._overflowPatched){t.Ajax.prototype._overflowPatched=!0;const e=t.Ajax.prototype.success;t.Ajax.prototype.success=function(...t){return setTimeout(()=>{document.body.classList.contains("modal-open")||(document.body.style.overflow="")},50),e.apply(this,t)}}}},t.behaviors.forceDownload={attach:function(e,o){once("forceDownload",".force-download",e).forEach(function(e){e.addEventListener("click",function(o){o.preventDefault();var n=e.getAttribute("href"),a=t.url("force-download")+"?file="+encodeURIComponent(n);window.location.href=a})})}},t.behaviors.moveBreadcrumb={attach:function(t,o){once("moveBreadcrumb","#banner-breadcrumb",t).forEach(function(){var o=e("#banner-breadcrumb",t),n=e(".breadcrumb-wrap",t);o.length&&n.length&&n.appendTo(o)})}},t.behaviors.goldLoanShowMore={attach:function(t,o){const n=e(".show-more-feature",t).find("li");n.length>5?(n.slice(5).hide(),once("showMore",".show-more-toggle",t).forEach(function(t){t.addEventListener("click",function(o){o.preventDefault();const a=e(t),i=a.data("expanded");i?(n.slice(5).slideUp(),a.text("Show More")):(n.slice(5).slideDown(),a.text("Show Less")),a.data("expanded",!i)})})):e(".show-more-toggle").hide()}},t.behaviors.customAnchorAttributes={attach:function(e,t){once("customAnchorAttributes",'a[target="_blank"]',e).forEach(e=>{var t=e.getAttribute("href");t&&-1!==t.indexOf("/auction")||e.setAttribute("rel","nofollow noopener noreferrer")}),once("addPlaceholderHref","a",e).forEach(e=>{const t=e.getAttribute("href");t&&"javascript:void(0);"!==t.trim()&&"void(0);"!==t.trim()||e.setAttribute("href","#")})}},t.behaviors.updateLangCookie={attach:function(e,t){function o(){return document.documentElement.getAttribute("lang")}function n(e,t,o){var n="";if(o){var a=new Date;a.setTime(a.getTime()+24*o*60*60*1e3),n="; expires="+a.toUTCString()}document.cookie=e+"="+t+"; path=/"+n}var a=o();a&&n("iifl_user_lang",a,30),new MutationObserver(function(e){e.forEach(function(e){if("HTML"===e.target.tagName&&"lang"===e.attributeName){var t=o();t&&t!==(a="iifl_user_lang",(i=document.cookie.match(new RegExp("(^| )"+a+"=([^;]+)")))?i[2]:null)&&n("iifl_user_lang",t,30)}var a,i})}).observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]})}},t.behaviors.toggleHeaderClass={attach:function(e,t){let o=!1;window.addEventListener("scroll",()=>{o||(requestAnimationFrame(()=>{!function(){const e=document.querySelector(".header");if(!e)return;const t=e.offsetHeight;window.scrollY>t?e.classList.add("scrolled"):e.classList.remove("scrolled")}(),o=!1}),o=!0)})}},t.behaviors.headerNavigation={attach:function(t){const o=e(".header .nav-item"),n=e(".header .nav-item .dropdown-toggle"),a=e(".header .nav-item .dropdown-menu"),i="show";e(window).on("load resize",function(){this.matchMedia("(min-width: 992px)").matches?o.hover(function(){var t=e(this);t.addClass(i),t.find(n).attr("aria-expanded","true"),t.find(a).addClass(i);var o=e(".primary-menu-wrap .nav-item.show .dropdown-menu").outerHeight();e(".nav-item.show .megamenu-bg-layer").css("height",o)},function(){var t=e(this);t.removeClass(i),t.find(n).attr("aria-expanded","false"),t.find(a).removeClass(i)}):o.off("mouseenter mouseleave")})}}}(jQuery,Drupal);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.