PageSourceSearch

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

js adriasolapastor.com collected 2026-10-04 13:26:13 UTC 2,119 bytes, 6 lines download raw bytes

1function decode_reveal(){var e=window.location.href.includes("brickspreview");new SplitText(".bc-decode-reveal__element",{type:"words, chars",charsClass:"char"}),document.querySelectorAll(".bc-decode-reveal__element").forEach(function(t){var animations=[];var animationType=t.getAttribute("data-animationtype");var triggerClick=t.getAttribute('data-classTriggerClick');var triggerHover=t.getAttribute('data-classTriggerHover');if(animationType=='Click'){document.querySelectorAll(triggerClick).forEach(function(e){e.addEventListener("click",function(){restartAnimations()})})}else if(animationType=='Hover'){document.querySelectorAll(triggerHover).forEach(function(e){e.addEventListener("mouseover",function(){restartAnimations()})})}
2decodeInit()
3function decodeInit(){t.removeAttribute("data-hide");var r=t.getAttribute("data-disable-builder"),a=!1;var varContainerAnimation=isInsideHorizontalScrollElement(t);if((e&&"1"==r&&(a=!0),!a)){var d=t.getAttribute("data-delay"),i=t.getAttribute("data-delayletters"),l=t.getAttribute("data-decodealphabet"),n=t.getAttribute("data-trigger");"this"==n&&(n=t);var o=t.getAttribute("data-start");let c=[...l],s=t.querySelectorAll(".char");s.forEach((e,r)=>{let a=e.innerHTML;(e.innerHTML=c[Math.floor(Math.random()*c.length)]),t.hasAttribute("data-from-right")?(r=s.length-r-1):(r+=1);let animation=gsap.to(e,{duration:0.001,opacity:1,delay:r*parseFloat(i),onComplete:()=>gsap.set(e,{innerHTML:a,delay:parseFloat(d)}),scrollTrigger:{trigger:n,containerAnimation:varContainerAnimation?window[varContainerAnimation]:undefined,start:o},});animations.push(animation)})}}
4function restartAnimations(){animations.forEach(animation=>{animation.kill()});animations=[];decodeInit()}})}
5function isInsideHorizontalScrollElement(element){let containerName=null;document.querySelectorAll(".next-horizontal-scroll").forEach((horizontalScroll,index)=>{if(horizontalScroll.contains(element)){containerName=`NextHorizontalScroll${index}`}});return containerName}
6document.addEventListener("DOMContentLoaded",function(e){document.fonts.ready.then(function(){bricksIsFrontend&&decode_reveal()})})

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.