PageSourceSearch

https://nstatic.nova.bg/files/nova/js/home-redesign.min.js?v=15

js nova.bg collected 2026-10-01 10:37:14 UTC 4,524 bytes, 1 lines download raw bytes

1function Sliders(e){"use strict";var t,l=e.time||500,s=e.autoTime||5e3,o=e.selector,r=e.colors,a=e.width_height||100/70,i=document.querySelectorAll(o),c=document.querySelectorAll(r);function n(e,t,l){e.style[t]=l,t=t[0].toUpperCase()+t.slice(1),e.style["webkit"+t]=e.style["moz"+t]=e.style["ms"+t]=e.style["o"+t]=l}function d(e,t){var o,r,i=e.children[2],c=e.children[1],d=e.children[0],f=d.children,v=t.children[0].children,h=0,L=!1;for(o=0,d.style.paddingTop=100/a+"%";o<f.length;o+=1)n(f[o],"animationDuration",l+"ms");function p(){if(!L){clearTimeout(r),L=!0;var e=h<f.length-1?h+1:0;f[e].classList.add("next"),f[h].classList.add("left"),f[e].classList.add("active"),v[e].classList.add("active"),setTimeout(function(){v[h].classList.remove("active"),f[h].classList.remove("active"),f[h].classList.remove("left"),f[e].classList.remove("next"),f[e].classList.add("active"),v[e].classList.add("active"),h=e,L=!1,r=setTimeout(p,s)},l)}}function u(){if(!L){clearTimeout(r),L=!0;var e=h>0?h-1:f.length-1;f[e].classList.add("previous"),f[h].classList.add("right"),f[e].classList.add("active"),v[e].classList.add("active"),setTimeout(function(){v[h].classList.remove("active"),f[h].classList.remove("active"),f[h].classList.remove("right"),f[e].classList.remove("previous"),f[e].classList.add("active"),v[e].classList.add("active"),h=e,L=!1,r=setTimeout(u,s)},l)}}f[h].classList.add("active"),v[h].classList.add("active"),i.addEventListener("click",p),c.addEventListener("click",u),r=setTimeout(u,s)}for(t=0;t<i.length;t+=1)d(i[t],c[t])}function scrollEv(e,t,l){l.scrollLeft>0?(e.classList.remove("arrow-inactive"),l.parentNode.classList.add("left")):(e.classList.add("arrow-inactive"),l.parentNode.classList.remove("left")),l.scrollLeft>=l.scrollWidth-l.offsetWidth-1?(t.classList.add("arrow-inactive"),l.parentNode.classList.contains("homepage-nova-play-wrapper")&&l.parentNode.classList.add("end"),l.parentNode.classList.contains("alphabet")&&l.parentNode.classList.add("end")):(t.classList.remove("arrow-inactive"),l.parentNode.classList.contains("homepage-nova-play-wrapper")&&l.parentNode.classList.remove("end"),l.parentNode.classList.contains("alphabet")&&l.parentNode.classList.remove("end"))}function clicleftArrow(e,t){let l;for(let s=0;s<t.length;s++)e.scrollLeft>t[t.length-1]?l=t[t.length-1]:e.scrollLeft>t[s]&&e.scrollLeft<=t[s+1]&&(l=t[s]);e.scrollTo({left:l,behavior:"smooth"})}function clickRight(e,t){let l;for(let s=0;s<t.length;s++)e.scrollLeft>=t[s]-1&&e.scrollLeft<t[s+1]&&(l=t[s+1]);e.scrollTo({left:l,behavior:"smooth"})}function listRectslider(e,t){var l=t[0].getElementsByClassName("thumb-box"),s=[],o=t[0].getBoundingClientRect().left;for(let r=0;r<l.length;r++){let a=l[r].getBoundingClientRect();s.push(a.left-o)}for(let i=s.length-1;i>=0;i--)s[i]=s[i]-s[0];return s}function autoSlidePosLeft(e,t,l){let s=listRectslider(e,t);l[e].addEventListener("click",()=>{clicleftArrow(t[0],s)})}function autoSlidePosRight(e,t,l){let s=listRectslider(e,t);l[e].addEventListener("click",()=>{clickRight(t[0],s)})}window.onload=()=>{if(document.querySelector(".onfocus-wrapper")){let e=document.querySelectorAll(".onfocus-wrapper .slider-wrapper"),t=document.querySelectorAll(".onfocus-wrapper .left-arrow"),l=document.querySelectorAll(".onfocus-wrapper .right-arrow");for(let s=0;s<t.length;s++)autoSlidePosLeft(s,e,t),window.onresize=()=>{autoSlidePosLeft(s,e,t)};for(let o=0;o<l.length;o++)autoSlidePosRight(o,e,l),window.onresize=()=>{autoSlidePosRight(o,e,l)};for(let r=0;r<e.length;r++)e[r].addEventListener("scroll",()=>{scrollEv(t[r],l[r],e[r])});l[0].addEventListener("click",function(){for(let s=0;s<e.length;s++)scrollEv(t[s],l[s],e[s])});for(let a=0;a<e.length;a++)scrollEv(t[a],l[a],e[a]),window.onresize=()=>{scrollEv(t[a],l[a],e[a])}}if(document.querySelector(".homepage-nova-play-wrapper")){let i=document.querySelectorAll(".homepage-nova-play-wrapper .slider-wrapper"),c=document.querySelectorAll(".homepage-nova-play-wrapper .left-arrow"),n=document.querySelectorAll(".homepage-nova-play-wrapper .right-arrow");for(let d=0;d<c.length;d++)autoSlidePosLeft(d,i,c),window.onresize=()=>{autoSlidePosLeft(d,i,c)};for(let f=0;f<n.length;f++)autoSlidePosRight(f,i,n),window.onresize=()=>{autoSlidePosRight(f,i,n)};for(let v=0;v<i.length;v++)i[v].addEventListener("scroll",()=>{scrollEv(c[v],n[v],i[v])});n[0].addEventListener("click",function(){for(let e=0;e<i.length;e++)scrollEv(c[e],n[e],i[e])});for(let h=0;h<i.length;h++)scrollEv(c[h],n[h],i[h]),window.onresize=()=>{scrollEv(c[h],n[h],i[h])}}};

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.