PageSourceSearch

https://nstatic.nova.bg/files/nova/js/main.js?v=15

js nova.bg collected 2026-10-01 10:37:13 UTC 4,375 bytes, 177 lines download raw bytes

1/*sticky menu for schedule navigation*/
2
3/*
4$(document).ready(function(){
5    var navOffset = $('.content-schedule-nav').offset().top;
6    alert(navOffset);
7});
8*/
9
10/*var  mn = $(".content-schedule-nav");
11    mns = "main-nav-scrolled";
12    mds = "main-nav-scrolled-outer";
13    hd = $(".page-schedule");
14    hdr = $('.page-schedule').height();
15
16$(window).scroll(function() {
17  if( $(this).scrollTop() > hdr ) {
18    mn.addClass(mns);
19    hd.addClass(hds);
20  } else {
21    mn.removeClass(mns);
22    hd.addClass(hds);
23  }
24});*/
25
26/*this code fixes the thumbnails blocks behaviour for smaller resolutions*/
27
28$(document).ready(function(){
29    
30    /*for pattern xs-2 sm-3*/
31
32    var clearFixThumbs = '<li class='+'"clearfix visible-xs-block">'+'</li>';
33    $(clearFixThumbs).insertAfter(".thumbs-list-sm-3-xs-2 li:nth-child(2n)");
34    
35});
36
37/* Nova toggle time menu */
38$(document).ready(function() {
39	$('#nova-toggle').click(function() {
40		$('.nova-time').toggle('fast');
41		return false;
42	});
43}); 
44
45/* toggles the sub navigation */
46function subMenuHideOnResize () {
47
48// Check to see if the browser width is less than 768px wide
49if ($(window).width() > 768) {
50    $('.nav-mobile').hide();
51    }
52}
53
54$(window).resize(function() {
55    subMenuHideOnResize();
56});
57
58$(document).ready(function(){
59   
60$('.to-nav').bind('click', function(){
61      $('.nav-mobile').toggle();
62   });
63   
64});
65
66
67function openMenu(e){
68    if ( $(window).width() < 768 ) {
69        e.preventDefault();
70        if($(this).next('ul').hasClass('open_menu')){
71            $(this).next('ul').slideUp(300).removeClass('open_menu');
72            $(this).html("&darr;");
73        } else {
74            $(this).next('ul').slideDown(300).addClass('open_menu');
75            $(this).html("&uarr;");
76        }
77    } else {
78        return false;
79    }
80}
81/* toggles mynews homepage navigation js start */
82
83function myNewsMenuMobile () {
84
85if ($(window).width() < 751) {
86    if ($('.to-nav').hasClass("active")) {
87        $('.mynews-menu').show();
88    }
89    else {
90        $('.mynews-menu').hide();
91    }
92}
93
94if ($(window).width() > 751) {
95        $('.mynews-menu').show();
96    }
97}
98
99$(document).ready(function(){
100    
101    $('.to-nav').click(function() {  
102        $('.to-nav').toggleClass("active");
103        $('.mynews-menu').toggle();
104    });
105    
106if ($(window).width() > 751) {
107    $('.mynews-menu').show();
108}
109if ($(window).width() < 751) { 
110    $('.mynews-menu').hide();
111  }
112});
113
114$(window).resize(function() {
115    myNewsMenuMobile();
116});
117
118/* toggles mynews homepage navigation js end */
119
120var fashaElementId;
121
122$(document).ready(function(){
123	 fashaElementId = $('.excl-fasha').attr( 'id' );
124	$('.excl-fasha .close-btn').on('click', onCloseFashaBtnClick);
125	if (localStorage.getItem("fasha-"+fashaElementId) != 1) {
126		$('#'+fashaElementId).css('display','block');
127	}
128});
129
130function onCloseFashaBtnClick (event) {
131	//event.PreventDefault();
132	$('#'+fashaElementId).hide();
133	localStorage.setItem("fasha-"+fashaElementId, "1");
134	console.log(localStorage.getItem("fasha-"+fashaElementId), fashaElementId);
135};
136
137
138$(document).ready(function(){
139	$('.excl-fasha-euro .close-btn').on('click', onCloseFashaEuBtnClick);
140	if (localStorage.getItem("current-fasha-euro") !=2) {
141		$('#current-fasha-euro').css('display','block');
142	};
143});
144
145
146function onCloseFashaEuBtnClick (event) {
147	//event.PreventDefault();
148	$('#current-fasha-euro').hide();
149	localStorage.setItem("current-fasha-euro", "2");
150};
151
152$(document).ready(function() {
153    
154
155     
156    
157    // set cookie 1 years
158     function setCookieCookies(cname, cvalue, exdays, domain, path) {
159            var d = new Date();
160            d.setTime(d.getTime() + (exdays*365*24*60*60*1000));
161            var expires = "expires="+d.toUTCString();
162            document.cookie = cname + "=" + cvalue + "; " + expires + ("; path=/") + "; " +((domain) ? "; domain=" + domain : "");
163        }
164
165			// read cookie
166			function getCookieCookies(cname) {
167				var name = cname + "=";
168				var ca = document.cookie.split(';');
169				for(var i=0; i<ca.length; i++) {
170					var c = ca[i];
171					while (c.charAt(0)=== ' ') c = c.substring(1);
172					if (c.indexOf(name) !== -1) return c.substring(name.length,c.length);
173				}
174				return "";
175			}
176        
177});

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.