PageSourceSearch

https://www.canal4.com.uy/js-custom/332/header_desktop-min-version-1790827635.js

js canal4.com.uy collected 2026-10-02 06:42:39 UTC 2,125 bytes, 6 lines download raw bytes

1'use strict';(()=>{const outerHeight=(el)=>{var height=el.offsetHeight;var style=getComputedStyle(el);height+=parseInt(style.marginTop)+parseInt(style.marginBottom);return height};const headerSticky=()=>{const $headerTop=document.querySelector('.main-header .navbar-top');if(!$headerTop)return;const $mainMenu=document.querySelector('.main-header .main-nav'),$headerTopHeight=outerHeight($headerTop);document.body.style.setProperty('--header-height',$headerTopHeight+'px');const $body=document.body;const toggleClass=()=>{if(document.documentElement.scrollTop>$headerTopHeight&&!$body.classList.contains('body--header-sticky')){$body.classList.add('body--header-sticky')}else if(document.documentElement.scrollTop<$headerTopHeight&&$body.classList.contains('body--header-sticky')){$body.classList.remove('body--header-sticky');if($body.classList.contains('body--live-sticky')){$body.classList.remove('body--live-sticky')}}};if(typeof $mainMenu!=='undefined'&&$mainMenu!==null){const $mainMenuCopy=$mainMenu.cloneNode(!0);document.querySelector('.main-header .search-box').insertAdjacentElement('afterend',$mainMenuCopy)}
2let scroll=function(){toggleClass()};const raf=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;let lastScrollTop=document.documentElement.scrollTop;let loop=()=>{let scrollTop=document.documentElement.scrollTop;if(lastScrollTop===scrollTop){raf(loop);return}else{lastScrollTop=scrollTop;scroll();raf(loop)}};if(raf){loop()}};const searchForm=document.querySelector('.search-box__form');searchForm.addEventListener('submit',function(event){event.preventDefault()
3const value=document.querySelector('.search-box__text-input').value
4if(!value){return!1}
5searchForm.submit()});document.addEventListener('keydown',function(event){var searchInput=document.getElementById('searchToggler')
6if(event.keyCode===27){searchInput.checked=!1}});const ready=(fn)=>{if(document.readyState!='loading'){fn()}else{document.addEventListener('DOMContentLoaded',fn)}};setTimeout(()=>{ready(headerSticky)},500)})()

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.