PageSourceSearch

https://www.bbva.com/wp-content/themes/coronita-bbvacom/assets/js/controller/detail_timeline.min.js?ver=15.0.0

js bbva.com collected 2026-09-24 06:58:11 UTC 2,622 bytes, 1 lines download raw bytes

1window.coronita=window.coronita||{},window.coronita.initTimelines=function(){document.querySelectorAll('[id^="timeline"]:not(.timeline-initialized)').forEach(e=>{if(e.classList.add("timeline-initialized"),!e)return;const t=e.querySelectorAll(".slide");let n=0;e.querySelector(".slides");const i=e.querySelector(".viewport"),o=e.querySelector(".modal"),r=e.querySelector("iframe");function c(){if(!i)return;const e=Math.min(1,i.clientWidth/1140||1);i.style.setProperty("--viewport-scale",String(e))}function a(){Array.from(e.querySelectorAll(".slide")).forEach(function(e,t){e.classList.toggle("active",t===n)}),e.querySelectorAll(".segment").forEach(function(e){e.classList.toggle("active",Number(e.dataset.index)===n)}),e.querySelectorAll('[data-nav="prev"]').forEach(function(e){e.disabled=0===n}),e.querySelectorAll('[data-nav="next"]').forEach(function(e){e.disabled=n===t.length-1})}function l(e){n=Math.max(0,Math.min(e,t.length-1)),a()}function d(){o.classList.remove("open"),o.setAttribute("aria-hidden","true"),r.src=""}function s(){e.querySelectorAll(".segment").forEach(function(e){e.addEventListener("click",function(){l(Number(e.dataset.index))})}),e.querySelectorAll('[data-nav="prev"]').forEach(function(e){e.addEventListener("click",function(){l(n-1)})}),e.querySelectorAll('[data-nav="next"]').forEach(function(e){e.addEventListener("click",function(){l(n+1)})}),e.querySelectorAll(".play-btn").forEach(function(e){e.addEventListener("click",function(){var t;(t=e.dataset.video)&&(r.src=t,o.classList.add("open"),o.setAttribute("aria-hidden","false"))})})}e.querySelector(".modal-close").addEventListener("click",d),o.addEventListener("click",function(e){e.target===o&&d()}),window.addEventListener("keydown",function(t){(e.contains(document.activeElement)||o.classList.contains("open"))&&("Escape"===t.key&&d(),"ArrowRight"===t.key&&l(n+1),"ArrowLeft"===t.key&&l(n-1))}),window.addEventListener("resize",c),s(),e.querySelectorAll(".slide-media-img").forEach(function(e){e.addEventListener("error",function(){const t=document.createElement("div");t.className="media-fallback",t.textContent=e.dataset.title||"Media",e.replaceWith(t)},{once:!0})}),e.querySelectorAll(".description a").forEach(function(e){e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")}),c(),a(),console.log("RenderSlide")})},window._coronitaInitTimelines=window.coronita.initTimelines,$(document).ready(function(){window.coronita=window.coronita||{},!window.coronita.initTimelines&&window._coronitaInitTimelines&&(window.coronita.initTimelines=window._coronitaInitTimelines),window.coronita.initTimelines()});

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.