PageSourceSearch

https://powiatstrzelecki.pl/min/?f=cms/assets/bootstrap/js/jquery.gallery.blueimp.init.js&v=1787809575

js powiatstrzelecki.pl collected 2026-10-02 20:34:00 UTC 7,414 bytes, 10 lines download raw bytes

1window.blueimpGallery=undefined;(function($){'use strict';$(document).ready(function(){const $gallery=$('#blueimp-gallery');if(!$gallery.length)return;function updateIndicatorArrows(){const $wrapper=$gallery.find('.indicator-wrapper');const $indicator=$wrapper.find('.indicator');if($indicator.length&&$indicator[0]){const isScrollable=$indicator[0].scrollWidth>$indicator[0].clientWidth;$wrapper.find('.indicator-prev, .indicator-next').css('visibility',isScrollable?'visible':'hidden');}}
2function announceStatus(message){const $status=$('#blueimp-gallery-status');if($status.length){$status.text(message);}}
3function stopProgressBar(){const $progressBar=$gallery.find('.slideshow-progress .progress-bar');$progressBar.stop(true).css('width','0%');}
4function startProgressBar(){const gallery=$gallery.data('gallery')||window.blueimpGallery;if(!gallery||!gallery.interval)return;const $progressBar=$gallery.find('.slideshow-progress .progress-bar');let interval=(gallery.options&&gallery.options.slideshowInterval)||$gallery.data('slideshowInterval')||$gallery.data('slideshow-interval')||5000;interval=parseInt(interval,10);if(isNaN(interval))interval=5000;if(interval<100)interval*=1000;const animationDuration=Math.max(0,interval-100);$progressBar.stop(true).css('width','0%').animate({width:'100%'},{duration:animationDuration,easing:'linear',queue:false});}
5$gallery.on('open',function(){window.blueimpGallery=$gallery.data('gallery');if(window.blueimpGallery&&window.blueimpGallery.container&&window.blueimpGallery.container[0]){window.blueimpGallery.container[0].ariaHidden=false;const isSingle=window.blueimpGallery.num<=1;$gallery.find('.prev, .next, .play-pause, .indicator-wrapper').toggle(!isSingle);if(isSingle){$gallery.addClass('blueimp-gallery-single');}else{$gallery.removeClass('blueimp-gallery-single');}}
6stopProgressBar();announceStatus('Galeria otwarta');setTimeout(()=>{$gallery.find('.indicator li').attr('tabindex','0').attr('role','button');updateIndicatorArrows();},100);}).on('slide',function(event,index){if(!window.blueimpGallery)return;stopProgressBar();let slideTitle=window.blueimpGallery.list[index]?.children[1]?.alt||window.blueimpGallery.list[index]?.title;const $title=$(window.blueimpGallery.titleElement);if(slideTitle&&$title.length){$title.text(slideTitle).scrollTop(0);$gallery.removeClass('blueimp-gallery-no-title');}else if($title.length){$gallery.addClass('blueimp-gallery-no-title');}
7announceStatus('Zdjęcie '+(index+1)+' z '+window.blueimpGallery.num+(slideTitle?': '+slideTitle:''));const $indicator=$gallery.find('.indicator');$indicator.children().attr('tabindex','0').attr('role','button');const activeIndicator=$indicator.children().get(index);if(activeIndicator&&$indicator.length){const container=$indicator[0];const item=activeIndicator;const scrollPos=item.offsetLeft-(container.clientWidth/2)+(item.clientWidth/2);container.scrollTo({left:scrollPos,behavior:'smooth'});const currentFocus=document.activeElement;if($(currentFocus).closest('.indicator').length||$(currentFocus).is('#blueimp-gallery')){activeIndicator.focus();}}
8updateIndicatorArrows();}).on('slideend',function(){const gallery=$gallery.data('gallery')||window.blueimpGallery;if(gallery&&gallery.interval){startProgressBar();}}).on('opened',function(){updateIndicatorArrows();const indicator=document.querySelector('#blueimp-gallery .indicator');if(indicator){indicator.addEventListener('wheel',function(e){if(e.deltaY!==0){e.preventDefault();indicator.scrollLeft+=e.deltaY;}},{passive:false});let isDown=false;let startX;let scrollLeft;let moved=false;indicator.addEventListener('mousedown',(e)=>{isDown=true;moved=false;indicator.classList.add('grabbing');startX=e.pageX-indicator.offsetLeft;scrollLeft=indicator.scrollLeft;});indicator.addEventListener('mouseleave',()=>{isDown=false;indicator.classList.remove('grabbing');});indicator.addEventListener('mouseup',(e)=>{isDown=false;indicator.classList.remove('grabbing');});indicator.addEventListener('mousemove',(e)=>{if(!isDown)return;const x=e.pageX-indicator.offsetLeft;const walk=(x-startX)*2;if(Math.abs(x-startX)>5){moved=true;e.preventDefault();indicator.scrollLeft=scrollLeft-walk;}});indicator.addEventListener('click',(e)=>{if(moved){e.preventDefault();e.stopPropagation();}},true);}
9const gallery=$gallery.data('gallery')||window.blueimpGallery;if(gallery&&gallery.interval){startProgressBar();}}).on('play',function(){$(this).find('.play-pause').attr('aria-label','Zatrzymaj pokaz slajdów');announceStatus('Pokaz slajdów uruchomiony');startProgressBar();}).on('pause',function(){$(this).find('.play-pause').attr('aria-label','Uruchom pokaz slajdów');announceStatus('Pokaz slajdów zatrzymany');stopProgressBar();}).on('close',function(){if(window.blueimpGallery&&window.blueimpGallery.container&&window.blueimpGallery.container[0]){window.blueimpGallery.container[0].ariaHidden=true;}
10$gallery.removeClass('blueimp-gallery-show-info');stopProgressBar();announceStatus('Galeria zamknięta');}).on('closed',function(){$('body').css('overflow','');}
10).on('slidecomplete',function(event,index,slide){if($(slide).hasClass('slide-error')){announceStatus('Błąd ładowania zdjęcia '+(index+1));}});$gallery.on('click','.indicator-next',function(e){e.preventDefault();e.stopImmediatePropagation();const $indicator=$gallery.find('.indicator');$indicator.animate({scrollLeft:'+=300'},300);});$gallery.on('click','.prev',function(e){e.preventDefault();e.stopImmediatePropagation();const gallery=$gallery.data('gallery')||window.blueimpGallery;gallery?.prev();});$gallery.on('click','.next',function(e){e.preventDefault();e.stopImmediatePropagation();const gallery=$gallery.data('gallery')||window.blueimpGallery;gallery?.next();});$gallery.on('click','.play-pause',function(e){e.preventDefault();e.stopImmediatePropagation();const gallery=$gallery.data('gallery')||window.blueimpGallery;if(gallery){if(gallery.interval){gallery.pause();$gallery.trigger('pause');}else{gallery.play();$gallery.trigger('play');}}});$gallery.on('click','.info',function(e){e.preventDefault();e.stopImmediatePropagation();const isShowing=$gallery.hasClass('blueimp-gallery-show-info');if(isShowing){$gallery.removeClass('blueimp-gallery-show-info');$(this).attr('aria-label','Pokaż opis zdjęcia').attr('aria-expanded','false');}else{$gallery.addClass('blueimp-gallery-show-info');$(this).attr('aria-label','Ukryj opis zdjęcia').attr('aria-expanded','true');}});$gallery.on('click','.fullscreen',function(e){e.preventDefault();e.stopImmediatePropagation();if(window.blueimpGallery){if(window.blueimpGallery.getFullScreenElement()){window.blueimpGallery.exitFullScreen();}else{window.blueimpGallery.requestFullScreen(window.blueimpGallery.container[0]);}}});$(document).on('fullscreenchange webkitfullscreenchange mozfullscreenchange MSFullscreenChange',function(){const $fsBtn=$gallery.find('.fullscreen');if(!$fsBtn.length)return;const isFS=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;if(isFS){$fsBtn.attr('aria-label','Wyłącz tryb pełnoekranowy');$fsBtn.find('.maximize-icon').hide();$fsBtn.find('.minimize-icon').show();}else{$fsBtn.attr('aria-label','Włącz tryb pełnoekranowy');$fsBtn.find('.maximize-icon').show();$fsBtn.find('.minimize-icon').hide();}});$(window).on('resize',function(){if($gallery.is(':visible')){updateIndicatorArrows();}});});})(jQuery);

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.