1/* 2$(function(){ 3 // zaroven zlikviduje ikonu 4 $('.navbar-toggler').html('MENU'); 5}); 6*/ 7 8$(document).ready(function(){ 9//$(function(){ 10 // osetreni velikosti polozek top level menu (kvuli ztucneni na hover aby to neskakalo) 11 $("#main_nav a.level1").each(function(){ 12 $(this).css('width', $(this).width()); 13 }); 14 $("#main_nav a.level1").css('font-weight', 400); 15 $("#main_nav .active a.level1").css('font-weight', 500); 16 $("#main_nav .not-active a.level1").hover( 17 function(){ $(this).css('font-weight', 500); }, 18 function(){ $(this).css('font-weight', 400); } 19 ); 20 21 22 // hover na top level polozky v menu (otevreni aby nebyl potreba click) 23 $(".dropdown").hover(function(){ 24 var dropdownMenu = $(this).children(".dropdown-menu"); 25 if(!dropdownMenu.is(":visible")){ 26 dropdownMenu.parent().toggleClass("open"); 27 } 28 }); 29 30 // click na prepinac mutaci 31 $("#owner-switch").click(function(){ 32 $("#user-menu").hide(); 33 $("#owner-menu").toggle(); 34 if($("#owner-menu").is(':visible')) 35 { 36 $(this).find('.switchmark').html('‹'); 37 } 38 else 39 { 40 $(this).find('.switchmark').html('›'); 41 } 42 }); 43 44 45 // click na user (login/usermenu) 46 $("#user-switch").click(function(){ 47 $("#owner-menu").hide(); 48 $("#user-menu").toggle(); 49 }); 50 51 52 53// menu na mobilu 54 55 $('#mobile-menu-switch').click(function(evt){ 56 evt.preventDefault(); 57 var that = $(this); 58 var menu = $("#mobile-menu"); 59 60 menu.toggle(); 61 if(menu.is(':visible')) 62 { 63 that.find('.themark').html('‹'); 64 65 } 66 else 67 { 68 that.find('.themark').html('›'); 69 } 70 return false; 71 }); 72 73 $('#mobile-menu .child-arrow').click(function(evt){ 74 evt.preventDefault(); 75 var that = $(this); 76 var submenu = that.parent().find('ul'); 77 78 if(submenu.is(':visible')) 79 { 80 submenu.hide().parent().removeClass('open'); 81 that.html('∨'); 82 } 83 else 84 { 85 $('#mobile-menu ul.level2').hide().parent().removeClass('open'); 86 submenu.show().parent().addClass('open'); 87 that.html('∧'); 88 } 89 return false; 90 }); 91 92 // klinuti na odkaz v menu level 2 -> zavreni menu (muze se stat ze zustavame na te same strance) 93 $('#mobile-menu a.level2').click(function(){ 94 $(this).closest('ul').parent().find('.child-arrow').click(); // zavrit submenu 95 $('#mobile-menu-switch').click(); // zavrit hlavni menu 96 // pak normalne pokracujeme dal! 97 }); 98 99 // cookies msg 100 /* 101 $("#cookiesMsg-close").click(function() 102 { 103 var DOMAIN = window.location.host; 104 var tmp = DOMAIN.split("."); 105 DOMAIN = ( tmp.length==3 ? tmp[1]+"."+tmp[2] : tmp[0]+"."+tmp[1] ); 106 var date = new Date(); 107 date.setTime(date.getTime()+(7*24*60*60*1000)); // nastavÃme si datum na "za týden" 108 var expires = "expires="+date.toGMTString(); 109 document.cookie = "cookiesMsgHide=1; "+expires+"; path=/; domain="+DOMAIN; 110 111 $("#cookiesMsg").addClass('d-none').removeClass('d-flex'); 112 return false; 113 });*/ 114 115 // collapse (vice / mene info) 116/* 117 $('.collapse-trigger').click(function(){ 118 if($(this).hasClass('collapsed')) $(this).text('VÃce informacÃ'); else $(this).text('MénÄ informacÃ'); 119 }); 120*/ 121 122 123 $('.collapse-trigger').each(function() 124 { 125 $(this).parent().find('.block-text').children().last().append($(this).detach()); 126 $(this).show(); 127 }); 128 129 $('.longtext-switcher').each(function() 130 { 131 $(this).parent().find('.block-shorttext').children().last().append($(this).detach()); 132 $(this).show(); 133 }); 134 135 $('.shorttext-switcher').each(function() 136 { 137 $(this).parent().find('.block-longtext').children().last().append($(this).detach()); 138 $(this).show(); 139 }); 140 141 142 $('.longtext-switcher, .shorttext-switcher').click(function(evt){ 143 $(this).closest('.block-text').toggle(); 144 $( '#longtext-' + $(this).attr('rel') ).toggle(); 145 $( '#shorttext-' + $(this).attr('rel') ).toggle(); 146 evt.preventDefault(); 147 return false; 148 }); 149 150 // vymenovani bloku textu navazanych na carousel 151 $('#mainCarousel').on('slide.bs.carousel', function(e) { 152 $('#undercarousel-' + e.from).hide(); 153 $('#undercarousel-' + e.to).show(); 154 }); 155 156}); 157 158 159 160
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.