1/*! Created by iart.pl SOL - v1.0.0 - 2016-07-31 */ 2function deleteCookie(a) { 3 getCookie(a) && (document.cookie = a + "=;expires=Thu, 01-Jan-1970 00:00:01 GMT") 4} 5 6function setCookie(a, b, c) { 7 var d = new Date; 8 d.setDate(d.getDate() + c), 9 document.cookie = a + "=" + escape(b) + (null === c ? "" : ";expires=" + d.toUTCString()) 10} 11 12function getCookie(a) { 13 return document.cookie.length > 0 && (c_start = document.cookie.indexOf(a + "="), -1 !== c_start) ? (c_start = c_start + a.length + 1, c_end = document.cookie.indexOf(";", c_start), -1 === c_end && (c_end = document.cookie.length), unescape(document.cookie.substring(c_start, c_end))) : "" 14} 15 16function checkCookie(a) { 17 var b = getCookie(a); 18 return null !== b && "" !== b 19} 20 21$(document).ready(function() { 22 23 24$( "a[target='_blank']" ).each(function( ) { 25 var rel = $(this).attr('rel'); 26 if (typeof rel == 'undefined' && rel == null) { 27 $(this).attr('rel','noreferrer'); 28 } 29}); 30 31 $('a[data-mask^="mask"]').click(function(event) { 32 var email = $(this).attr('data-email'); 33 var email = window.atob(email); 34 $(this).attr('data-email', email); 35 $(this).attr('href', email); 36 var email = email.substring(7); 37 $(this).attr('title', 'Adres e-mail: ' + email); 38 $(this).html(email); 39 event.preventDefault(); 40 }); 41 42 43 44 var a = $("#godz"); 45 a.on("focus", function() { 46 var b = $(this).val(); 47 b === formats.hour && a.val("") 48 }), 49 a.on("blur", function() { 50 var b = $(this).val(); 51 "" === b && a.val(formats.hour) 52 }) 53}), $(document).ready(function() { 54 function a() { 55 var a = $(window).width(); 56 t >= a ? (settings.smScreen = 1, w.each(function() { 57 var a = $(this), 58 b = a.attr("data-menu"), 59 c = a.find(".nav"), 60 d = { 61 screen: settings.smScreen, 62 pg: b, 63 ids_1: settings.ids_1, 64 ids_2: settings.ids_2, 65 ids_3: settings.ids_3 66 }; 67 c.html(""), 68 $.post(x, d, function(a) { 69 c.html(a) 70 }) 71 })) : settings.smScreen = 0 72 } 73 74 function b() { 75 var a; 76 // dodaj ukryty licznik raz, np. przy starcie 77 if (!$('#fancybox-live-region').length) { 78 $('body').append( 79 '<div id="fancybox-live-region" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></div>' 80 ); 81 } 82 83 $("a.fancybox").fancybox({ 84 overlayOpacity: 0.9, 85 overlayColor: settings.overlayColor, 86 titlePosition: "outside", 87 titleFromAlt: true, 88 titleFormat: function(title, array, index, current) { 89 var counterHtml = '<span id="fancybox-title-over">' + 90 texts.image + " " + (index + 1) + " / " + array.length + 91 '</span>'; 92 return counterHtml; 93 }, 94 onStart: function(arr, index, opts) { 95 a = arr[index]; 96 }, 97 onComplete: function(array, index) { 98 var outer = $("#fancybox-outer"); 99 $('#fancybox-outer').attr('aria-label', 'Okno modalne z galeriÄ zdjÄÄ'); 100 outer.focus().on("keydown", function(e) { 101 d(outer, e); 102 }); 103 104 // aktualizuj treÅÄ w regionie live 105 $('#fancybox-live-region').text( 106 texts.image + " " + (index + 1) + " z " + array.length 107 ); 108 }, 109 onClosed: function() { 110 a.focus(); 111 } 112 }); 113 114 115 116 117 } 118 119 function c() { 120 var a; 121 $("#popup").fancybox({ 122 overlayOpacity: .9, 123 overlayColor: settings.overlayColor, 124 width: settings.popupWidth, 125 height: settings.popupHeight, 126 autoDimensions: !1, 127 autoSize: !1, 128 type: "iframe", 129 onStart: function(b, c, d) { 130 a = b[c] 131 }, 132 onComplete: function() { 133 var a = $("#fancybox-outer"); 134 a.attr("aria-describedby", "fancybox-content").focus().on("keydown", function(b) { 135 d(a, b) 136 }), 137 $(".main-text a").each(function() { 138 var a = $(this), 139 b = a.attr("target"); 140 "_blank" === b && a.append('<span class="sr-only">' + texts.openNewWindow + "</span>") 141 }) 142 }, 143 onClosed: function() { 144 a.focus() 145 } 146 }).trigger("click") 147 } 148 149 function d(a, b) { 150 if (9 == b.which) { 151 var c = a.find("*"), 152 d = c.filter(i).filter(":visible"), 153 e = $(":focus"), 154 f = d.length, 155 g = d.index(e); 156 b.shiftKey ? 0 == g && (d.get(f - 1).focus(), b.preventDefault()) : g == f - 1 && (d.get(0).focus(), b.preventDefault()) 157 } 158 } 159 160 function e() { 161 var a = $(window).width(); 162 s >= a ? m.insertAfter(n) : n.insertAfter(m), 163 t >= a ? (o.insertBefore(p), r.insertBefore(p)) : (o.insertAfter(q), r.insertAfter(o)) 164 } 165 166 function f() { 167 var a = $(window).width(); 168 s >= a ? (v.addClass("mobile"), u.parent().hasClass("home-map-btn") || (u.wrap('<a href="#" class="home-map-btn" aria-controls="homeMapMobile" data-target="homeMapMobile" aria-expanded="false"></a>').after('<i class="icon-angle-down icon" aria-hidden="true"></i>'), $(".home-map-btn").unbind("click").on("click", function(a) { 169 var b = $(this), 170 c = $("#" + b.attr("data-target")); 171 a.preventDefault(), 172 b.blur(), 173 "false" === b.attr("aria-expanded") ? (b.attr("aria-expanded", "true"), b.find(".
173icon").addClass("rotate"), c.addClass("map-show")) : (b.attr("aria-expanded", "false"), b.find(".icon").removeClass("rotate"), c.removeClass("map-show")) 174 }))) : (v.removeClass("mobile"), u.parent().hasClass("home-map-btn") && u.unwrap(".home-map-btn").next().remove()) 175 } 176 var g = $(".search-input"), 177 h = $(".unit-btn"), 178 i = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]", 179 j = $(".register-btn"), 180 k = $(".register"), 181 l = $(".main-text"), 182 m = ($(".search-wrapper").parent(), $(".settings-wrapper").parent(), $(".bip-wrapper"), $(".left-column")), 183 n = $(".right-column"), 184 o = $(".links-wrapper"), 185 p = $(".bottom-anchor"), 186 q = $(".menu-wrapper"), 187 r = $(".ads-left-wrapper"), 188 s = 480, 189 t = 768, 190 u = $(".home-map-header"), 191 v = $(".home-map-mobile-wrapper"), 192 w = $(".navbar-collapse"), 193 x = "load-menu.php"; 194 check = true; 195 $(window).on("resize", function() { 196 if(check) 197 { 198 a(); 199 check = false; 200 } 201 }), 202 a(), 203 "" !== settings.searchWord ? (g.val(settings.searchWord), g.on("focus", function() { 204 var a = $(this); 205 a.val() === settings.searchWord && a.val("") 206 }), g.on("blur", function() { 207 var a = $(this); 208 "" === a.val() && a.val(settings.searchWord) 209 })) : (g.val(texts.searchPhrase), g.on("focus", function() { 210 var a = $(this); 211 a.val() === texts.searchPhrase && a.val("") 212 }), g.on("blur", function() { 213 var a = $(this); 214 "" === a.val() && a.val(texts.searchPhrase) 215 })), 216 $(".close-cookie").on("click", function(a) { 217 a.preventDefault(), 218 setCookie("cookieOK", 1, 365), 219 $(".cookie-wrapper").stop().animate({ 220 height: 0 221 }, 300) 222 }), 223 0 === settings.highContrast && $("a").on("click", function() { 224 var a = $(this); 225 a.addClass("no-outline"), 226 a.find(".title").addClass("no-outline") 227 }), 228 h.unbind("click").on("click", function(a) { 229 var b = $(this), 230 c = $("#" + b.attr("data-target")); 231 a.preventDefault(), 232 // b.blur(), 233 "false" === b.attr("aria-expanded") ? (b.attr("aria-expanded", "true"), b.find(".icon").addClass("rotate")) : (b.attr("aria-expanded", "false"), b.find(".icon").removeClass("rotate")), 234 c.slideToggle("slow") 235 }), 236 j.unbind("click").on("click", function(a) { 237 var b = $(this), 238 c = $("#" + b.attr("data-target")); 239 a.preventDefault(), 240 "false" === b.attr("aria-expanded") ? (b.attr("aria-expanded", "true"), b.find(".icon").addClass("rotate"), b.find(".title").text(texts.collapseChangesRegister)) : (b.attr("aria-expanded", "false"), b.find(".icon").removeClass("rotate"), b.find(".title").text(texts.expandChangesRegister)), 241 c.slideToggle("fast") 242 }), 243 l.find("a").each(function() { 244 var a = $(this); 245 "_blank" === a.attr("target") && a.append('<span class="sr-only">' + texts.opensInNewWindow + "</span>") 246 }), 247 l.find(".access-map").attr("aria-hidden", "true"), 248 l.find("table").each(function() { 249 var a = $(this); 250 a.wrap('<div class="table-responsive"></div>') 251 }), 252 b(), 253 1 === settings.popupShow && c(), 254 1 === settings.print && (k.slideToggle("fast"), setTimeout(function() { 255 print() 256 }, 1e3)), 257 $(".datepicker").datepicker({ 258 language: "pl", 259 format: "yyyy-mm-dd", 260 todayHighlight: !0, 261 todayBtn: "linked", 262 templates: { 263 leftArrow: '<i class="icon-angle-left icon" aria-hidden="true"></i><span class="sr-only">' + texts.prevMonth + "</span>", 264 rightArrow: '<i class="icon-angle-right icon" aria-hidden="true"></i><span class="sr-only">' + texts.nextMonnth + "</span>" 265 }, 266 maxViewMode: 1 267 }), 268 $(window).on("resize", function() { 269 e() 270 }), 271 e(), 272 $(window).on("resize", function() { 273 f() 274 }), 275 f() 276}), $(window).load(function() { 277 $(window).stellar() 278}), $(document).on("shown.bs.dropdown", function(a) { 279 var b = $(a.target); 280 b.find(".dropdown-menu").attr("aria-expanded", !0), 281 setTimeout(function() {}, 10) 282}), $(document).on("hidden.bs.dropdown", function(a) { 283 var b = $(a.target); 284 b.find(".dropdown-menu").attr("aria-expanded", !1), 285 b.find(".dropdown-toggle").focus() 286}), $(document).ready(function() { 287 function a(a) { 288 var b = /^[a-zA-Z]([a-zA-Z0-9_\-])+([\.][a-zA-Z0-9_]+)*\@((([a-zA-Z0-9\-])+\.){1,2})*([a-zA-Z0-9]{2,40})$/; 289 return console.log(b.test(a)), 290 b.test(a) 291 } 292 var b = $(".contact-form"), 293 c = b.find(".submit-btn"), 294 d = $(".room-form"), 295 e = d.find(".submit-btn"); 296 c.on("click", function(c) { 297 var d = $(this), 298 e = !1, 299 f = (b.find("#question"), b.find("#email")); 300 k = (b.find("#klauzula").is(':checked') ); 301 d.blur(), 302 c.preventDefault(), 303 $(".spr").each(function() { 304 var b = $(this); 305 if (b.hasClass("required")) { 306 var c = b.parent().parent().find(".error"); 307 switch (b.attr("id")) { 308 case "email": 309 a(f.val()) ? (b.removeClass("error-field"), c.hide().text(""), e = !1) : (b.addClass("error-field"), c.show().html(errors.invalidEmail), e = !0); 310 break; 311 case "klauzula": 312 if(k) {(b.removeClass("error-field"), c.hide().text(""), e = !1)} else {(b.addClass("error-field"), c.show().text(errors.requiredField), e = !0)}; 313 break; 314 default: 315 "" === b.val() ? (b.addClass("error-field"), c.show().text(errors.requiredField), e = !0) : (b.removeClass("error-field"), c.hide().text(""), e = !1) 316 } 317 b.on("focus", function() { 318 b.on("keypress", function() { 319 b.removeClass("error-field"), 320 c.hide().text("") 321 }) 322 }) 323 } 324 }); 325 if (!e) b.submit(); 326 }), 327 e.on("click", function(a) { 328 var b = $(this), 329 c = !1; 330 d.find("#room"); 331 a.preventDefault(), 332 b.blur(), 333 $(".form-control").each(function() { 334 var a = $(this); 335 if (a.hasClass("required")) { 336 var b = a.parent().parent().find(".error"); 337 switch (a.attr("id")) { 338 default: 339 "" === a.val() ? (a.addClass("error-field"), b.show().text(errors.requiredField), c = !0) : (a.removeClass("error-field"), b.hide().text(""), c = !1) 340 } 341 a.on("focus", function() { 342 a.on("keypress", function() { 343 a.removeClass("error-field"), 344 b.hide().text("") 345 }) 346 }) 347 } 348 }), 349 c ? $(".error-field:first").focus() : d.submit() 350 }) 351}), $(document).ready(function() { 352 if (1 === settings.showMap) { 353 var a, 354 b = new google.maps.InfoWindow, 355 c = new google.maps.LatLng(settings.mapLat, settings.mapLng), 356 d = { 357 zoom: 17, 358 center: c, 359 mapTypeId: google.maps.MapTypeId.ROADMAP 360 }, 361 e = settings.pageName + " " + settings.pagePlace, 362 a = new google.maps.Map($(".home-map")[0], d), 363 f = new google.maps.Marker({ 364 position: c, 365 map: a, 366 title: e 367 }), 368 g = "https://www.google.pl/maps/place/" + e.split(" ").join("+") + "/@" + settings.mapLat + "," + settings.mapLng, 369 h = '<a href="' + g + '" target="_blank">' + texts.showBiggerMap + '<span class="sr-only">' + texts.opensInNewWindow + "</a>"; 370 google.maps.event.addListener(f, "click", function() { 371 b.setContent('<div class="map-details-info main-text">' + h + "</div>"), 372 b.open(a, f); 373 var c = $(".map-details-info").parent().parent().parent().prev(), 374 d = c.find("div").last(), 375 e = d.prev().find("div div"), 376 g = c.next().next(); 377 d.addClass("details-background"), 378 e.addClass("arrow-background"), 379 g.html('<a class="close-details" href="javascript: void();"><i class="icon-cancel icon" aria-hidden="true"></i><span class="sr-only">' + texts.closeDetails + "</span></a>").css({ 380 height: "30px" 381 }) 382 }) 383 } 384}), $(document).ready(function() { 385 if (1 === settings.showRooms) { 386 var a = $(".floor"), 387 b = a.find("polygon"); 388 a.scrollTo(b, 1e3) 389 } 390}); 391 392$(document).ready(function() { 393 $('.articleShareCopyBtn').click(function (t) { 394 t.preventDefault(), $(this).find('input').select(), document.execCommand('copy'); 395 $(this).find('span').html('Skopiowano link do schowka'); 396 $(this).attr('title','Skopiowano link do schowka') ; 397 $('.alert.linkCopy').show(200); 398 399 // setTimeout(function () { 400 // $('.alert.linkCopy').hide(200); 401 // }, 5000); 402 }) 403 404 405}); 406 407//focus po wyszukiwaniu 408document.addEventListener('DOMContentLoaded', function() { 409 const params = new URLSearchParams(window.location.search); 410 if (params.has('kword')) { 411 const searchBtn = document.querySelector('.search-btn'); 412 if (searchBtn) searchBtn.focus(); 413 414 const live = document.createElement('div'); 415 live.className = 'sr-only'; 416 live.setAttribute('aria-live', 'polite'); 417 live.textContent = 'Wyniki wyszukiwania zostaÅy zaÅadowane.'; 418 document.body.appendChild(live); 419 420 setTimeout(() => live.remove(), 3000); 421 } 422}); 423 424 425//fancybox wcag 426$(document).on("onUpdate.fb", function (e, instance) { 427 const $outer = $("#fancybox-outer"); 428 const $title = $("#fancybox-title-over"); 429 430 if ($outer.length && $title.length) { 431 // PrzenieÅ licznik do wnÄtrza dialogu 432 $outer.append($title); 433 434 // Dodaj atrybuty dla czytników ekranu 435 $title 436 .attr("role", "status") 437 .attr("aria-live", "polite") 438 .attr("aria-atomic", "true") 439 .css("display", "block"); 440 } 441}); 442 443$(document).ready(function() { 444 $('video ').removeAttr('type'); 445});
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.