1var meni_timer = 0; 2var meni_open = 0; 3var loadedMenuCategories = []; 4 5$(window).scroll(function() { 6 $(".nav-expand").slideUp('fast'); 7}); 8 9$("document").ready(function() { 10 $(".vesti-expand").mouseover(function() { 11 init_meni("vesti") 12 }); 13 $(".sport-expand").mouseover(function() { 14 init_meni("sport") 15 }); 16 $(".zivot-expand").mouseover(function() { 17 init_meni("zivot") 18 }); 19 $(".shou-biznis-expand").mouseover(function() { 20 init_meni("shou-biznis") 21 }); 22 $(".planeta-expand").mouseover(function() { 23 init_meni("planeta") 24 }); 25 $(".avtomobili-expand").mouseover(function() { 26 init_meni("avtomobili") 27 }); 28 $(".zabava-expand").mouseover(function() { 29 init_meni("zabava") 30 }); 31 $(".foto-expand").mouseover(function() { 32 init_meni("foto") 33 }); 34 $(".video-expand").mouseover(function() { 35 init_meni("video") 36 }); 37 $(".intervju-expand").mouseover(function() { 38 init_meni("intervju") 39 }); 40 $(".karmin-expand").mouseover(function() { 41 init_meni("karmin") 42 }); 43 $(".supermen-expand").mouseover(function() { 44 init_meni("supermen") 45 }); 46 $(".tv-expand").mouseover(function() { 47 init_meni("tv") 48 }); 49 $(".erotika-expand").mouseover(function() { 50 init_meni("erotika") 51 }); 52 53 $(".nav-expand").mouseleave(function() { 54 iscisti_meni(); 55 }); 56 57 $(".top-menu").mouseover(function() { 58 iscisti_meni(); 59 }); 60 61 $(document).on('click', '.nav-expand a', function() { 62 var urlRedirect = $(this).attr('data-redirect'); 63 expend_menu_redirect(urlRedirect); 64 }); 65 66 67}); 68 69function init_meni(tip) 70{ 71 if (meni_open == 0) 72 { 73 iscisti_meni(); 74 meni_timer = setTimeout(function() { 75 if ($('.' + tip + '-expand a:hover').length > 0) { 76 vcitaj_meni(tip); 77 } 78 }, 800); 79 } 80 else 81 { 82 vcitaj_meni(tip); 83 } 84} 85 86function iscisti_meni() 87{ 88 clearTimeout(meni_timer); 89 meni_open = 0; 90 $(".nav-expand").slideUp('fast'); 91} 92 93function vcitaj_meni(tip) 94{ 95 if($.inArray(tip, loadedMenuCategories) == -1) 96 { 97 loadedMenuCategories.push(tip); 98 $.get("/api/menu/" + tip, { }, 99 function(data) { 100 $("#menu-content-" + tip).html(data); 101 }); 102 } 103 104 $(".nav-expand").slideUp('fast'); 105 106 $("#menu_expanded_" + tip).slideToggle('fast'); 107 meni_open = 1; 108 109 if ($.trim($("#menu_expanded_" + tip).text()) != "") 110 { 111 return false; 112 } 113} 114 115function expend_menu_redirect(url) 116{ 117 window.location = url; 118}
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.