PageSourceSearch

https://dramaresource.com/wp-content/themes/Divi/includes/builder-…/script-library-animation.js?ver=5.13.1

js dramaresource.com collected 2026-09-24 10:12:43 UTC 10,397 bytes, 1 lines download raw bytes

1!function(){"use strict";var t={63175:function(t,e,n){n.d(e,{waypointExtended:function(){return i}});const i=(t,e,n)=>{n=parseInt(n?.toString(),10),Number.isNaN(n)&&(n=parseInt(t.data("et_waypoint_max_instances"),10)),Number.isNaN(n)&&(n=1);const i=t.data("et_waypoint")||[];let a=[];if("et_pb_custom"in window&&(a=window?.et_pb_custom?.waypoints_options?.context),a&&Array.isArray(a)){const n=a.find((e=>t.closest(e).length>0));n&&(e.context=n)}if(i.length<n){const n=t.waypoint(e);n&&Array.isArray(n)&&n.length>0&&(i.push(n[0]),t.data("et_waypoint",i))}else i.forEach((t=>{t.context.refresh()}))}}},e={};function n(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};!function(){n.r(i);var t=window.jQuery,e=n.n(t);const a=()=>"string"==typeof window?.et_fb_post_id||void 0!==window?.ET_Builder&&null!==window?.ET_Builder,o="data-divi-gallery-animation-bootstrap",r='[data-divi-gallery-animation-bootstrap="on"]',s=t=>{0!==t.length&&(t.removeAttr(o),t.css("opacity",""))},d=(t,e)=>{const n=(t=>-1!==["left","right"].indexOf(t)?"Y":"X")(t),i=((t,e)=>-1!==["left","bottom"].indexOf(t)?-1*Math.ceil(.9*e):Math.ceil(.9*e))(t,e);return`perspective(2000px) rotate${n}(${i}deg)`},l=(t,e)=>{const n=(t=>-1!==["top","bottom"].indexOf(t)?"X":"Y")(t),i=((t,e)=>-1!==["left","bottom"].indexOf(t)?Math.ceil(.9*e):-1*Math.ceil(.9*e))(t,e);return`perspective(2000px) rotate${n}(${i}deg)`},c=(t,e)=>`rotateZ(${((t,e)=>-1!==["right","bottom"].indexOf(t)?-1*Math.ceil(3.6*e):Math.ceil(3.6*e))(t,e)}deg)`,m=(t,e)=>{const n=((t,e)=>-1!==["right","bottom"].indexOf(t)?2*e:-2*e)(t,e);switch(t){case"top":case"bottom":return`translate3d(0, ${n}%, 0)`;case"right":case"left":return`translate3d(${n}%, 0, 0)`;default:{const t=.01*(100-e);return`scale3d(${t}, ${t}, ${t})`}}},f=t=>{const e=.01*(100-t);return`scale3d(${e}, ${e}, ${e})`},p=(t,e,n)=>"slide"===t?{transform:m(e,n)}:"zoom"===t?{transform:f(n)}:"flip"===t?{transform:d(e,n)}:"fold"===t?{transform:l(e,n)}:"roll"===t?{transform:c(e,n)}:null,u=()=>["et_animated","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"],h=t=>{const{et_frontend_scripts:n}=window,i=["et_animated","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"];t.is(".et_pb_section")&&t.is(".roll")&&e()(`${n.builderCssContainerPrefix}, ${n.builderCssLayoutPrefix}`).css("overflow-x","");const a=(t=>t.hasClass("slideTop")||t.hasClass("slideBottom"))(t);t.removeClass(i.join(" "));const o={"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:""};a&&(o.left=""),t.css(o),t.addClass("et_had_animation")},_=t=>{const n=[],i=t.get(0).attributes;for(let t=0;t<i.length;t++)"data-animation-"===i[t].name.substring(0,15)&&n.push(i[t].name);e().each(n,((e,n)=>{t.removeAttr(n)}))},w=(t,e)=>{if(e.startsWith("var(")){const n=e.match(/var\(([^)]+)\)/)?.[1];if(n){return getComputedStyle(t).getPropertyValue(n)||e}}return e},b=t=>{const{et_frontend_scripts:n}=window,i=t;if(i.hasClass("et_had_animation"))return;if(a()&&(0<i.closest(".et_pb_dropdown.et_pb_dropdown_hidden").length||0<i.closest(".et_pb_dropdown.et-force-visible--builder").length))return void h(i);if(!i.is(":visible"))return;const o=i.attr("data-animation-style");if(!o)return;(t=>t.is(r))(i)&&s(i);const d=i.attr("data-animation-repeat"),l=i.attr("data-animation-duration"),c=i.attr("data-animation-delay"),m=i.attr("data-animation-intensity"),f=i.attr("data-animation-starting-opacity");let u=i.attr("data-animation-speed-curve");const b=e()("body").hasClass("edge");-1===["linear","ease","ease-in","ease-out","ease-in-out"].indexOf(u)&&(u="ease-in-out"),i.is(".et_pb_section")&&"roll"===o&&e()(`${n.builderCssContainerPrefix}, ${n.builderCssLayoutPrefix}`).css("overflow-x","hidden"),_(i);let y=parseInt(f);Number.isNaN(y)?y=0:y*=.01;const g=l?w(i[0],l):l,v=c?w(i[0],c):c;i.css({"animation-duration":g,"animation-delay":v,opacity:y,"animation-timing-function":u}),"slideTop"!==o&&"slideBottom"!==o||i.css("left","0px");let x=parseInt(m);Number.isNaN(x)&&(x=50);const C=["slide","zoom","flip","fold","roll"];let P=!1,L=!1;for(let t=0;t<C.length;t++){const e=C[t];if(o&&o.substring(0,e.length)===e){P=e,L=o.substring(e.length,o.length),""!==L&&(L=L.toLowerCase());break}}const A=!1!==P&&!1!==L?p(P,L,x):null;if(A&&i.css(b?{...A,transition:"transform 0s ease-in"}:A),i.addClass("et_animated"),i.addClass(o),i.addClass(d),!d){const t=t=>"number"==typeof t?t:!t.endsWith("ms")&&t.endsWith("s")?1e3*parseFloat(t):parseFloat(t),e=t(g),n=t(v);setTimeout((()=>{h(i)}),e+n),b&&A&&setTimeout((()=>{i.css("transition","")}),e+n+50)}},y=t=>{const e=(t=>{const e=t.trim();if(!e)return"";const n=e.split(",")[0]?.trim()??e,i=Array.from(n.matchAll(/\.([A-Za-z0-9_-]+)/g));return 0===i.length?"":i[i.length-1]?.[1]??""})(t);if(e)return e;const n=t.trim().split(",")[0]?.trim()??"";return/^[A-Za-z0-9_-]+$/.test(n)?n:""},g=t=>{const{diviElementAnimationData:e}=window;if(void 0!==e&&e.length>0){return!!e.find((e=>{if(!e.class)return!1;const n=y(e.class);return!!n&&t.hasClass(n)}))}return!1},v=[{enable:!0,order:50,name:"desktop",baseDevice:!0,label:"Desktop"},{enable:!0,maxWidth:{value:"980px",default:980},order:30,name:"tablet",label:"Tablet"},{enable:!0,maxWidth:{value:"767px",default:767},order:10,name:"phone",label:"Phone"}],x=()=>{const t=window.innerWidth||document.documentElement.clientWidth,e=window?.diviBreakpointData?.enabledBreakpoints?window?.diviBreakpointData?.enabledBreakpoints:v,n=e.f
1ind((t=>t?.baseDevice))?.name??"desktop";let i,a=null,o=null;return e.forEach((e=>{if(e?.baseDevice)return;const n=e?.maxWidth?.value,r=e?.minWidth?.value;if(n&&r&&parseInt(n)>=t&&parseInt(r)<=t&&(i=e?.name),n&&!r){const o=parseInt(n);o>=t&&(null===a||o<a)&&(i=e?.name,a=o)}if(!n&&r){const n=parseInt(r);n<=t&&(null===o||n>o)&&(i=e?.name,o=n)}})),i??n};var C=n(63175);function P(t,e,n){const i=t[`${e}${n}`],a=t[e];return i||a}function L(t){const e=t.trim();return e?e.startsWith(".")||e.startsWith("#")||e.startsWith(":")||/^body\b/.test(e)||/^html\b/.test(e)?e:`.${e}`:""}const A=(t=!1)=>{const n="string"==typeof window.et_animation_breakpoint&&window.et_animation_breakpoint?window.et_animation_breakpoint:x(),i="desktop"===n?"":`_${n}`,o=[].concat(window?.et_animation_data??[],window?.diviElementAnimationData??[]);if(void 0!==o&&0!==o.length){e()("body").css("overflow-x","hidden"),a()||e()("#page-container").css("overflow-y","hidden");for(let n=0;n<o.length;n++){const a=o[n],r=P(a,"style",i),d=P(a,"repeat",i),l=P(a,"duration",i),c=P(a,"delay",i),m=P(a,"intensity",i),f=P(a,"starting_opacity",i),p=P(a,"speed_curve",i),u=""===l&&r&&"none"!==r?"1000ms":l,h=""===c&&r&&"none"!==r?"0ms":c;if(!(a.class&&r&&d&&u&&h&&m&&f&&p)){if(a.class){const t=L(a.class);t&&s(e()(t))}continue}const _=L(a.class);if(!_)continue;const w=e()(_),y=r,g=d,v=u,x=h,A=m,T=f,B=p;w.attr({"data-animation-style":y,"data-animation-repeat":"once"===g?"":"infinite","data-animation-duration":v,"data-animation-delay":x,"data-animation-intensity":A,"data-animation-starting-opacity":T,"data-animation-speed-curve":B}),!0===t?w.hasClass("et_pb_circle_counter")?((0,C.waypointExtended)(w,{offset:"100%",handler(){b(e()(this.element));const t=e()(this.element).find(".et_pb_circle_counter_inner");t.data("easyPieChartAnimating")||t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").triggerAnimation(),t.data("PieChartHasLoaded",!0))}}),(0,C.waypointExtended)(w,{offset:"bottom-in-view",handler(){b(e()(this.element));const t=e()(this.element).find(".et_pb_circle_counter_inner");t.data("easyPieChartAnimating")||t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").triggerAnimation(),t.data("PieChartHasLoaded",!0))}})):w.hasClass("et_pb_number_counter")?((0,C.waypointExtended)(w,{offset:"100%",handler(){b(e()(this.element));const t=e()(this.element);t.data("easyPieChartAnimating")||void 0===t.data("easyPieChart")||t.data("easyPieChart").triggerAnimation()}}),(0,C.waypointExtended)(w,{offset:"bottom-in-view",handler(){b(e()(this.element));const t=e()(this.element);t.data("easyPieChartAnimating")||void 0===t.data("easyPieChart")||t.data("easyPieChart").triggerAnimation()}})):(0,C.waypointExtended)(w,{offset:"100%",handler(){b(e()(this.element))}}):b(w)}}else s(e()(r))};"et_animate_element"in window||Object.defineProperty(window,"et_animate_element",{value:b,writable:!1}),"et_get_animation_classes"in window||Object.defineProperty(window,"et_get_animation_classes",{value:u,writable:!1}),"et_has_animation_data"in window||Object.defineProperty(window,"et_has_animation_data",{value:g,writable:!1}),"et_process_animation_data"in window||Object.defineProperty(window,"et_process_animation_data",{value:A,writable:!1}),"et_process_animation_intensity"in window||Object.defineProperty(window,"et_process_animation_intensity",{value:p,writable:!1}),"et_remove_animation"in window||Object.defineProperty(window,"et_remove_animation",{value:h,writable:!1}),"et_remove_animation_data"in window||Object.defineProperty(window,"et_remove_animation_data",{value:_,writable:!1})}(),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryAnimation=i}();

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.