1var openmenu = "x"; 2var timerID; 3var byl; 4var strHash=location.hash.substr(4); 5var sekZ; 6if(location.search.indexOf('xsekce=')>0){ 7 sekZ = location.search.indexOf('xsekce='); 8} 9if(strHash>0) 10 byl = strHash; 11else if(sekZ>0){ 12 var kStr = location.search.substr(sekZ+7); 13 var sekK = kStr.indexOf('&'); 14 if(sekK==-1){ 15 byl = kStr; 16 } 17 else{ 18 byl = kStr.substr(0, sekK); 19 } 20} 21 22function IsNumeric(strString){ 23 var strValidChars = "0123456789"; 24 var strChar; 25 var blnResult = true; 26 27 if (strString.length == 0) return false; 28 29 for (i = 0; i < strString.length && blnResult == true; i++) 30 { 31 strChar = strString.charAt(i); 32 if (strValidChars.indexOf(strChar) == -1) 33 { 34 blnResult = false; 35 } 36 } 37 return blnResult; 38} 39 40function moveelement(){ 41 if(location.hash){ 42 var tmph = location.hash; 43 44 tmph = tmph.substring(1); 45 var arrelm = tmph.split(';'); 46 if(document.getElementById(arrelm[0])){ 47 if((arrelm[1]) && (arrelm[2])){ 48 if((IsNumeric(arrelm[1]) > 0) && (IsNumeric(arrelm[2]) > 0)){ 49 document.getElementById(arrelm[0]).style.display = ""; 50 document.getElementById(arrelm[0]).style.top = arrelm[1]; 51 document.getElementById(arrelm[0]).style.left = arrelm[2]; 52 } 53 } 54 } 55 } 56} 57 58function menured2(){ 59 clearTimeout(timerID); 60 timerID = setTimeout("document.getElementById(openmenu).style.visibility = 'hidden'", 2000); 61} 62 63function menured1(menu){ 64 document.getElementById(menu).style.visibility = ""; 65 if(openmenu=="x"){ 66 } 67 else if(openmenu==menu){ 68 } 69 else{ 70 document.getElementById(openmenu).style.visibility = "hidden"; 71 } 72 openmenu = menu; 73} 74 75 76function clanky(ktery){ 77 if(ktery > 0){ 78 document.getElementById('sekce'+ktery).style.display = ""; 79 if(document.getElementById('odkaz'+ktery)){ 80 document.getElementById('odkaz'+ktery).className = "nadpis_sekce_odkaz nadpis_sekce_aktivni"; 81 } 82 jQuery('.sekce' + ktery).css('display', ''); 83 jQuery('.odkaz' + ktery).addClass('nadpis_sekce_aktivni'); 84 85 } 86 87 if(byl == undefined){ 88 if(document.getElementById('xsekce_id')){ 89 byl = document.getElementById('xsekce_id').innerHTML; 90 } 91 } 92 93 if(byl == ktery){ 94 byl = ktery; 95 } else if(byl > 0){ 96 document.getElementById('sekce'+byl).style.display = "none"; 97 if(document.getElementById('odkaz'+byl)){ 98 document.getElementById('odkaz'+byl).className = "nadpis_sekce_odkaz"; 99 } 100 byl = ktery; 101 } 102 else{ 103 byl = ktery; 104 } 105} 106 107 108function emailCheck (emailStr, msg) { 109 var checkTLD=1; 110 var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/; 111 var emailPat=/^(.+)@(.+)$/; 112 var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]"; 113 var validChars="\[^\\s" + specialChars + "\]"; 114 var quotedUser="(\"[^\"]*\")"; 115 var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/; 116 var atom=validChars + '+'; 117 var word="(" + atom + "|" + quotedUser + ")"; 118 var userPat=new RegExp("^" + word + "(\\." + word + ")*$"); 119 var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$"); 120 var matchArray=emailStr.match(emailPat); 121 122 if(msg == undefined){ 123 msg = 'Zápis e-mailové adresy je nekorektnÃ!'; 124 } 125 126 if (matchArray==null) { 127 alert(msg); 128 return false; 129 } 130 var user=matchArray[1]; 131 var domain=matchArray[2]; 132 133 for (i=0; i<user.length; i++) { 134 if (user.charCodeAt(i)>127) { 135 alert(msg); 136 return false; 137 } 138 } 139 for (i=0; i<domain.length; i++) { 140 if (domain.charCodeAt(i)>127) { 141 alert(msg); 142 return false; 143 } 144 } 145 146 if (user.match(userPat)==null) { 147 alert(msg); 148 return false; 149 } 150 151 var IPArray=domain.match(ipDomainPat); 152 if (IPArray!=null) { 153 for (var i=1;i<=4;i++) { 154 if (IPArray[i]>255) { 155 alert(msg); 156 return false; 157 } 158 } 159 return true; 160 } 161 162 var atomPat=new RegExp("^" + atom + "$"); 163 var domArr=domain.split("."); 164 var len=domArr.length; 165 for (i=0;i<len;i++) { 166 if (domArr[i].search(atomPat)==-1) { 167 alert(msg); 168 return false; 169 } 170 } 171 172 if (checkTLD && domArr[domArr.length-1].length!=2 && 173 domArr[domArr.length-1].search(knownDomsPat)==-1) { 174 alert(msg); 175 return false; 176 } 177 178 if (len<2) { 179 alert(msg); 180 return false; 181 } 182 183 return true; 184} 185 186function admdisk(id, ap, user, lang, akce, w, h) { 187 var windowfeatures='toolbar=no, scrollbars=no, resizable=yes, menubar=no'; 188 var winl = (screen.width - w) / 2; 189 var wint = (screen.height - h) / 2; 190 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl; 191 win = window.open('./pop.php?prid='+id+'&xuser='+user+'&lanG='+lang+'&akce='+akce+'&disID='+ap, 'admdiskuze', winprops+windowfeatures) 192 if(parseInt(navigator.appVersion) >= 4){ 193 win.window.focus(); 194 } 195} 196 197function chengeStateDsik(p,xuser){ 198 199 jQuery.get('/redakce/ajax.php?akce=diskuze&subakce=chengeStateDsik&p='+p+'&xuser='+xuser, 200 function(xml){ 201 jQuery(xml).find('response').each(function(){ 202 if(jQuery(this).find('status').text() == 'OK'){ 203 jQuery('#csd_' + p).html(jQuery(this).find('newtext').text()); 204 jQuery('#csd_' + p).css('color', jQuery(this).find('newcolor').text()); 205 } else { 206 alert(jQuery(this).find('alert').text()); 207 } 208 }); 209 }, "xml"); 210 211 212} 213 214 215function skr(co){ 216 jQuery('#sekce' + co).css('display', 'none'); 217} 218 219 220function odkr(co){ 221 byl = ""; 222 if(document.getElementById('sekce'+co)){ 223 document.getElementById('sekce'+co).style.display = ""; 224 } 225 jQuery('.sekce' + co).css('display', ''); 226} 227 228function as4u_ShowHide(co){ 229 230 if(document.getElementById(co)){ 231 if(document.getElementById(co).style.display == ""){ 232 document.getElementById(co).style.display = "none"; 233 } else { 234 document.getElementById(co).style.display = ""; 235 } 236 } 237} 238 239// naseptavac redakce 240 241jQuery(window).on("load", function() { 242//jQuery(document).ready(function(){ 243 244 jQuery("#find_in_redakce").autocomplete({ 245 source: "/redakce/ajax.php?htmlAjax=yes&akce=scearch&type=" + jQuery("#autocomplete_type").val(), 246 minLength: 2, 247 delay: 3, 248 open: function(){ 249 jQuery(this).autocomplete('widget').css('z-index', 100); 250 return false; 251 }, 252 select: function( event, ui ) { 253 if(ui.item.url !== undefined){ 254 window.location.href = ui.item.url; 255 } else { 256 jQuery("#find_in_redakce").val(ui.item.value); 257 jQuery("#as4u_form_search").submit(); 258 } 259 } 260 }); 261}); 262 263 264 265jQuery(document).ready(function(){ 266 267 if (typeof variable !== 'undefined') { 268 for (i = 0; i < skrArr.length; i++) { 269 jQuery('#sekce' + skrArr[i]).css('display', 'none'); 270 log('skr - ' + skrArr[i]); 271 } 272 } 273 274 275 if(!( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) )) { 276 if(jQuery('.as4u_vodorovna_navigace')){ 277 jQuery('.as4u_vodorovna_navigace ul li').hover( 278 function() { 279 jQuery(this).find('ul').css("display", "none"); 280 jQuery(this).find('ul').css("visibility", "visible"); 281
282 jQuery(this).children('.nadpis_sekce').find('a').addClass("nadpis_sekce_hover"); 283 jQuery(this).find('ul').stop(true, true); 284 jQuery(this).find('ul').slideDown(); 285 }, 286 function() { 287 jQuery(this).find('ul').slideUp('fast'); 288 jQuery(this).find('a').removeClass("nadpis_sekce_hover"); 289 } 290 ); 291 jQuery('.as4u_vodorovna_navigace ul li').click(function() { 292 if(jQuery(this).find('ul').css('visibility') == 'hidden'){ 293 jQuery(this).find('ul').css('visibility', 'visible'); 294 jQuery(this).find('ul').css('display', 'none'); 295 } 296 if(jQuery(this).find('ul').css('display') == 'none'){ 297 jQuery(this).find('ul').css('display', ''); 298 } else { 299 jQuery(this).find('ul').css('display', 'none'); 300 } 301 302 }); 303 }; 304 }; 305 306}); 307 308 309 310jQuery(document).ready(function(){ 311 if(jQuery('.odpovedet_hlasovat_schovat')){ 312 jQuery('.odpovedet_hlasovat_schovat').css('display', 'none'); 313 }; 314}); 315 316function downloadFiles(app, adr, xuser, languageG){ 317 318 jQuery('#span_ref_download').html('Äekejte prosÃm, generovánà může zabrat i nÄkolik minut...'); 319 320 jQuery.post('//'+location.host+'/redakce/ajax.php?akce=download&subakce=downloadFiles&app='+app+'&adr='+adr+'&xuser='+xuser+'&lanG=' + languageG, 321 { 322 323 }, 324 function(xml){ 325 jQuery(xml).find('response').each(function(){ 326 if(jQuery(this).find('status').text() == 'OK'){ 327 328 jQuery('#span_ref_download').html('<a href="'+jQuery(this).find('url').text()+'"><img src="/filemanager/icons/zip.gif" width="21px" height="16px" alt="ikona souboru" class="as4u_ikona_souboru" style="border: 0px; vertical-align: middle;" />'+jQuery(this).find('name').text()+'</a>'); 329 330 var a = document.createElement('a'); 331 a.href = jQuery(this).find('url').text(); 332 a.click(); 333 334 } else { 335 alert(jQuery(this).find('alert').text()); 336 } 337 }); 338 }, "xml"); 339 340} 341 342setInterval(() => { 343 // NajdÄte prvek s tÅÃdou .close-btn 344 const closeButton = document.querySelector('.close-btn'); 345 if (closeButton) { 346 // Simulujte kliknutà na tento prvek 347 closeButton.click(); 348 } 349 350 // Aplikace stylů na prvnÃho potomka s tÅÃdou 'smap' 351 const firstChildOfSmap = document.querySelector('.smap > :first-child'); 352 if (firstChildOfSmap) { 353 firstChildOfSmap.style.filter = 'blur(0px)'; 354 firstChildOfSmap.style.pointerEvents = 'unset'; 355 } 356 357 // Odkomentujte a upravte podle potÅeby 358 /* 359 const popup = $('.szn-ending-popup-cover'); 360 if (popup.length > 0) { 361 popup.remove(); 362 } 363 */ 364}, 1000);
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.