1"use strict"; var aside_nav = { selectorNav: ".aside_nav", selectorButton: ".aside-nav__hamburger", init: function () { $(this.selectorButton).on("click", function (e) { $(this).toggleClass("nav-show") }) } }; jQuery(document).ready(function () { aside_nav.init() }), $(document).ready(function () { $.fn.sqAccordion() }); var article_slider = { slideSection: ".article-slider", slideSelector: ".swiper-container__article-slider", swiperMainSlider: [], init: function () { this.initSlider() }, initSlider: function () { var t = this, i = []; $(t.slideSelector).each(function (e) { i[e] = $(this).closest(t.slideSection), t.swiperMainSlider[e] = new Swiper(this, { navigation: { nextEl: i[e].find(".button--next"), prevEl: i[e].find(".button--prev"), disabledClass: "button--disabled" }, slidesPerView: 3, slidesPerGroup: 3, spaceBetween: 30, autoplay: !1, init: !1, watchSlidesVisibility: !0, breakpoints: { 1024: { slidesPerView: 1, slidesPerGroup: 1, spaceBetween: 10, slidesPerColumn: 3 } } }).on("slideChangeTransitionEnd", function () { i[e].find(".swiper-slide a").attr("tabIndex", "-1"), i[e].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), i[e].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1") }).on("init", function () { i[e].find(".swiper-slide a").attr("tabIndex", "-1"), i[e].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), i[e].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1") }), t.swiperMainSlider[e].init() }) }, rebuild: function () { var e = this; for (var t in void 0 === e && (e = article_slider), e.swiperMainSlider) e.swiperMainSlider[t].destroy(!0, !0); e.init() } }; jQuery(document).ready(function () { 0 < $(".article-slider").length && (article_slider.init(), globalFunctions._checkMobileListener(1024, article_slider.rebuild, article_slider.rebuild)) }); var gallery = { slideSelector: ".gallery", slideTopSelector: ".gallery-top", slideThumbLink: ".gallery-thumbs li a", swiperMainSlider: [], ajaxGallerySelector: ".gallery-popup__wrapper", init: function () { new Swiper(".gallery-popup .swiper-container", { slidesPerView: 1, effect: "fade", loop: !0, observer: !0, autoHeight: !0, centeredSlides: !0, slideToClickedSlide: !0, navigation: { nextEl: $(".gallery-popup").find(".button--next"), prevEl: $(".gallery-popup").find(".button--prev") } }); 0 < $(this.slideSelector).length && this.initSlider() }, initSlider: function () { var t = this, i = []; $(t.slideTopSelector).each(function (e) { 1 < $(this).find("ul li").length && (i[e] = $(this).closest(t.slideSelector), t.swiperMainSlider[e] = new Swiper(this, { spaceBetween: 10, effect: "fade", autoHeight: !0 })) }), t.bind() }, bind: function () { var t = this, i = void 0, n = void 0; $(t.slideThumbLink).on("click", function (e) { e.preventDefault(), n = $(this).closest(t.slideSelector), i = n.index(t.slideSelector), t.swiperMainSlider[i].slideTo($(this).parent().index(), 1e3) }), $(".simple-ajax-popup").click(function (e) { e.preventDefault(); var t = [], i = $(this).attr("href"), n = $(this).attr("data-parameters"); void 0 !== n && (i += n), $.ajax({ url: i, type: "GET", success: function (e) { $(e).find(".swiper-slide").each(function () { t.push({ src: $(this).find("img").attr("src"), title: "<strong>" + $(this).closest(".gallery-popup").find("h2").html() + "</strong> <br />" + $(this).find("figcaption").html() }) }), $.magnificPopup.open({ items: t, fixedContentPos: !0, type: "image", image: { cursor: "" }, gallery: { enabled: !0, navigateByImgClick: !0, arrowMarkup: '<button title="%title%" type="button" class="button-%dir%"></button>', tCounter: "%curr% / %total%" } }) } }) }) } }; jQuery(document).ready(function () { gallery.init() }); var main_slider = { slideSelector: ".main-slider", mainSliderPaginatorItem: ".main-slider__paginator-item__link", mainSliderPaginatorItemActive: ".main-slider__paginator-item__link.active", mainSliderInterval: [], mainSliderSlideTime: [], mainSliderCurentTime: [], mainSliderAutoplay: [], mainSliderBtnPause: ".main-slider__paginator-control--pause", mainSliderBtnPlay: ".main-slider__paginator-control--play", swiperMainSlider: [], progressSelector: ".main-slider__paginator-item__progress-bar__progress", init: function () { this.initSlider() }, initSlider: function () { var n = this, a = []; $(".swiper-container__main-slider").each(function (i) { if (1 < $(this).find("ul li").length) { a[i] = $(this).closest(n.slideSelector), a[i].attr("data-sli
1detime").length ? n.mainSliderSlideTime[i] = a[i].attr("data-slidetime") : n.mainSliderSlideTime[i] = 8e3, a[i].attr("data-autoplay").length ? n.mainSliderAutoplay[i] = /true/i.test(a[i].attr("data-autoplay")) : n.mainSliderAutoplay[i] = !0, n.mainSliderCurentTime[i] = 0, n.mainSliderInterval[i] = !1; var e = $(this); n.swiperMainSlider[i] = new Swiper(this, { navigation: { nextEl: e.find(".main-slider__swiper-next"), prevEl: e.find(".main-slider__swiper-prev") }, slidesPerView: "1", loop: !0, spaceBetween: 30, autoplay: !1, init: !1 }).on("init", function () { $(this).find(".swiper-slide a").attr("tabIndex", "-1"), $(this).find(".swiper-slide-active a").attr("tabIndex", "0"), n.mainSliderAutoplay[i] ? globalFunctions._checkMobile(768) || (n.mainSliderInterval[i] = n.startAutoplay(i), a[i].find(n.mainSliderBtnPause).attr("aria-hidden", "false"), a[i].find(n.mainSliderBtnPlay).attr("aria-hidden", "true")) : (n.mainSliderAutoplay[i] = !1, clearInterval(n.mainSliderInterval[i]), a[i].find(n.mainSliderBtnPause).addClass("hidden"), a[i].find(n.mainSliderBtnPause).attr("aria-hidden", "true"), a[i].find(n.mainSliderBtnPlay).removeClass("hidden"), a[i].find(n.mainSliderBtnPlay).attr("aria-hidden", "false")) }), n.swiperMainSlider[i].init(), n.swiperMainSlider[i].on("slideChangeTransitionStart", function () { a[i].find(n.mainSliderPaginatorItem).removeClass("active"), a[i].find(n.mainSliderPaginatorItem).find(n.progressSelector).width("0") }), n.swiperMainSlider[i].on("slideChangeTransitionEnd", function () { var e = a[i].find(n.mainSliderPaginatorItem); a[i].find(n.mainSliderPaginatorItemActive); $(".swiper-container__main-slider .swiper-slide a").attr("tabIndex", "-1"), $(".swiper-container__main-slider .swiper-slide-active a").attr("tabIndex", "0"); var t = this.activeIndex - 1; t >= e.length ? t -= e.length : t < 0 && (t = e.length - 1), e.slice(t, t + 1).addClass("active"), e.slice(t, t + 1).slice(t, t + 1).addClass("active"), n.mainSliderCurentTime[i] = 0, clearInterval(n.mainSliderInterval[i]), n.mainSliderAutoplay[i] && (n.mainSliderInterval[i] = n.startAutoplay(i)) }), n.swiperMainSlider[i].on("resize", function () { globalFunctions._checkMobile(768) ? clearInterval(n.mainSliderInterval[i]) : (n.mainSliderCurentTime[i] = 0, clearInterval(n.mainSliderInterval[i]), n.mainSliderAutoplay[i] && (n.mainSliderInterval[i] = n.startAutoplay(i))) }) } }), n.bind() }, startAutoplay: function (t) { var i = this, n = i.swiperMainSlider[t].el; return setInterval(function () { i.mainSliderCurentTime[t] >= i.mainSliderSlideTime[t] && (clearInterval(i.mainSliderInterval[t]), i.swiperMainSlider[t].slideNext()); var e = i.mainSliderCurentTime[t] / i.mainSliderSlideTime[t] * 100; $(n).parent().find(i.mainSliderPaginatorItemActive).find(i.progressSelector).width(e + "%"), i.mainSliderCurentTime[t] += 50 }, 50) }, bind: function () { var i = this, n = void 0, t = void 0; $(i.mainSliderPaginatorItem).on("click", function (e) { e.preventDefault(); var t = $(this).parent().index(); n = $(this).closest(i.slideSelector).index(i.slideSelector), i.swiperMainSlider[n].slideTo(t + 1) }), $(i.mainSliderBtnPause).on("click", function (e) { e.preventDefault(), t = $(this).closest(i.slideSelector), n = t.index(i.slideSelector), i.mainSliderAutoplay[n] = !1, clearInterval(i.mainSliderInterval[n]), t.find(i.mainSliderBtnPause).addClass("hidden"), t.find(i.mainSliderBtnPause).attr("aria-hidden", "true"), t.find(i.mainSliderBtnPlay).removeClass("hidden"), t.find(i.mainSliderBtnPlay).attr("aria-hidden", "false") }), $(i.mainSliderBtnPlay).on("click", function (e) { t = $(this).closest(".main-slider"), n = t.index(i.slideSelector), i.mainSliderAutoplay[n] = !0, i.mainSliderInterval[n] = i.startAutoplay(n), t.find(i.mainSliderBtnPause).removeClass("hidden"), t.find(i.mainSliderBtnPause).attr("aria-hidden", "false"), t.find(i.mainSliderBtnPlay).addClass("hidden"), t.find(i.mainSliderBtnPlay).attr("aria-hidden", "true"), e.preventDefault() }) } }; jQuery(document).ready(function () { 0 < $(".main-slider").length && main_slider.init() }); var media = { selector: ".media", init: function () { $(".popup-media").magnificPopup({ type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !0 }) } }; jQuery(document).ready(function () { media.init() }); var newsListSlider = { slideSection: ".news-list-slider", slideSelector: ".swiper-container__news-list-slider", swiperNewsListSlider: [], nextBtn: ".button--next", prevBtn: ".button--prev", init: function () { var e = this, a = []; $(e.slideSelector).each(function (n) { if (a[n] = $(this).closest(e.slideSection), 3 < a[n].find(".swiper-slide").length) { if (4 == a[n].find(".swiper-slide").length) 1025 < (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) ? (a[n].on("click", ".button--next", function () { a[n].find(".swiper-slide-visible").css({ "margin-right": "33px" }) }), a[n].on("click", ".button--prev", function () { a[n].find(".swiper-slide-visible").css({ "margin-right": "25px" }) })) : (a[n].off("click", ".button--next"), a[n].off("click", ".button--prev")); e.swiperNewsListSlider[n] = new Swiper(this, { navigation: { nextEl: a[n].find(".button--next"), prevEl: a[n].find(".button--prev"), disabledClass: "button--disabled" }, slidesPerView: "auto", slidesPerGroup: 3, spaceBetween: 0, autoplay: !1, init: !1, watchSlidesVisibility: !0, breakpoints: { 1025: { slidesPerView: 1, slidesPerGroup: 1, slidesPerColumn: 4 } } }).on("slideChange", function () { 2 < this.activeIndex ? ($(this.navigation.nextEl).addClass("button--disabled"), this.allowSlideNext = !1) : this.allowSlideNext = !0, 1025 < (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) ? a[n].find(".swiper-slide-visible").length < 4 ? a[n].find(".swiper-slide-visible").css({ "margin-right": "25px" }) : a[n].find(".swiper-slide-visible").css({ "margin-right": "33px" }) : a[n].find(".swiper-slide-visible").removeAttr("css") }).on("slideChangeTransitionEnd", function () { a[n].find(".swiper-slide a").attr("tabIndex", "-1"), a[n].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), a[n].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1") }).on("init", function () { if (a[n].find(".swiper-slide a").attr("tabIndex", "-1"), a[n].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), a[n].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1"), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= 1025) { var e = this.slides.length % this.params.slidesPerColumn; if (0 != e) for (var t = this.params.slidesPerColumn - e, i = 0; i < t; i++)this.appendSlide('<li class="swiper-slide swiper-slide-shell"></li>') } else a[n].find(".swiper-slide-shell").remove() }), e.swiperNewsListSlider[n].init() } else a[n].find(".button--prev").remove(), a[n].find(".button--next").remove() }) }, rebuild: function () { var e = this; for (var t in void 0 === e && (e = newsListSlider), e.swiperNewsListSlider) e.swiperNewsListSlider[t].destroy(!0, !0);
1 e.init() } }; jQuery(document).ready(function () { 0 < $(".news-list-slider").length && (newsListSlider.init(), globalFunctions._checkMobileListener(1025, newsListSlider.rebuild, newsListSlider.rebuild)) }); var newsSwitcher = { navWrapper: ".news-list-switcher .section-header__nav", navBtn: ".news-list-switcher .section-header__btn", navSwitch: ".news-list-switcher .section-header__switch", universityBtn: ".news-list-university__btn", departmentBtn: ".news-list-department__btn", universityWrapper: ".news-list-university", departmentWrapper: ".news-list-department", activeClass: "active", init: function () { this.bind() }, bind: function () { var t = this; $("body").on("click", t.navBtn, function (e) { e.preventDefault(), $(t.navBtn).removeClass(t.activeClass), $(this).addClass(t.activeClass) }), $("body").on("click", t.universityBtn, function (e) { e.preventDefault(), $(t.departmentWrapper).hide(), $(t.universityWrapper).fadeIn(), $(t.navWrapper).removeClass(t.activeClass) }), $("body").on("click", t.departmentBtn, function (e) { e.preventDefault(), $(t.universityWrapper).hide(), $(t.departmentWrapper).fadeIn(), $(t.navWrapper).addClass(t.activeClass) }), $("body").on("click", t.navSwitch, function (e) { e.preventDefault(), $(t.navWrapper).toggleClass(t.activeClass), $(t.navBtn).each(function (e, t) { t.classList.toggle("active") }), $(t.universityWrapper).fadeToggle(), $(t.departmentWrapper).fadeToggle() }) } }; $(function () { newsSwitcher.init() }); var partnersListSlider = { slideSection: ".partners-list-slider", slideSelector: ".swiper-container__partners-list-slider", swiperPartnersListSlider: [], nextBtn: ".button--next", prevBtn: ".button--prev", init: function () { var t = this, i = []; $(t.slideSelector).each(function (e) { i[e] = $(this).closest(t.slideSection), t.swiperPartnersListSlider[e] = new Swiper(this, { navigation: { nextEl: i[e].find(".button--next"), prevEl: i[e].find(".button--prev"), disabledClass: "button--disabled" }, slidesPerView: 4, slidesPerGroup: 4, spaceBetween: 0, autoplay: !1, init: !1, watchSlidesVisibility: !0, breakpoints: { 768: { slidesPerView: 2, slidesPerGroup: 2 } } }).on("slideChange", function () { 4 < this.activeIndex ? ($(this.navigation.nextEl).addClass("button--disabled"), this.allowSlideNext = !1) : this.allowSlideNext = !0 }).on("slideChangeTransitionEnd", function () { i[e].find(".swiper-slide a").attr("tabIndex", "-1"), i[e].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), i[e].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1") }).on("init", function () { i[e].find(".swiper-slide a").attr("tabIndex", "-1"), i[e].find(".swiper-slide-visible a, .swiper-slide-active a").attr("tabIndex", "0"), i[e].find(".swiper-slide-visible.swiper-slide-prev a").attr("tabIndex", "-1") }), t.swiperPartnersListSlider[e].init() }) }, rebuild: function () { var e = this; for (var t in void 0 === e && (e = partnersListSlider), e.swiperPartnersListSlider) e.swiperPartnersListSlider[t].destroy(!0, !0); e.init() } }; jQuery(document).ready(function () { 0 < $(".partners-list-slider").length && (partnersListSlider.init(), globalFunctions._checkMobileListener(768, partnersListSlider.rebuild, partnersListSlider.rebuild)) }); var tabs = { targetList: ".tabs__list li a", targetArticles: ".tabs__content .tabs__content-article", elementIndex: "", elementWrapper: ".tabs__nav", listElement: ".selectdropdown", navSelectElement: ".tabs__select-nav", init: function () { globalFunctions._checkMobile(768) && this.buildSelect(), globalFunctions._checkMobileListener(768, this.buildSelect, this.destroySelect), this.bind() }, bind: function () { var i = this; $("body").on("click", i.targetList, function (e) { e.preventDefault(); var t = $(this).closest(".tabs"); $(this).parents(".tabs__list").find(".active").attr("aria-selected", "false"), $(this).attr("aria-selected", "true"), $(this).parents(".tabs__list").find(".active").removeClass("active"), $(this).addClass("active"), i.elementIndex = $(t).find(i.targetList).index(this), $(this).parents(".tabs__wrapper").find(".tabs__content .active").removeClass("active"), $(t).find(i.targetArticles).eq(i.elementIndex).addClass("active") }), $("body").on("change", i.navSelectElement, function () { var e = $(this).find("option").index($(this).find('option[value="' + $(this).val() + '"]')), t = $(this).closest(".tabs"); $(t).find(i.targetArticles).removeClass("active"), $(t).find(i.targetArticles).eq(e).addClass("active") }) }, buildSelect: function () { var e = this; void 0 === e && (e = tabs), $(e.listElement).each(function () { var e = $(this), a = $(document.createElement("select")).addClass("tabs__select-nav").insertBefore(e.hide()), r = $(this).find("li a.active").parent().index(); $("> li", e).each(function (e) { var t = $(this).html(), i = $(this).text().trim(), n = ""; n = $(document.createElement("option")).appendTo(a).val(i).html(t), e === r && n.attr("selected", "selected") }) }) }, destroySelect: function () { var e = this, t = ""; void 0 === e && (e = tabs), $(e.elementWrapper).each(function () { t = $(this).find(e.navSelectElement + " option:selected").index(), $(this).find(e.listElement + " li a.active").removeClass("active"), $(this).find(e.listElement + " li").eq(t).find("a").addClass("active"), console.log($(e.listElement + " li").eq(t)) }), $(e.navSelectElement).remove(), $(e.listElement).show() } }; $(document).ready(function () { tabs.init() }); var courseFinderNavigation = { navSelector: ".course-finder-nav", init: function () { $(this.navSelector).find("li > a").each(function (e, t) { var i = "#" + t.hash.replace("#", ""); "#" != i && $(i).length && ($(t).parents("li").addClass("show"), $(t).parents("ul").addClass("show")) }), $(this.navSelector).find("li").not(".show").remove() }, scrollToElement: function () { $(this.navSelector).find('li > a[href^="#"]').click(function (e) { var t = $("#top .top-bar").outerHeight(), i = $(this.getAttribute("href")); i.length && (e.preventDefault(), $("html, body").stop().animate({ scrollTop: i.offset().top - (t + 50) }, 1e3)) }) } }; $(document).ready(function () { $(window).on("load", function () { courseFinderNavigation.init() }), courseFinderNavigation.scrollToElement() }); var cookieInformation = { init: function () { this.showInformation(), this.clickEvent() }, clickEvent: function () { $(".cookie-information__content__cta").on("click", function (e) { e.preventDefault(), $.cookie("uamedupl-cookie", !0, { expires: 365, path: "/" }), $(".cookie-information").hide() }) }, showInformation: function () { void 0 === $.cookie("uamedupl-cookie") ? $(".cookie-information").show() : $(".cookie-information").hide() } }; $(document).ready(function () { cookieInformation.init() }), $(document).ready(function () { var t = $("#person ul.address-book-result__list-body__listing-body li").length, i = $("#person").data("page-limit"); t <= i && $("#loadMorePerson").hide(), $("#person ul.address-book-result__list-body__listing-body li:lt(" + i + ")").fadeIn(), $("#loadMorePerson").click(function (e) { e.preventDefault(), i = i + i <= t ? i + i : t, $("#person ul.address-book-result__list-body__listing-body li:lt(" + i + ")").fadeIn(), t <= i && $("#loadMorePerson").hide() }); var n = $("#unit ul.address-book-result__list-body__listing-body li").length, a = $("#unit").data("page-limit"); n <= a && $("#loadMoreUnit").hide(), $("#unit ul.address-book-result__list-body__listing-body li:lt(" + a + ")").fadeIn(), $("#loadMoreUnit").click(function (e) { e.preventDefault(), a = a + a <= n ? a + a : n, $("#unit ul.address-book-result__list-body__listing-body li:lt(" + a + ")").fadeIn(), n <= a && $("#loadMoreUnit").hide() }), $("ul.adress-book-results-tabs li").click(function () { var e = $(this).attr("data-tab"); $("ul.adress-book-results-tabs li").removeClass("current"), $(".adress-book-results-tab-content").removeClass("current"), $(this).addClass("current"), $("#" + e).addClass("current") }) }); var ajaxForm = { formWrapper: $(".conference-signup__form"), init: function () { var r = this, s = "Format adresu e-mail jest niepoprawny", o = '<span class="sr-only">%label%</span> Pole wymagane'; "undefined" != typeof globalVars && (void 0 !== globalVars.customErrorTextRequired && (o = globalVars.customErrorTextRequired), void 0 !== globalVars.customErrorTextEmail && (s = globalVars.customErrorTextEmail)), r.formWrapper.attr("action") && r.formWrapper.on("submit", function (e) { e.preventDefault(); var t = $(this), i = t.serialize() + "&" + t.find("input[type=submit]").attr("name") + "=" + t.find("input[type=submit]").val("Zapisz na konferencjÄ"), n = t.attr("action"), a = r.formWrapper.attr("action"); t.hide(), r.formWrapper.append('<div class="loader"></div>'), $.ajax({ type: "POST", url: a + "?SQ_DESIGN_NAME=clean&SQ_PAINT_LAYOUT_NAME=blank", data: i }).done(function (e) { e = e.replace(/action=".*?"/, "action='" + n + "'"), r.formWrapper.html(e), r.formWrapper.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: o, customErrorTextEmail: s }), r.formWrapper.find("select.sq_dropdown").sqDropdown({}), r.formWrapper.show() }).fail(function (e) { r.formWrapper.addClass("ajax-error"), e ? (e = e.replace(/action=".*?"/, "action='" + n + "'"), r.formWrapper.html(e), r.formWrapper.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: o, customErrorTextEmail: s })) : r.formWrapper.html("<h2>Oops! An error occured and your message could not be sent.</h2>") }) }) } }; $(document).ready(function () { var e = "Format adresu e-mail jest niepoprawny", t = '<span class="sr-only">%label%</span> Pole wymagane'; "undefined" != typeof globalVars && (void 0 !== globalVars.customErrorTextRequired && (t = globalVars.customErrorTextRequired), void 0 !== globalVars.customErrorTextEmail && (e = globalVars.customErrorTextEmail)), $(".conference-signup__form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: t, customErrorTextEmail: e }), $(".conference-signup__form").find("select.sq_dropdown").sqDropdown({}
1), ajaxForm.init() }); var ajaxCustomForm = { formWrapper: $(".custom-form__form"), init: function () { var r = this, s = "Format adresu e-mail jest niepoprawny", o = '<span class="sr-only">%label%</span> Pole wymagane'; "undefined" != typeof globalVars && (void 0 !== globalVars.customErrorTextRequired && (o = globalVars.customErrorTextRequired), void 0 !== globalVars.customErrorTextEmail && (s = globalVars.customErrorTextEmail)), r.formWrapper.attr("action") && r.formWrapper.on("submit", function (e) { e.preventDefault(); var t = $(this), i = t.serialize() + "&" + t.find("input[type=submit]").attr("name") + "=" + t.find("input[type=submit]").val("Zapisz na konferencjÄ"), n = t.attr("action"), a = r.formWrapper.attr("action"); t.hide(), r.formWrapper.append('<div class="loader"></div>'), $.ajax({ type: "POST", url: a + "?SQ_DESIGN_NAME=clean&SQ_PAINT_LAYOUT_NAME=blank", data: i }).done(function (e) { e = e.replace(/action=".*?"/, "action='" + n + "'"), r.formWrapper.html(e), r.formWrapper.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: o, customErrorTextEmail: s }), r.formWrapper.find("select.sq_dropdown").sqDropdown({}), r.formWrapper.show() }).fail(function (e) { r.formWrapper.addClass("ajax-error"), e ? (e = e.replace(/action=".*?"/, "action='" + n + "'"), r.formWrapper.html(e), r.formWrapper.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: o, customErrorTextEmail: s })) : r.formWrapper.html("<h2>Oops! An error occured and your message could not be sent.</h2>") }) }) } }; $(document).ready(function () { var e = "Format adresu e-mail jest niepoprawny", t = '<span class="sr-only">%label%</span> Pole wymagane'; "undefined" != typeof globalVars && (void 0 !== globalVars.customErrorTextRequired && (t = globalVars.customErrorTextRequired), void 0 !== globalVars.customErrorTextEmail && (e = globalVars.customErrorTextEmail)), $(".custom-form__form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: t, customErrorTextEmail: e }), $(".custom-form__form").find("select.sq_dropdown").sqDropdown({}), ajaxCustomForm.init() }); var globalsFilterTranslate = { toDayText: "Do dzisiaj", thisWeek: "Ten tydzieÅ", thisYear: "Ostatni rok" }, languageFilter = "pl", filterBox = { box: ".filter-box", container: ".filters-search", language: "en", checkboxPrefix: "type_", typeCheckboxBox: "#type-checkbox", startDate: !1, endDate: !1, init: function (e) { var t = this; t.openBoxClick(), t.showLimit(), t.showAllFilter(), t.dateFilterRun(), t.resetButton(), t.chechboxQuery(), t.prefil() }, prefil: function () { var t = this; if (t.endDate = moment().endOf("day").toDate(), t.notEmptyAndNull($("[id^=start-date-]")) && t.notEmptyAndNull($("[id^=start-date-]").val())) { var e = "", i = "", n = "", a = ""; $("[id^=start-date-]").each(function () { if (t.notEmptyAndNull($(this).val())) switch ($(this).attr("id")) { case "start-date-y": i = $(this).val(); break; case "start-date-m": n = $(this).val(); break; case "start-date-d": a = $(this).val() } }), t.notEmptyAndNull(i) && t.notEmptyAndNull(n) && t.notEmptyAndNull(a) && (e = i + "-" + n + "-" + a, t.startDate = e) } if (t.notEmptyAndNull($("[id^=end-date-]")) && t.notEmptyAndNull($("[id^=end-date-]").val())) { var r = "", s = "", o = "", l = ""; $("[id^=end-date-]").each(function () { if (t.notEmptyAndNull($(this).val())) switch ($(this).attr("id")) { case "end-date-y": s = $(this).val(); break; case "end-date-m": o = $(this).val(); break; case "end-date-d": l = $(this).val() } }), t.notEmptyAndNull(s) && t.notEmptyAndNull(o) && t.notEmptyAndNull(l) && (r = s + "-" + o + "-" + l, t.endDate = r) } t.notEmptyAndNull($("[id^=start-date-]")) && t.notEmptyAndNull($("[id^=start-date-]").val()) && t.notEmptyAndNull($("[id^=end-date-]")) && t.notEmptyAndNull($("[id^=end-date-]").val()) && $("#range-date").find("input").each(function (e) { "start-range" == $(this).attr("id") && $(this).val(t.startDate), "end-range" == $(this).attr("id") && $(this).val(t.endD
1ate) }) }, fillHiddenFiles: function (e, t) { "start" == t ? ($("input#start-date-d").val(e.replace(/\d{4}-\d{2}-/g, "")), $("input#start-date-m").val(e.replace(/\d{4}-|-\d{2}/g, "")), $("input#start-date-y").val(e.replace(/-\d{2}/g, ""))) : "end" == t && ($("input#end-date-d").val(e.replace(/\d{4}-\d{2}-/g, "")), $("input#end-date-m").val(e.replace(/\d{4}-|-\d{2}/g, "")), $("input#end-date-y").val(e.replace(/-\d{2}/g, ""))) }, removeElementArray: function (e, t) { var i = e.indexOf(t); return e.splice(i, 1), e }, chechboxQuery: function () { var t = [], i = this; $(i.typeCheckboxBox).find("input[id^='" + i.checkboxPrefix + "']").each(function (e) { this.checked && t.push($(this).val()), $(i.typeCheckboxBox).find("input#query_type_sum").val(t.join()), $(this).change(function () { this.checked ? t.push($(this).val()) : i.removeElementArray(t, $(this).val()), $(i.typeCheckboxBox).find("input#query_type_sum").val(t.join()) }) }) }, resetButton: function (e) { var t = this; $("[data-reset-filters]").click(function (e) { e.preventDefault(), console.log("test", $(t.container)), $(t.container).find("input[type=checkbox]").prop("checked", !1), $(t.container).find("input[type=radio]").prop("checked", !1), $(t.container).find("input[type=text]").val(""), $(".hidden-filters").find("input[type=hidden]").val("") }) }, setAllFilterText: function (e, t, i) { t.find(".text").html(i) }, showAllFilter: function (e) { var a = this; $(a.box).each(function () { var n = this; $(n).find("[data-show-all-filter]").click(function (e) { var t = $(this).attr("data-expand-text"), i = $(this).attr("data-collapsed-text"); e.preventDefault(), $(this).hasClass("all") ? ($(this).removeClass("all"), $(n).find(".filter-content > fieldset > ul").removeClass("all"), a.showLimit(), a.setAllFilterText(e, $(this), i)) : ($(this).addClass("all"), $(n).find(".filter-content > fieldset > ul").addClass("all"), $(n).find(".filter-content > fieldset > ul > li").show(), a.setAllFilterText(e, $(this), t)) }) }) }, showLimit: function (e) { $(this.box).each(function () { var e = $(this).find(".filter-content > fieldset > ul").attr("data-start-show"); $(this).find(".filter-content > fieldset > ul > li").slice(e).hide(), $(this).find(".filter-content > fieldset > ul > li.show-more").show() }) }, openBoxClick: function (e) { $(this.box).each(function () { var t = this; $(t).find("[data-open-filter]").click(function (e) { e.preventDefault(), $(t).find(".filter-name fieldset").toggleClass("open"), $(t).find(".filter-content fieldset").toggleClass("open") }) }) }, dateFilterRun: function (e) { var n = this; $("#range-date").length && ($(function () { $("#range-date").dateRangePicker({ language: n.getLanguage(), autoClose: !0, separator: " - ", customOpenAnimation: function (e) { $(this).fadeIn(300, e) }, customCloseAnimation: function (e) { $(this).fadeOut(300, e) }, setValue: function (e, t, i) { $("#start-range").val(t), n.fillHiddenFiles(t, "start"), $("#end-range").val(i), n.fillHiddenFiles(i, "end") }, showShortcuts: !0, shortcuts: null, customShortcuts: [{ name: globalsFilterTranslate.thisWeek, dates: function () { return [moment().endOf("day").toDate(), moment().endOf("day").day(-1).toDate()] } }, { name: globalsFilterTranslate.thisYear, dates: function () { return [moment().day(-365).toDate(), moment().endOf("day").toDate()] } }, { name: globalsFilterTranslate.toDayText, dates: function () { return [moment().day(-9125).toDate(), moment().endOf("day").toDate()] } }] }).bind("datepicker-change", function () { }).bind("datepicker-opened", function () { var e = $("#range-date"); 768 < window.innerWidth ? $(".date-picker-wrapper").css({ position: "absolute", top: e.offset().top + "px", left: e.offset().left + e.width() + 20 + "px" }) : $(".date-picker-wrapper").css({ position: "absolute", top: e.offset().top + e.height() + "px", left: e.offset().left + "px" }) }) }), $(window).on("load", function () { n.notEmptyAndNull($("[id^=start-date-]")) && n.notEmptyAndNull($("[id^=start-date-]").val()) && n.notEmptyAndNull($("[id^=end-date-]")) && n.notEmptyAndNull($("[id^=end-date-]").val()) && ($("#range-date").data("dateRangePicker").setStart($("#range-date #start-range").first().val()), $("#range-date").data("dateRangePicker").setEnd($("#range-date #end-range").first().val())) }), $("#range-date").find("input").each(function (e) { $(this).on("keyup", function () { moment($(this).val(), "YYYY-MM-DD", !0).isValid() && ("start-range" == $(this).attr("id") && ($("#range-date").data("dateRangePicker").setStart($(this).val()), n.fillHiddenFiles($(this).val(), "start")), "end-range" == $(this).attr("id") && ($("#range-date").data("dateRangePicker").setEnd($(this).val()), n.fillHiddenFiles($(this).val(), "end"))) }) })) }, getLanguage: function (e) { return this.notEmptyAndNull(languageFilter) ? languageFilter : this.language }, notEmptyAndNull: function (e) { return null != e && "" !== e } }; $(document).ready(function () { filterBox.init() }); var bttTimer, backToTop = { init: function () { $(".back-to-top a").on("click", function (e) { e.preventDefault(), $("html,body").animate({ scrollTop: 0 }, "slow") }) } }; $(document).ready(function () { backToTop.init() }), jQuery(window).resize(function () { clearTimeout(bttTimer), bttTimer = setTimeout(function () { }, 250) }); var contrast = { selectorContrast: ".contrast", contrastClass: "high-contrast", cookie
1: 0, init: function () { var e = $.cookie(this.contrastClass); void 0 !== e && 1 == e && (this.cookie = 1, $("html").addClass(this.contrastClass)), this._bind() }, _bind: function () { var t = this; $(t.selectorContrast).on("click", function (e) { e.preventDefault(), 1 == t.cookie ? t.cookie = 0 : t.cookie = 1, $("html").toggleClass(t.contrastClass), $.cookie(t.contrastClass, t.cookie) }) } }; jQuery(document).ready(function () { contrast.init() }); var filterBoxCF = { init: function (e) { window.innerWidth < 768 && ($(".course-finder-site .filter-content fieldset").removeClass("open"), $(".course-finder-site .filter-name fieldset").addClass("open")) } }; $(document).ready(function () { filterBoxCF.init() }); var fontSize = { selectors: { btn: ".js-change-font-size", container: [".main", "#main-nav", ".header-link__list", ".top-bar"] }, currentClass: "", dataAttr: "font-size", _init: function () { $(this.selectors.btn).length && (this._bind(), this._checkFontSize()) }, _bind: function () { var i = this; $(i.selectors.btn).on("click", function (e) { e.preventDefault(); var t = $(this).data(i.dataAttr) ? $(this).data(i.dataAttr) : ""; i._setFontSize(t) }) }, _checkFontSize: function () { var e = $.cookie(this.dataAttr); void 0 !== e && this._setFontSize(e) }, _setFontSize: function (e) { var t = this; $(t.selectors.container).each(function () { $(this).removeClass(t.currentClass) }), t.currentClass = e, $(t.selectors.container).each(function () { $(this).addClass(t.currentClass) }), $.cookie(t.dataAttr, t.currentClass) } }; $(document).ready(function () { fontSize._init() }); var globalFunctions = { urlRegExp: /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/, mobileViewport: window.matchMedia("screen and (max-width: 1279px)"), mobileSmallViewport: window.matchMedia("screen and (max-width: 767px)"), _ajaxCall: function (e, t, i, n, a) { $.ajax({ url: e, dataType: i || "json", success: t || function () { }, beforeSend: n || function () { }, fail: a || function () { } }) }, _checkMobile: function (e) { var t = this.mobileViewport; return void 0 !== e && "NaN" !== parseInt(e) && (t = window.matchMedia("screen and (max-width:" + e + "px)")), !!t.matches }, _checkMobileListener: function (e, t, i) { var n = this.mobileViewport; void 0 !== e && "NaN" !== parseInt(e) && (n = window.matchMedia("screen and (max-width:" + e + "px)")), n.addListener(function (e) { "function" == typeof t && "function" == typeof i ? e.matches ? t() : i() : console.log("callback is not a function") }) }, _checkUrl: function (e) { return !(void 0 === e || !e.toString().match(this.urlRegExp)) }, _getUrlParam: function (e) { for (var t = [], i = window.location.search.substr(1).split("&"), n = 0; n < i.length; n++)if ((t = i[n].split("="))[0] === e) return decodeURIComponent(t[1]); return "" }, _showLoader: function (e, t) { e ? $(t).addClass("loading") : $(t).removeClass("loading") }, _isOnScreen: function (e) { if ($(e).length) { var t = {}; t.top = $(window).scrollTop(), t.bottom = t.top + $(window).height(); var i = {}; return i.top = $(e).offset().top, i.bottom = i.top + $(e).outerHeight(), i.top <= t.bottom && i.bottom >= t.top } }, addClassToHover: function (e) { e.hover(function () { e.addClass("active-hover") }, function () { e.removeClass("active-hover") }) } }; $(document).ready(function () { }); var smallTable = { selectors: { main: "table", btn: ".js-table-more", table: ".hidden-table" }, maxRows: 15, showRows: 5, counter: 0, opacity: 1, animationTime: 2e3, _init: function () { var e = this; $(e.selectors.main).length && ($(e.selectors.main).each(function () { $("tbody tr", this).length > e.maxRows && (e._hideTable(this, !0), e.counter++, $(this).addClass(e.selectors.table.substring(1) + e.counter).after('<a href="#" class="button--next button--table ' + e.selectors.btn.substring(1) + '" data-id="' + e.counter + '" title="Pokaż caÅÄ
tabelÄ" aria-hidden="true" aria-label="Pokaż caÅÄ
tabelÄ" aria-disabled="false"><span class="icon--tiny icon--r90"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512.25 360.5"><path d="M345,355.25a18.38,18.38,0,0,1-26-26l131-131H18a18,18,0,0,1,0-36H450l-131-131a18.72,18.72,0,0,1,0-26,18.72,18.72,0,0,1,26,0l162,162a18.72,18.72,0,0,1,0,26Z"></path></svg></span></a>').attr("data-status", "hidden")) }), e._bind()) }, _bind: function () { var a = this; $(a.selectors.btn).on("click", function (e) { e.preventDefault(); var t = $(this).attr("data-id"), i = a.selectors.table + t; "hidden" === $(i).attr("data-status") ? a._showTable(i) : a._hideTable(i); var n = $("span", this); setTimeout(function () { $(n).toggleClass("icon--r90 icon--r270") }, a.animationTime), $(this).remove() }) }, _hideTable: function (e, t) { var i = this, n = i.animationTime; if (t && (n = 0), i.opacity) for (var a, r = 1 / (i.showRows + 1), s = 1;
1 s <= i.showRows; s++)a = r * (i.showRows + 1 - s), $("tbody tr:nth-child(" + s + ")", e).css({ opacity: a }); $("tbody tr:gt(" + (i.showRows - 1) + ")", e).animate({ opacity: 0 }, n, function () { $(this).css({ display: "none" }) }), $(e).attr("data-status", "hidden") }, _showTable: function (e) { $(e + " tbody tr").css({ display: "table-row" }).animate({ opacity: 1 }, this.animationTime), $(e).attr("data-status", "visible") } }; $(document).ready(function () { smallTable._init() }); var printPage = { init: function () { $("a.print").length && $("a.print").on("click", function (e) { e.preventDefault(), window.print() }) } }; jQuery(document).ready(function () { }); var globalPopup = { selector: "body", type: "ajax", mainClass: "mfp-fade", standardClass: "modal-popup", init: function () { var t = this, i = !1; $(".popup-global").each(function (e) { i = $(this), "form" == t.getType(i) ? t.initFormPopup(i) : "ajax" == t.getType(i) ? t.initAjaxPopup(i) : t.initOtherPopup(i) }) }, initFormPopup: function (t) { var i = this, n = [], a = t.attr("href"), e = t.attr("data-parameters"); void 0 !== e && (a += e), t.on("click", function (e) { e.preventDefault(), $.ajax({ url: a, type: "GET", success: function (e) { n.push({ src: e, type: "inline" }), jQuery.magnificPopup.open({ items: n, mainClass: i.getMainClass(t), fixedContentPos: !0, type: "inline" }), i.getEvetsNameList(t).forEach(function (e) { popupEvent[e]() }) } }) }) }, initAjaxPopup: function (e) { var t = this; e.magnificPopup({ type: t.getType(e), mainClass: t.getMainClass(e), removalDelay: 160, preloader: !1, fixedContentPos: !0, callbacks: { elementParse: function (e) { t.getEvetsNameList(e.el).forEach(function (e) { popupEvent[e]() }) }, parseAjax: function (e) { }, markupParse: function (e, t, i) { }, ajaxContentAdded: function () { t.getEvetsNameList(e).forEach(function (e) { popupEvent[e]() }) } } }) }, initOtherPopup: function (e) { e.magnificPopup({ type: this.getType(e), mainClass: this.getMainClass(e), removalDelay: 160, preloader: !1, fixedContentPos: !0 }) }, getEvetsNameList: function (e) { var t = e.data("popup-events"); return this.notEmptyAndNull(t) ? t.split(",") : [] }, getType: function (e) { var t = e.data("popup-type"); return 0 <= ["image", "ajax", "iframe", "inline", "form"].indexOf(t) ? t : globalPopup.type }, getMainClass: function (e) { var t = e.data("popup-main-class"); return this.notEmptyAndNull(t) ? t + " " + globalPopup.standardClass : globalPopup.mainClass + " " + globalPopup.standardClass }, notEmptyAndNull: function (e) { return void 0 !== e || null === e } }, popupEvent = []; jQuery(document).ready(function () { globalPopup.init() }), popupEvent.ajaxCustomFormReInit = function (e) { }, popupEvent.ajaxContentAdded = function (e) { var r = $(".newsletter-popup .mfp-content"), t = $(".newsletter-setting").attr("data-newsletter-group"); if (globalPopup.notEmptyAndNull(t)) { var i = $(".newsletter-setting").attr("data-newsletter-group-target"); globalPopup.notEmptyAndNull(i) ? $("." + i).val(t) : $(".group-newsltter-id").val(t) } r.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: globalsNewsletterTranslate.textRequired, customErrorTextEmail: globalsNewsletterTranslate.textEmail }), r.find("form").addClass("custom-form__form"), r.find("form [data-header-popup]").html(globalsNewsletterTranslate.headerPopup), r.find("form [data-input-label-name]").html(globalsNewsletterTranslate.placeholderName), r.find("form [data-input-label-email]").html(globalsNewsletterTranslate.placeholderEmail), r.find("form [data-required-text-title]").attr("title", globalsNewsletterTranslate.textRequired), r.find("form [data-required-text]").html(globalsNewsletterTranslate.textRequired), r.find("form [data-recaptcha-text]").html(globalsNewsletterTranslate.headerPopup), r.find("form").on("submit", function (e) { e.preventDefault(), r.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: globalsNewsletterTranslate.textRequired, customErrorTextEmail: globalsNewsletterTranslate.textEmail }); var t = $(this), i = t.serialize() + "&" + t.find("input[type=submit]").attr("name") + "=" + t.find("input[type=submit]").val(), n = t.attr("action"), a = !0; if (t.find(".sq-form-question"), t.find(".sq-form-question").each(function () { $(this).hasClass("sq-form-error-custom") && (a = !1), $(this).find(".sq-form-question-answer").hasClass("sq-form-error-custom") && (a = !1), $(this).find("input[type=checkbox]:checked:required").length == $(this).find("input[type=checkbox]:required").length && (a = !0) }), a) { r.html('<div class="popup__loader"><div class="popup__loader__spinner"></div><span>loading...</span></div>'), $.ajax({ type: "POST", url: n + "?SQ_DESIGN_NAME=clean&SQ_PAINT_LAYOUT_NAME=blank", data: i }).done(function (e) { e = e.replace(/action=".*?"/, "action='" + n + "'"), r.html(e), r.find("[data-thankyoupage-header]").html(globalsNewsletterTranslate.thankyoupageHeader), r.find("[data-thankyoupage-text]").html(globalsNewsletterTranslate.thankyoupageText), r.find("form").sqCustomForm({ debugMode: !1, customErrorTooltip: '<span class="%classFormErrorTooltip%" role="alert">%message%</span>', customErrorTextRequired: globalsNewsletterTranslate.textRequired, customErrorTextEmail: globalsNewsletterTranslate.textEmail }) }).fail(function (e) { r.addClass("ajax-error"), r.html("<h2>" + globalsNewsletterTranslate.textErrorAjaxLoad + "</h2>") }) } }) }; var pagination = { init: function (e, t) { if ($(e).length) { var i = parseInt(t) - 1, n = $(e).find(".page-listing>a, .page-listing>span"), a = n.length, r = parseInt($(e).find(".page-listing span.current").text()), s = " <a class='dots'>...</a> "; if (1 !== a) { if (1 == r && $(e).find(".prev").css({ opacity: "0.5" }).find("a").removeAttr("href"), r == a && $(e).find(".next").css({ opacity: "0.5" }).find("a").removeAttr("href"), a > 2 * parseInt(t) + 1) if (2 + i < r && r <= a - i - 2) { for (var o = 1; o < r - i; o++)$(n[o]).remove(); $(".page-listing a:first-child").after(s); for (var l = r + i; l < a; l++)$(n[l - 1]).remove(); $(".page-listing a:last-child").before(s) } else if (2 + i < r) { var d = a - 2 * i - 1; for (o = 1; o < d; o++)$(n[o]).remove(); $(".page-listing a:first-child").after(s) } else if (r < a - i) { for (l = 2 * i + 2; l < a; l++)$(n[l - 1]).remove(); $(".page-listing a:last-child").before(s) } $(e).show() } } } }, itemClick = { init: function () { $(".item-click").each(function () { $(this).on("click", function (e) { $(e.target).is("a") || $(this).find("a")[0].click() }) }) } }; jQuery(document).ready(function () { pagination.init(".pagination", 3), itemClick.init() }); var hamburger = { targetButton: ".header__hamburger", targetElement: ".header__hamburger-bar", targetMenuClass: ".header__navigation", class: "animate", bodyClass: "openNav", init: function () { this.bind() }, bind: function () { var t = this; $(t.targetButton).on("click", function (e) { e.preventDefault(), $(this).toggleClass("is-active"), $("body").toggleClass("menu-active"), $("body").removeClass("sub-open"), $(".nav__sub").removeClass("sub-open") }), $(document).on("click focus keyup", function (e) { $(e.target).is(t.targetMenuClass + " *") || $(t.targetMenuClass + " .nav-item").removeClass("focused") }), $(".nav-item > a.triangle").on("click", function (e) { e.preventDefault(), $(".nav-item").removeClass("focused"), $(this).parent().addClass("focused") }), $(".nav-item > a").on("focus", function (e) { e.preventDefault(), $(".nav-item").removeClass("focused") }), $(".nav-item > a").mouseover(function (e) { e.preventDefault(), $(".nav-item").removeClass("focused") }) } }; $(document).ready(function () { hamburger.init() }); var languageList = { languageSelector: ".header-lang", logo: ".header__logo__link.mobile", init: function () { this.bind() }, bind: function () { var e = this; $("html,body").on("click", ".header-lang .sq_dropdown__active", function () { $(this).parent().hasClass("active") ? ($(this).closest(".top-bar").css("zIndex", "5").css("height", "auto"), $(e.logo).show()) : ($(this).closest(".top-bar").removeAttr("style"), $(e.logo).hide()) }) } };
1 $(document).ready(function () { languageList.init(), $(".header-lang .sq_dropdown").sqDropdown() }); var menu = { headerElement: ".header", classAdded: "header-sticky", menuElement: ".section-menu", buttonSubShow: ".nav__icon--show", buttonSubClose: ".nav__icon--back", classSubMenu: "sub-open", menuLink: ".nav__link", classFocus: "focusin", containerMenu: ".nav", init: function () { this.stickyMenu(), this.openSubMenu(), this.focusMenu() }, openSubMenu: function () { var t = this; $(t.buttonSubShow).on("click", function (e) { e.preventDefault(), $(this).next().addClass(t.classSubMenu), $("body").addClass(t.classSubMenu) }), $(t.buttonSubClose).on("click", function (e) { e.preventDefault(), $(this).parent().removeClass(t.classSubMenu), $("body").removeClass(t.classSubMenu) }) }, focusMenu: function () { var t = this; $(t.menuLink).on("focus", function (e) { e.preventDefault(), $(this).parent().addClass(t.classFocus).siblings().removeClass(t.classFocus) }), $(document).on("click focus keyup", function (e) { $(e.target).is(t.containerMenu + " *") || $(t.menuLink).parent().removeClass(t.classFocus) }) }, stickyMenu: function () { var a = this, r = 0; $(window).scroll(function (e) { if (!globalFunctions._checkMobile()) { console.log("init"); var t = $(a.menuElement).offset(), i = $(a.menuElement).outerHeight(), n = $(a.headerElement).outerHeight() - i; 0 === r && (r = t.top), r > $(a.headerElement).outerHeight() && (n = r), 0 < $(a.headerElement).length && void 0 !== t && void 0 !== t.top && ($(this).scrollTop() >= t.top && $(this).scrollTop() > n ? $(a.headerElement).addClass(a.classAdded) : $(this).scrollTop() < n && $(a.headerElement).removeClass(a.classAdded)) } }) } }; jQuery(document).ready(function () { menu.init() }); var formLabel = { target: "form input", init: function () { $(this.target).on("focus", function (e) { e.preventDefault(), $(this).prev().addClass("inputFocus"), $(this).closest("form").addClass("activeForm") }).on("blur", function (e) { e.preventDefault(), 0 === $(this).val().length && ($(this).prev().removeClass("inputFocus"), $(this).closest("form").removeClass("activeForm")) }) } }, searchFormMobile = { targetSection: ".search form", targetButton: ".search__mobile__button", init: function () { var t = this; $(t.targetButton).on("click", function (e) { e.preventDefault(), $(t.targetSection).slideToggle(), $(t.targetSection).parent().toggleClass("search-active") }) } }; jQuery(document).ready(function () { }); var browserSupport = { supported: globalVars.supportedBrowsers, htmlClass: "unsupported-browser", ajaxURL: globalVars.unsupportedBrowsersUrl, siteID: globalVars.siteID, cookieName: globalVars.unsupportedBrowsersCookieName, init: function () { var e = this, t = (window.location.href, !0); void 0 !== e.cookieName && "true" === $.cookie(e.cookieName) && (t = !1); e.bind(), !0 !== e.checkMobile() && void 0 !== e.supported && void 0 !== e.ajaxURL && !0 === t && (void 0 !== e.supported[e.getInfo()[0]] && parseInt(e.getInfo()[1], 10) >= parseInt(e.supported[e.getInfo()[0]], 10) ? $("html").removeClass(e.htmlClass) : void 0 !== e.ajaxURL && "" !== e.ajaxURL && e.getContent()) }, getContent: function () { var t = this; $.ajax({ type: "POST", url: t.ajaxURL + "?sid=" + t.siteID, success: function (e) { $("body").prepend(e), $("html").addClass(t.htmlClass) } }) }, checkMobile: function () { var e = !1, t = navigator.userAgent || navigator.vendor || window.opera; return (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0), e }, getInfo: function () { var e, t = navigator.userAgent, i = t.match(/(MSIE|Trident|(?!Gecko.+)Firefox|(?!AppleWebKit.+Chrome.+)Safari(?!.+Edge|.+OPR)|(?!AppleWebKit.+)Chrome(?!.+Edge|.+OPR)|(?!AppleWebKit.+Chrome.+Safari.+)Edge|(?!AppleWebKit.+Chrome.+Safari.+)OPR|AppleWebKit(?!.+Chrome|.+Safari)|Gecko(?!.+Firefox))(?: |\/)([\d\.apre]+)/i) || []; return /trident/i.test(i[1]) ? ["ie", (e = /\brv[ :]+(\d+(\.\d+)?)/g.exec(t) || [])[1] || ""] : (i = i[2] ? [i[1].toLowerCase(), i[2]] : [navigator.appName.toLowerCase(), navigator.appVersion, "-?"], null !== (e = t.match(/version\/([\.\d]+)/i)) && (i[1] = e[1]), "opr" === i[0] && (i[0] = "opera"), i) }, bind: function () { var t = this; $("body").on("click", ".display-anyway", function (e) { e.preventDefault(), $.cookie(t.cookieName, "true", { path: "/" }), $("html").removeClass(t.htmlClass) }) } }; jQuery(document).ready(function () { browserSupport.init() });
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.