PageSourceSearch

https://osrodekgawra.pl/templates/osg-template/assets/js/theme1.min.js?1690645403

js osrodekgawra.pl collected 2026-10-04 13:23:50 UTC 9,167 bytes, 1 lines download raw bytes

1"use strict";var theme={init:function(){theme.stickyHeader(),theme.subMenu(),theme.offCanvas(),theme.isotope(),theme.anchorSmoothScroll(),theme.svgInject(),theme.backgroundImage(),theme.backgroundImageMobile(),theme.imageHoverOverlay(),theme.rellax(),theme.scrollCue(),theme.swiperSlider(),theme.pageProgress(),theme.bsTooltips(),theme.bsPopovers()},stickyHeader(){null!=document.querySelector(".navbar")&&new Headhesive(".navbar",{offset:350,offsetSide:"top",classes:{clone:"navbar-clone fixed",stick:"navbar-stick",unstick:"navbar-unstick"},onStick:function(){var e=this.clonedElem.classList;e.contains("transparent")&&e.contains("navbar-dark")&&(this.clonedElem.className=this.clonedElem.className.replace("navbar-dark","navbar-light"))}})},subMenu(){!function(e){var t;let r="has-child-dropdown-show";e.Dropdown.prototype.toggle=(t=e.Dropdown.prototype.toggle,function(){document.querySelectorAll("."+r).forEach(function(e){e.classList.remove(r)});let e=this._element.closest(".dropdown").parentNode.closest(".dropdown");for(;e&&e!==document;e=e.parentNode.closest(".dropdown"))e.classList.add(r);return t.call(this)}),document.querySelectorAll(".dropdown").forEach(function(e){e.addEventListener("hide.bs.dropdown",function(e){this.classList.contains(r)&&(this.classList.remove(r),e.preventDefault()),e.stopPropagation()})})}(bootstrap)},offCanvas(){let e=document.querySelectorAll(".offcanvas-nav-btn"),t=document.querySelector(".navbar:not(.navbar-clone) .offcanvas-nav"),r=new bootstrap.Offcanvas(t,{scroll:!0}),a=document.querySelectorAll(".onepage .navbar li a.scroll"),o=document.getElementById("offcanvas-search");e.forEach(e=>{e.addEventListener("click",e=>{r.show()})}),a.forEach(e=>{e.addEventListener("click",e=>{r.hide()})}),null!=o&&o.addEventListener("shown.bs.offcanvas",function(){document.getElementById("search-form").focus()})},isotope(){var e=document.querySelectorAll(".grid");null!=e&&e.forEach(e=>{var t=e.querySelector(".isotope"),r=e.querySelector(".isotope-filter"),a=e.querySelectorAll(".isotope-filter"),o=new Isotope(t,{itemSelector:".item",layoutMode:"masonry",masonry:{columnWidth:t.offsetWidth/12},percentPosition:!0,transitionDuration:"0.7s"});if(imagesLoaded(t).on("progress",function(){o.layout({masonry:{columnWidth:t.offsetWidth/12}})}),window.addEventListener("resize",function(){o.arrange({masonry:{columnWidth:t.offsetWidth/12}})},!0),null!=r){r.addEventListener("click",function(e){if(matchesSelector(e.target,".filter-item")){var t=e.target.getAttribute("data-filter");o.arrange({filter:t})}});for(var i=0,l=a.length;i<l;i++){var s=a[i];s.addEventListener("click",function(e){matchesSelector(e.target,".filter-item")&&(s.querySelector(".active").classList.remove("active"),e.target.classList.add("active"))})}}})},anchorSmoothScroll(){let e=document.querySelectorAll(".scroll");for(let t of e)t.addEventListener("click",r);function r(e){e.preventDefault(),this.blur();let t=this.getAttribute("href"),r=document.querySelector(t).offsetTop;scroll({top:r,behavior:"smooth"})}},svgInject(){SVGInject.setOptions({onFail:function(e,t){e.classList.remove("svg-inject")}}),document.addEventListener("DOMContentLoaded",function(){SVGInject(document.querySelectorAll("img.svg-inject"),{useCache:!0})})},backgroundImage(){for(var e=document.querySelectorAll(".bg-image"),t=0;t<e.length;t++){var r=e[t].getAttribute("data-image-src");e[t].style.backgroundImage="url('"+r+"')"}},backgroundImageMobile(){(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i))&&document.querySelectorAll(".image-wrapper").forEach(e=>{e.classList.add("mobile")})},imageHoverOverlay(){for(var e=document.querySelectorAll(".overlay > a, .overlay > span"),t=0;t<e.length;t++){var r=document.createElement("span");r.className="bg",e[t].appendChild(r)}},rellax(){null!=document.querySelector(".rellax")&&(window.onload=function(){var e=new Rellax(".rellax",{speed:2,center:!0,breakpoints:[576,992,1201]});imagesLoaded(document.querySelectorAll(".projects-overflow"),function(){e.refresh()})})},scrollCue(){scrollCue.init({interval:-400,duration:700,percentage:.8}
1),scrollCue.update()},swiperSlider:function(){for(var e=document.querySelectorAll(".swiper-container"),t=0;t<e.length;t++){var r=e[t];r.classList.add("swiper-container-"+t);var a=document.createElement("div");a.className="swiper-controls";var o=document.createElement("div");o.className="swiper-pagination";var i=document.createElement("div");i.className="swiper-navigation";var l=document.createElement("div");l.className="swiper-button swiper-button-prev";var s=document.createElement("div");s.className="swiper-button swiper-button-next",r.appendChild(a),a.appendChild(i),i.appendChild(l),i.appendChild(s),a.appendChild(o);var n=r.getAttribute("data-effect")?r.getAttribute("data-effect"):"slide";if("true"===r.getAttribute("data-items-auto"))var c="auto",d=null;else var u=r.getAttribute("data-items")?r.getAttribute("data-items"):3,p=r.getAttribute("data-items-xs")?r.getAttribute("data-items-xs"):1,m=r.getAttribute("data-items-sm")?r.getAttribute("data-items-sm"):Number(p),g=r.getAttribute("data-items-md")?r.getAttribute("data-items-md"):Number(m),v=r.getAttribute("data-items-lg")?r.getAttribute("data-items-lg"):Number(g),h=r.getAttribute("data-items-xl")?r.getAttribute("data-items-xl"):Number(v),f=r.getAttribute("data-items-xxl")?r.getAttribute("data-items-xxl"):Number(h),c=u,d={0:{slidesPerView:Number(p)},576:{slidesPerView:Number(m)},768:{slidesPerView:Number(g)},992:{slidesPerView:Number(v)},1200:{slidesPerView:Number(h)},1400:{slidesPerView:Number(f)}};var b=r.getAttribute("data-speed")?r.getAttribute("data-speed"):500;r.getAttribute("data-autoplay");var y=r.getAttribute("data-autoplaytime")?r.getAttribute("data-autoplaytime"):5e3,w="true"===r.getAttribute("data-autoheight"),A=r.getAttribute("data-margin")?r.getAttribute("data-margin"):30,S="true"===r.getAttribute("data-loop"),E="true"===r.getAttribute("data-centered"),$=r.querySelector(".swiper:not(.swiper-thumbs)"),q=r.querySelector(".swiper-thumbs"),k=new Swiper(q,{slidesPerView:5,spaceBetween:10,loop:!1,threshold:2,slideToClickedSlide:!0});if("true"===r.getAttribute("data-thumbs")){var L=k,x=document.createElement("div");x.className="swiper-main",$.parentNode.insertBefore(x,$),x.appendChild($),r.removeChild(a),x.appendChild(a)}else var L=null;new Swiper($,{on:{beforeInit:function(){"true"!==r.getAttribute("data-nav")&&"true"!==r.getAttribute("data-dots")&&a.remove(),"true"!==r.getAttribute("data-dots")&&o.remove(),"true"!==r.getAttribute("data-nav")&&i.remove()},init:function(){"true"!==r.getAttribute("data-autoplay")&&this.autoplay.stop(),this.update()}},autoplay:{delay:y,disableOnInteraction:!1},speed:parseInt(b),slidesPerView:c,loop:S,centeredSlides:E,spaceBetween:Number(A),effect:n,autoHeight:w,grabCursor:!0,resizeObserver:!1,breakpoints:d,pagination:{el:e[t].querySelector(".swiper-pagination"),clickable:!0},navigation:{prevEl:r.querySelector(".swiper-button-prev"),nextEl:r.querySelector(".swiper-button-next")},thumbs:{swiper:L}})}},pageProgress(){var e=document.querySelector(".progress-wrap"),t=document.querySelector(".progress-wrap path"),r=t.getTotalLength();null!=e&&(t.style.transition=t.style.WebkitTransition="none",t.style.strokeDasharray=r+" "+r,t.style.strokeDashoffset=r,t.getBoundingClientRect(),t.style.transition=t.style.WebkitTransition="stroke-dashoffset 10ms linear",window.addEventListener("scroll",function(a){var o=document.body.scrollTop||document.documentElement.scrollTop,i=document.documentElement.scrollHeight-document.documentElement.clientHeight;t.style.strokeDashoffset=r-o*r/i,(document.body.scrollTop||document.documentElement.scrollTop)>=50?e.classList.add("active-progress"):e.classList.remove("active-progress")}),e.addEventListener("click",function(e){e.preventDefault(),window.scroll({top:0,left:0,behavior:"smooth"})}))},bsTooltips(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{trigger:"hover"})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="white-tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{customClass:"white-tooltip",trigger:"hover",placement:"left"})})},bsPopovers(){[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(e){return new bootstrap.Popover(e)})},bsModal(){if(null!=document.querySelector(".modal-popup")){var e=new bootstrap.Modal(document.querySelector(".modal-popup"));setTimeout(function(){e.show()},200)}var t,r=window.innerWidth-document.body.clientWidth,a=document.querySelectorAll(".modal"),o=document.querySelector(".navbar.fixed"),i=document.querySelector(".progress-wrap");
1a.forEach(e=>{e.addEventListener("show.bs.modal",function(e){null!=o&&(o.style.paddingRight=r+"px"),null!=i&&(i.style.marginRight=r+"px")}),e.addEventListener("hidden.bs.modal",function(e){null!=o&&(o.style.paddingRight=""),null!=i&&(i.style.marginRight="")})})}};theme.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.