PageSourceSearch

https://adriasolapastor.com/wp-content/plugins/nextbricks/elements/js/bc_random_letters.min.js?ver=1.10.1

js adriasolapastor.com collected 2026-10-04 13:26:08 UTC 2,251 bytes, 4 lines download raw bytes

1function random_letters(){let array={};var t=window.location.href.includes("brickspreview");document.querySelectorAll(".bc-random-letters__element").forEach(function(e,index){var animationType=e.getAttribute("data-animationtype");var triggerClick=e.getAttribute('data-classTriggerClick');var triggerHover=e.getAttribute('data-classTriggerHover');e.classList.remove("bc-to-hide");var r=e.getAttribute("data-disable-builder"),a=!1;if((t&&"1"==r&&(a=!0),!a)){let i=e.getAttribute("data-start"),n=e.getAttribute("data-ease"),o=parseFloat(e.getAttribute("data-duration")),s=parseFloat(e.getAttribute("data-scale")),l=e.getAttribute("data-end"),d=e.getAttribute("data-trigger");(toggleact=e.getAttribute("data-toggleActions")),"this"==d&&(d=e),(varscrub="true"==(varscrub=e.getAttribute("data-scrub"))||("false"!=varscrub&&parseFloat(varscrub))),new SplitText(e,{type:"words, chars",charsClass:"char"});let c=o;var varContainerAnimation=isInsideHorizontalScrollElement(e);e.querySelectorAll(".char").forEach(function(t,index2){array[`g${index}${index2}`]=gsap.timeline({scrollTrigger:{trigger:d,containerAnimation:varContainerAnimation?window[varContainerAnimation]:undefined,start:i,end:l,scrub:varscrub,toggleActions:toggleact}}),r=gsap.utils.random(0.6,c),a=gsap.utils.random(0,c-r);array[`g${index}${index2}`].from(t,{opacity:0,scale:s,duration:r,delay:a,ease:n})})}
2if(animationType=='Click'){document.querySelectorAll(triggerClick).forEach(function(trigger){trigger.addEventListener("click",function(){e.querySelectorAll(".char").forEach(function(t,index2){array[`g${index}${index2}`].restart()})})})}else if(animationType=='Hover'){document.querySelectorAll(triggerHover).forEach(function(trigger){trigger.addEventListener("mouseover",function(){e.querySelectorAll(".char").forEach(function(t,index2){array[`g${index}${index2}`].restart()})})})}})}
3function isInsideHorizontalScrollElement(element){let containerName=null;document.querySelectorAll(".next-horizontal-scroll").forEach((horizontalScroll,index)=>{if(horizontalScroll.contains(element)){containerName=`NextHorizontalScroll${index}`}});return containerName}
4document.addEventListener("DOMContentLoaded",function(){document.fonts.ready.then(function(){bricksIsFrontend&&random_letters()})})

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.