PageSourceSearch

https://rickyiangordon.com/wp-content/themes/Divi/includes/builder…/build/script-library-slider.js?ver=5.13

js rickyiangordon.com collected 2026-09-26 06:23:32 UTC 19,776 bytes, 1 lines download raw bytes

1!function(){var e;(e=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_slider_modules=function(){const t="object"==typeof window.ET_Builder,s=e(".et_pb_slider"),i=e(window),o="et-pb-slider-bottom-controls-style";let n=!1;function l(e){return null==e?"":document.createTextNode(String(e)).nodeValue||""}jQuery.fn.closest_descendent=function(e){let t,s=this.children();for(;s.length&&(t=s.filter(e),!t.length);)s=s.children();return t},e.et_pb_simple_slider=function(s,_){const d=e.extend({slide:".et-slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",previous_text:"undefined"!=typeof et_pb_custom?et_pb_custom.previous:"",next_text:"undefined"!=typeof et_pb_custom?et_pb_custom.next:"",swipe_text:"undefined"!=typeof et_pb_custom&&et_pb_custom.slider_swipe?et_pb_custom.slider_swipe:"SWIPE →",show_bottom_controls_counter:!0,show_bottom_controls_swipe:!0,fade_speed:500,use_arrows:!0,use_controls:!0,manual_arrows:"",append_controls_to:"",controls_below:!1,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1,active_slide:0},_),p=e(s);let c=p.closest_descendent(d.slide);const b=c.length,u=d.fade_speed;let f,m,h,g,v,w,y=d.active_slide,x="";p.find(".et_pb_container").width();const C=p.hasClass("et_pb_post_slider"),$=p.hasClass("et_pb_slider_bottom_controls");let T,k,F=!1;if(p.et_animation_running=!1,e.data(s,"et_pb_simple_slider",p),c.eq(0).addClass("et-pb-active-slide"),p.attr("data-active-slide",c.data("slide-id")),d.tabs_animation||p.hasClass("et_pb_bg_layout_dark")||p.hasClass("et_pb_bg_layout_light")||p.hasClass("et_pb_slider_empty")||p.addClass(S(c.eq(0))),d.use_arrows&&b>1&&(""==d.manual_arrows?d.hasOwnProperty("slide")&&".et_pb_gallery_item"===d.slide?p.append(`<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" style="color:inherit"><span>${d.previous_text}</span></a><a class="et-pb-arrow-next" href="#" style="color:inherit"><span>${d.next_text}</span></a></div>`):p.append(`<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" ><span>${d.previous_text}</span></a><a class="et-pb-arrow-next" href="#"><span>${d.next_text}</span></a></div>`):p.append(d.manual_arrows),f=p.find(d.arrows),m=p.find(d.prev_arrow),h=p.find(d.next_arrow),p.on("click.et_pb_simple_slider",d.next_arrow,(()=>(p.et_animation_running||p.et_slider_move_to("next"),!1))),p.on("click.et_pb_simple_slider",d.prev_arrow,(()=>(p.et_animation_running||p.et_slider_move_to("previous"),!1))),p.on("swipeleft.et_pb_simple_slider",d.slide,(t=>{e(t.target).closest(".et-fb-popover-tinymce").length||e(t.target).closest("[data-et-vb-editable-element]").length||p.et_slider_move_to("next")})),p.on("swiperight.et_pb_simple_slider",d.slide,(t=>{e(t.target).closest(".et-fb-popover-tinymce").length||e(t.target).closest("[data-et-vb-editable-element]").length||p.et_slider_move_to("previous")}))),d.use_controls&&b>1){for(var z=1;z<=b;z++)x+=`<a href="#"${1==z?` class="${d.control_active_class}"`:""}>${z}</a>`;if(p.find("video").length>0&&(d.controls_class+=" et-pb-controllers-has-video-tag"),$?(d.controls=".et-pb-slider-bottom-controls-progress a",x=['<div class="et-pb-slider-bottom-controls">',!1!==d.show_bottom_controls_counter?['<span class="et-pb-slider-bottom-controls-counter" aria-live="polite">',`<span class="et-pb-slider-bottom-controls-current">${N(y+1)}</span>`,` / <span class="et-pb-slider-bottom-controls-total">${N(b)}</span>`,"</span>"].join(""):"",`<div class="et-pb-slider-bottom-controls-progress">${x}</div>`,"</div>"].join("")):x=`<div class="${d.controls_class}">${x}</div>`,""==d.append_controls_to?p.append(x):e(d.append_controls_to).append(x),g=d.controls_below?p.parent().find(d.controls):p.find(d.controls),g.on("click.et_pb_simple_slider",(function(){return p.et_animation_running||p.et_slider_move_to(e(this).index()),!1})),$){if(T=p.find(".et-pb-slider-bottom-controls"),k=T.find(".et-pb-slider-bottom-control
1s-current"),!1!==d.show_bottom_controls_swipe){const t=e("<span>",{class:"et-pb-slider-bottom-controls-swipe"});t.text(l(d.swipe_text)),T.append(t)}"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame((()=>{I(),j()})):setTimeout((()=>{I(),j()}),0)}}if(d.use_carousel&&b>1){const t=e('<div class="et_pb_carousel"><div class="et_pb_carousel_items"></div></div>'),s=t.find(".et_pb_carousel_items");for(z=1;z<=b;z++){const t=z-1,i=c.eq(t).data("image"),o=void 0!==i?i:"",n=e(`<div class="et_pb_carousel_item_${t} et_pb_carousel_item ${1===z?d.control_active_class:""}" data-slide-id="${t}"><div class="et_pb_video_overlay" href="#"><div class="et_pb_video_overlay_hover"><a href="#" class="et_pb_video_play"></a></div></div></div>`);o&&n.find(".et_pb_video_overlay").css("background-image",`url(${o})`),n.appendTo(s)}p.after(t),v=p.siblings(".et_pb_carousel").find(d.carousel_controls),v.on("click.et_pb_simple_slider",(function(){if(p.et_animation_running)return!1;const t=e(this);return p.et_slider_move_to(t.data("slide-id")),!1})),e(document).trigger("et_pb_video_slider_carousel_created",[t])}function q(){F||(p.hasClass("et_pb_pause_slider")?setTimeout((()=>{q()}),2e3):d.slideshow&&b>1&&!p.hasClass("et_slider_hovered")&&(w=setTimeout((()=>{p.et_slider_move_to("next")}),d.slideshow_speed)))}function N(e){return`${e}`.padStart(2,"0")}function I(){$&&T&&0!==T.length&&function(){if(n)return;if(document.getElementById(o))return void(n=!0);const e=document.createElement("style");e.id=o,e.textContent="\n          .et_pb_slider .et-pb-slider-bottom-controls {\n            position: absolute;\n            left: 24px;\n            right: 24px;\n            bottom: 24px;\n            display: flex;\n            align-items: center;\n            gap: 16px;\n            width: auto;\n            z-index: 12;\n            color: #ffffff;\n            pointer-events: none;\n          }\n\n          .et_pb_slider .et-pb-slider-bottom-controls .et-pb-slider-bottom-controls-counter,\n          .et_pb_slider .et-pb-slider-bottom-controls .et-pb-slider-bottom-controls-swipe {\n            font-size: 14px;\n            font-weight: 500;\n            letter-spacing: 0.08em;\n            line-height: 1;\n            text-transform: uppercase;\n            white-space: nowrap;\n          }\n\n          .et_pb_slider .et-pb-slider-bottom-controls .et-pb-slider-bottom-controls-progress {\n            display: flex;\n            flex: 1 1 auto;\n            align-items: center;\n            gap: 8px;\n            pointer-events: auto;\n          }\n\n          .et_pb_slider .et-pb-slider-bottom-controls .et-pb-slider-bottom-controls-progress a {\n            display: block;\n            flex: 1 1 0%;\n            width: auto;\n            height: 2px;\n            margin: 0;\n            border-radius: 999px;\n            background-color: rgba(255, 255, 255, 0.35);\n            opacity: 1;\n            text-indent: -9999px;\n            overflow: hidden;\n            white-space: nowrap;\n            font-size: 0;\n            line-height: 0;\n            pointer-events: auto;\n          }\n\n          .et_pb_slider .et-pb-slider-bottom-controls .et-pb-slider-bottom-controls-progress a.et-pb-active-control {\n            background-color: #ffffff;\n            opacity: 1;\n          }\n        ",document.head.appendChild(e),n=!0}()}function j(){$&&k&&0!==k.length&&k.text(N(y+1))}function E(){if(!(p.hasClass("et_pb_gallery")||p.hasClass("et_pb_wc_gallery")||p.parent().hasClass("et_pb_wc_gallery")||p.closest(".et_pb_gallery").length>0||p.closest(".et_pb_wc_gallery").length>0))return;const e=p.find(d.arrows),t=p.find(d.prev_arrow),s=p.find(d.next_arrow),i=p.find(d.controls_class?`.${d.controls_class}`:".et-pb-controllers");if(d.use_arrows&&(!e.length||!t.length||!s.length)||d.use_controls&&!i.length)return void setTimeout((()=>{E()}),100);const o=p.find(".et-pb-active-slide");if(!o.length)return;const n=o.find(".et_pb_gallery_image").find("img").first();if(!n.length)return t.length&&t.css("top",""),s.length&&s.css("top",""),void(i.length&&i.css("bottom",""));
1n[0].complete&&0!==n[0].naturalHeight?requestAnimationFrame((()=>{const e=p.offset(),o=n.offset(),l=p.innerHeight(),a=n.outerHeight();if(!(e&&o&&l&&a))return;const r=o.top-e.top,_=r+a/2,c=l-(r+a)+20;if(d.use_arrows&&t.length&&s.length){const e=_/l*100,i=Math.max(10,Math.min(90,e));t.css({top:`${i}%`,marginTop:"-24px"}),s.css({top:`${i}%`,marginTop:"-24px"})}if(d.use_controls&&i.length){const e=Math.max(20,c);i.css("bottom",`${e}px`)}})):n.on("load.et_gallery_controls",(function(){E(),n.off("load.et_gallery_controls")}))}function H(){const e=p,t=e.find(".et-pb-active-slide .et_pb_slide_image"),s=t.find("img"),i=e.find(".et-pb-active-slide .et_pb_slide_video"),o=t.closest(".et_pb_slide"),n=o.closest(".et_pb_slider"),l=parseFloat(n.innerHeight()),a=parseFloat(.8*l);let _=parseFloat(t.height());const d=parseFloat(i.height()),c=r().children(".et_pb_module:visible").first(),b=c.find(".et_pb_slide .et_pb_container"),u=r().is(".et_pb_fullwidth_section");let f=parseFloat(b.height());const m=parseFloat(.8*f);isNaN(a)||(t.find("img").css("maxHeight",`${a}px`),_=parseInt(t.height()),window.et_is_transparent_nav&&c.is(".et_pb_slider")&&u&&(t.find("img").css("maxHeight",`${m}px`),_=parseInt(t.height()))),!isNaN(_)&&o.hasClass("et_pb_media_alignment_center")&&(t.css("marginTop",`-${_/2}px`),s.data("hasLoadEvent")||(s.data("hasLoadEvent",!0),s.on("load",(()=>{_=parseFloat(t.height()),t.css("marginTop",`-${_/2}px`)})))),isNaN(d)||i.css("marginTop",`-${d/2}px`),setTimeout((()=>{E()}),150)}function L(t){if("function"!=typeof window.set_fullwidth_portfolio_columns)return;const s=t.find(".et_pb_fullwidth_portfolio:visible");0!==s.length&&s.each(((t,s)=>{const i=e(s),o=i.hasClass("et_pb_fullwidth_portfolio_carousel");window.set_fullwidth_portfolio_columns(i,o)}))}function M(e){if(!function(e){return e?.hasClass("et_pb_section_parallax")||e?.find('.et_parallax_bg, [class*="et-pb-parallax-background-module--"]').length>0}(e)||!("diviElementBackgroundParallaxInit"in window))return;const t=window.diviElementBackgroundParallaxData,s=Array.isArray(t)?t.map((({selector:t,data:s})=>({selector:t,data:s.filter((({uniqueSelector:t})=>e.find(t).length>0))}))).filter((({data:e})=>e.length>0)):[];requestAnimationFrame((()=>{s.length>0&&window.diviElementBackgroundParallaxInit(s)}))}function S(t){return e("div.entry").length?"":t.hasClass("et_pb_bg_layout_light")?"et_pb_bg_layout_light":"et_pb_bg_layout_dark"}d.slideshow&&b>1&&p.on("mouseenter.et_pb_simple_slider",(()=>{p.hasClass("et_slider_auto_ignore_hover")||(p.addClass("et_slider_hovered"),void 0!==w&&clearTimeout(w))})).on("mouseleave.et_pb_simple_slider",(()=>{p.hasClass("et_slider_auto_ignore_hover")||(p.removeClass("et_slider_hovered"),q())})),q(),p.et_slider_destroy=function(){void 0!==w&&clearTimeout(w),F=!0,p.off(".et_pb_simple_slider"),p.find(".et_pb_slide").css({"z-index":"",display:"",opacity:""}),p.find(".et-pb-active-slide").removeClass("et-pb-active-slide"),p.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),p.find(".et-pb-slider-arrows, .et-pb-controllers, .et-pb-slider-bottom-controls").remove(),p.siblings(".et_pb_carousel, .et-pb-controllers").remove(),p.removeData("et_pb_simple_slider")},p.et_fix_gallery_slider_controls_position=E,p.et_fix_slider_content_images=H,window.et_load_event_fired?("function"==typeof a&&a(p),E()):i.on("load",(()=>{"function"==typeof a&&a(p),E()})),i.on("resize.et_simple_slider",(()=>{a(p),E()})),(p.hasClass("et_pb_gallery")||p.hasClass("et_pb_wc_gallery"))&&p.find(".et_pb_gallery_image img").on("load.et_gallery_slider_lazy",(function(){const t=e(this);t.closest(".et-pb-active-slide").length>0&&E(),t.off("load.et_gallery_slider_lazy")})),p.et_slider_move_to=function(s){c=p.closest_descendent(d.slide);const i=c.eq(y);if(p.et_animation_running=!0,p.removeClass("et_slide_transition_to_next et_slide_transition_to_previous").addClass(`et_slide_transition_to_${s}`),p.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),"next"===s||"previous"===s)y="next"===s?y+1<b?y+1:0:y-1>=0?y-1:b-1;else{if(y===s)return p.find(".et-pb-inactive-slide").css({"z-index":"",display:"",opacity:0}
1),i.css({display:"block",opacity:1}).data("slide-status","active"),j(),void(p.et_animation_running=!1);y=s}p.attr("data-active-slide",c.eq(y).data("slide-id")),void 0!==w&&clearTimeout(w);const o=c.eq(y);p.trigger("slide",{current:i,next:o}),void 0!==i.find("video")[0]&&void 0!==i.find("video")[0].player&&i.find("video")[0].player.pause(),void 0!==o.find("video")[0]&&void 0!==o.find("video")[0].player&&o.find("video")[0].player.play();const n=i.find(".et_pb_video_box iframe");if(n.length){let e=n.attr("src");e=e.replace(/\?autoplay=1$/,""),e=e.replace(/\?autoplay=1&(amp;)?/,"?"),e=e.replace(/&(amp;)?autoplay=1/,""),setTimeout((()=>{n.attr({src:e})}),d.fade_speed),n.parents(".et_pb_video_box").next(".et_pb_video_overlay").css({display:"block",opacity:1})}p.trigger("simple_slider_before_move_to",{direction:s,next_slide:o}),c.each((function(){e(this).css("zIndex",1)})),i.css("zIndex",2).removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").data("slide-status","inactive"),o.css({display:"block",opacity:0}).addClass("et-pb-active-slide").data("slide-status","active"),function(){const e=p,t=e.find(".et-pb-active-slide .et_pb_slide_video"),s=parseFloat(t.height());e.find(".et_pb_slide_video .wp-video-shortcode").css({width:"",height:""}),isNaN(s)||t.css("marginTop",`-${s/2}px`)}(),H(),C&&setTimeout((()=>{e(".et_pb_number_counter"),"function"==typeof window.et_fix_testimonial_inner_width&&window.et_fix_testimonial_inner_width(),"diviModuleCircleCounterReinit"in window&&window.diviModuleCircleCounterReinit(),"diviModuleNumberCounterReinit"in window&&window.diviModuleNumberCounterReinit(),window.et_reinit_waypoint_modules()}),1e3),setTimeout((()=>{E()}),50),d.use_controls&&g&&g.removeClass(d.control_active_class).eq(y).addClass(d.control_active_class),d.use_carousel&&v&&v.removeClass(d.control_active_class).eq(y).addClass(d.control_active_class),j(),d.tabs_animation?(o.css({display:"none",opacity:0}),i.addClass("et_slide_transition").css({display:"block",opacity:1}).animate({opacity:0}
1,u,(function(){e(this).css("display","none").removeClass("et_slide_transition"),o.css({display:"block",opacity:0}).promise().done((()=>{M(o),o.animate({opacity:1},u,(()=>{p.et_animation_running=!1,E(),p.trigger("simple_slider_after_move_to",{next_slide:o}),e(window).trigger("resize"),L(o),q()}))}))}))):(M(o),o.animate({opacity:1},u),i.addClass("et_slide_transition").css({display:"list-item",opacity:1}).animate({opacity:0},u,(function(){const s=S(i),n=S(o);t?e(this).removeClass("et_slide_transition"):e(this).css("display","none").removeClass("et_slide_transition"),function(e){let t,s,i;e.has("iframe").length?(t=e.find("iframe"),s=t.attr("src"),clearTimeout(i),t.attr("src",""),i=setTimeout((()=>{t.attr("src",s)}),100)):e.has("video").length&&(e.find(".et-pb-background-video").length||(t=e.find("video"),t[0].pause()))}(i),p.removeClass(s).addClass(n),p.et_animation_running=!1,p.hasClass("et_pb_gallery")&&"none"===o.css("maxHeight")&&o.css("maxHeight",o.outerHeight()),setTimeout((()=>{E()}),100),p.trigger("simple_slider_after_move_to",{next_slide:o}),L(o),q()})))}},e.fn.et_pb_simple_slider=function(t){return this.each((function(){return e.data(this,"et_pb_simple_slider")||new e.et_pb_simple_slider(this,t)}))},e((()=>{const i={};if(window.et_pb_slider_init=function(t){const s={fade_speed:700,slide:t.hasClass("et_pb_gallery")?".et_pb_gallery_item":".et_pb_slide"};if(t.hasClass("et_pb_slider_no_arrows")&&(s.use_arrows=!1),t.hasClass("et_pb_slider_no_pagination")&&(s.use_controls=!1),t.hasClass("et_slider_auto")){const e=/et_slider_speed_(\d+)/g;s.slideshow=!0;const i=e.exec(t.attr("class"));s.slideshow_speed=null===i?10:i[1]}if(t.parent().hasClass("et_pb_video_slider")&&(s.controls_below=!0,s.append_controls_to=t.parent(),setTimeout((()=>{e(".et_pb_preload").removeClass("et_pb_preload")}),500)),t.hasClass("et_pb_slider_carousel")&&(s.use_carousel=!0),t.hasClass("et_pb_slider_bottom_controls")){const e=function(e,t){const s=e.attr(t);return void 0===s||""===s?"":l(s)}(t,"data-swipe-text");""!==e&&(s.swipe_text=e),"off"===t.attr("data-show-counter")&&(s.show_bottom_controls_counter=!1),"off"===t.attr("data-show-swipe-label")&&(s.show_bottom_controls_swipe=!1)}t.et_pb_simple_slider(s),(t.hasClass("et_pb_gallery")||t.hasClass("et_pb_wc_gallery"))&&setTimeout((()=>{const e=t.data("et_pb_simple_slider");e&&"function"==typeof e.et_fix_gallery_slider_controls_position&&e.et_fix_gallery_slider_controls_position()}),300)},s.length)if(t||"undefined"==typeof IntersectionObserver||!window?.diviSliderLazyLoadData||0===Object.keys(window?.diviSliderLazyLoadData||{}).length)s.each((function(){const t=e(this);et_pb_slider_init(t)}));else{const t=[],s=[],i=window?.diviSliderLazyLoadData||{};Object.values(i).forEach((e=>{e.is_above_the_fold?t.push(e.selector):s.push(e.selector)}));const o=e=>e.find(".et_pb_slider").addBack(".et_pb_slider");if(o(e(t.join(", "))).each((function(){et_pb_slider_init(e(this))})),s.length>0&&"undefined"!=typeof IntersectionObserver){const t=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){const i=s.target;o(e(i)).each((function(){et_pb_slider_init(e(this))})),t.unobserve(i)}}))}),{root:null,rootMargin:"50px",threshold:.01});e(s.join(", ")).each((function(){t.observe(this)}))}}window.et_fix_slider_height=t?function(e){const t=e||s;if(!t||!t.length)return;const o=t.data("address");i[o]||(i[o]=window.et_pb_debounce(a,100)),i[o](e)}:a}));const a=t=>{const i=t||s;i&&i.length&&i.each((function(){const t=e(this);let s=t.hasClass("et_pb_gallery")||t.hasClass("et_pb_wc_gallery")||t.closest(".et_pb_gallery, .et_pb_wc_gallery").length>0;const i=t.parent(".et_pb_section");let o=t.find(s?".et_pb_gallery_item":".et_pb_slide");0!==o.length||s||(o=t.find(".et_pb_gallery_item"),o.length>0&&(s=!0));const n=o.find(".et_pb_container");let l=0,a=0;const r=t.hasClass("et_pb_post_slider_image_top"),_=t.hasClass("et_pb_post_slider_image_bottom");if(i.is(".et_pb_section_first"))return!0;if(s||n.css("height",""),o.addClass("et_pb_temp_slide"),"object"==typeof t.data("et_pb_simple_slider")&&t.data("et_pb_simple_slider").et_fix_slider_content_images(),o.each((function(){let t=parseFloat(e(this).innerHeight());const i=s?e(this).find(".et_pb_gallery_image"):e(this).find(".et_pb_slide_image"),o=parseFloat(e(this).data("adju
1stedHeight")),n=isNaN(o)?0:o;t=n&&n<t?t-n:t,(r||_)&&(i.length?(a=r?parseFloat(i.css("margin-top")):parseFloat(i.css("margin-bottom")),a+=10):s||e(this).find(".et_pb_container").addClass("et_pb_no_image")),s||0!==e(this).find(".et_pb_slide_description").length&&0!==e(this).find(".et_pb_slide_description").html().trim().length||e(this).find(".et_pb_container").addClass("et_pb_empty_slide"),l<t&&(l=t)})),l+a<1?s||n.css("height",""):s||n.css("height",`${l+a}px`),o.removeClass("et_pb_temp_slide"),(s?o.filter(".et-pb-active-slide").find(".et_pb_gallery_image").children("img"):o.filter(".et-pb-active-slide").find(".et_pb_slide_image").children("img")).addClass("active"),s){const e=t.data("et_pb_simple_slider");e&&"function"==typeof e.et_fix_gallery_slider_controls_position&&setTimeout((()=>{e.et_fix_gallery_slider_controls_position()}),100)}}))};function r(){return e(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}e(window).resize((function(){a()}))},window.et_pb_init_slider_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibrarySlider={}}();

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.