PageSourceSearch

https://aflegal.org/wp-content/themes/america-first-legal/js/slider-conflict-prevention.min.js?ver=.1790773877

js aflegal.org collected 2026-10-02 03:21:39 UTC 2,854 bytes, 1 lines download raw bytes

1!function(i){"use strict";window.AFL_INITIALIZED_SLIDERS=window.AFL_INITIALIZED_SLIDERS||new Set,window.AFL_SLIDER_QUEUE=window.AFL_SLIDER_QUEUE||[];let e=!1;function n(i,e,n=[]){if(window.AFL_INITIALIZED_SLIDERS.has(i))return void aflDebug.log("Slider Prevention",`Slider ${i} already initialized, skipping`);if(!document.querySelector(i))return;let t=!0;if(n.forEach(i=>{void 0===window[i]&&(t=!1)}),t)try{e(i),window.AFL_INITIALIZED_SLIDERS.add(i),aflDebug.success("Slider Prevention",`Successfully initialized slider: ${i}`)}catch(e){console.error(`❌ Error initializing slider ${i}:`,e)}else window.AFL_SLIDER_QUEUE.push({selector:i,initFunction:e,dependencies:n})}function t(){if(0===window.AFL_SLIDER_QUEUE.length)return;const i=[];window.AFL_SLIDER_QUEUE.forEach(e=>{let t=!0;e.dependencies.forEach(i=>{void 0===window[i]&&(t=!1)}),t?n(e.selector,e.initFunction,e.dependencies):i.push(e)}),window.AFL_SLIDER_QUEUE=i}function d(){i(".afl-slider").each(function(){const e=i(this),t=e.attr("id")||"afl-slider-"+Math.random().toString(36).substr(2,9);e.attr("id",t),n("#"+t,function(i){void 0!==window.AFLSlider&&window.AFLSlider.init&&window.AFLSlider.init(i)},["AFLSlider"])}),i(".universal-slider-featured").each(function(){const e=i(this),t=e.attr("id")||"universal-slider-"+Math.random().toString(36).substr(2,9);e.attr("id",t),n("#"+t,function(i){void 0!==window.UniversalSliderFeatured&&window.UniversalSliderFeatured.init&&window.UniversalSliderFeatured.init(i)},["UniversalSliderFeatured"])}),i(".universal-slider-multi").each(function(){const e=i(this),t=e.attr("id")||"multi-slider-"+Math.random().toString(36).substr(2,9);e.attr("id",t),n("#"+t,function(i){"undefined"!=typeof initUniversalSliderMulti&&initUniversalSliderMulti(i)},["initUniversalSliderMulti"])}),i(".corporations-slider").length&&n(".corporations-slider",function(){}),t()}function r(){window.aflDebug&&aflDebug.log("Slider Prevention","Reinitializing after content change");[".corporations-slider",".ajax-loaded-slider"].forEach(i=>{window.AFL_INITIALIZED_SLIDERS.delete(i)}),setTimeout(d,100)}function o(){document.hidden||setTimeout(()=>{i(".afl-slider, .universal-slider-featured, .universal-slider-multi").each(function(){const e=i(this),n=e.find(".slide, .afl-slider__slide, .slider-slide");if(n.length>0&&0===n.filter(":visible").length){const i="#"+e.attr("id");window.AFL_INITIALIZED_SLIDERS.delete(i),setTimeout(()=>{d()},200)}})},500)}i(document).ready(function(){e=!0,window.aflDebug&&aflDebug.log("Slider Prevention","System started"),setTimeout(d,100),setInterval(t,1e3),document.addEventListener("visibilitychange",o),window.addEventListener("focus",o),i(document).on("ajaxComplete",function(){setTimeout(r,200)})}),window.AFL_SLIDER_UTILS={safeInit:n,reinitialize:r,processQueue:t,getInitialized:()=>Array.from(window.AFL_INITIALIZED_SLIDERS)}}(jQuery);

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.