PageSourceSearch

https://albiceleste.cl/wp-content/cache/min/1/wp-content/plugins/gg-lightbox/ggbl-lightbox.js?ver=1766038466

js albiceleste.cl collected 2026-09-25 11:32:36 UTC 3,755 bytes, 8 lines download raw bytes

1jQuery(document).ready(function($){var current,size;$('.wp-block-gallery a').click(function(e){e.preventDefault();var image_href=$(this).attr("href");console.log(image_href);var slideNum=$('.wp-block-gallery a').index(this);console.log(slideNum);if($('#ggbl_lightbox').length>0){$('#ggbl_lightbox').fadeIn(300)}else{var lightbox='<div id="ggbl_lightbox">'+'<div class="ggbl_close"></div>'+'<ul id="ggbl_slider"></ul>'+'<div class="ggbl_nav">'+'<a href="#" class="ggbl_prev ggbl_slide-nav"></a>'+'<a href="#" class="ggbl_next ggbl_slide-nav"></a>'+'</div><!-- .ggbl_nav -->'+'</div><!-- #ggbl_lightbox -->';$('body').append(lightbox);$('body').addClass("ggbl_noscroll");$('.wp-block-gallery').find('.wp-block-image a').each(function(){var $href=$(this).attr('href');$('#ggbl_slider').append('<li>'+'<img src="'+$href+'">'+'</li>')})}
2size=$('#ggbl_slider > li').length;$('#ggbl_slider > li').hide();$('#ggbl_slider > li:eq('+slideNum+')').show();current=slideNum});$('body').on('click','#ggbl_lightbox',function(){$('#ggbl_lightbox').fadeOut(300);$('body').removeClass("ggbl_noscroll")});var swipeInProgress=!1;$('body').on('click','.ggbl_slide-nav',function(e){e.preventDefault();e.stopPropagation();var $this=$(this);var dest;if($this.hasClass('ggbl_prev')){dest=current-1;if(dest<0)dest=size-1}else{dest=current+1;if(dest>size-1)dest=0}
3if(!swipeInProgress){$('#ggbl_slider > li:eq('+current+')').fadeOut(750);$('#ggbl_slider > li:eq('+dest+')').fadeIn(750)}else{swipeInProgress=!1;$('#ggbl_slider > li:eq('+current+')').hide();$('#ggbl_slider > li:eq('+dest+')').show()}
4current=dest});document.onkeydown=function(e){e=e||window.event;var dest;if(e.keyCode=='37'){e.preventDefault();e.stopPropagation();dest=current-1;if(dest<0)dest=size-1;if(!swipeInProgress){$('#ggbl_slider > li:eq('+current+')').fadeOut(750);$('#ggbl_slider > li:eq('+dest+')').fadeIn(750)}else{swipeInProgress=!1;$('#ggbl_slider > li:eq('+current+')').hide();$('#ggbl_slider > li:eq('+dest+')').show()}
5current=dest}else if(e.keyCode=='39'){e.preventDefault();e.stopPropagation();dest=current+1;if(dest>size-1)dest=0;if(!swipeInProgress){$('#ggbl_slider > li:eq('+current+')').fadeOut(750);$('#ggbl_slider > li:eq('+dest+')').fadeIn(750)}else{swipeInProgress=!1;$('#ggbl_slider > li:eq('+current+')').hide();$('#ggbl_slider > li:eq('+dest+')').show()}
6current=dest}else if(e.keyCode=='27'){$('#ggbl_lightbox').fadeOut(300);$('body').removeClass("ggbl_noscroll")}};var touchStartX=null;var touchEndX=null;var swipeThreshold=50;$('body').on('touchstart','#ggbl_slider',function(e){if(e.originalEvent.touches.length===1){touchStartX=e.originalEvent.touches[0].clientX}});$('body').on('touchmove','#ggbl_slider',function(e){if(e.originalEvent.touches.length===1){touchEndX=e.originalEvent.touches[0].clientX}});$('body').on('touchend','#ggbl_slider',function(e){if(touchStartX!==null&&touchEndX!==null){var diff=touchStartX-touchEndX;if(Math.abs(diff)>swipeThreshold){var $slides=$('#ggbl_slider > li');var $currentSlide=$slides.eq(current);var dest,direction;if(diff>0){dest=current+1;if(dest>size-1)dest=0;direction='left'}else{dest=current-1;if(dest<0)dest=size-1;direction='right'}
7var $nextSlide=$slides.eq(dest);$('#ggbl_slider').css({position:'relative',overflow:'hidden'});$nextSlide.css({display:'block',position:'absolute',left:(direction==='left'?'100%':'-100%'),top:0,width:'100%'});$currentSlide.css({position:'absolute',left:0,top:0,width:'100%'}).animate({left:(direction==='left'?'-100%':'100%')},400,function(){$(this).hide().css({position:'',left:'',top:'',width:''})});$nextSlide.animate({left:'0%'},400,function(){$(this).css({position:'',left:'',top:'',width:''});$slides.not($(this)).hide()});current=dest;swipeInProgress=!0}}
8touchStartX=null;touchEndX=null})})

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.