PageSourceSearch

https://moreholiday.es/wp-content/litespeed/js/d275f654ea17457e4be1ed8cf9a942df.js?ver=942df

js moreholiday.es collected 2026-10-09 22:01:58 UTC 3,081 bytes, 16 lines download raw bytes

1/**
2 * Dense - Device pixel ratio aware images
3 *
4 * @link    http://dense.rah.pw
5 * @license MIT
6 */
7(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else{factory(window.jQuery||window.Zepto)}}(function($){'use strict';var pathStack=[],methods={},regexHasProtocol=/^([a-z]:)?\/\//i,regexSuffix=/\.\w+$/,devicePixelRatio;methods.init=function(options){options=$.extend({ping:null,dimensions:'preserve',glue:'_',skipExtensions:['svg']},options);this.each(function(){var $this=$(this);if(!$this.is('img')||$this.hasClass('dense-image')){return}
8$this.addClass('dense-image dense-loading');var image=methods.getImageAttribute.call(this),originalImage=$this.attr('src'),ping=!1,updateImage;if(!image){if(!originalImage||devicePixelRatio===1||$.inArray(originalImage.split('.').pop().split(/[\?\#]/).shift(),options.skipExtensions)!==-1){$this.removeClass('dense-image dense-loading');return}
9image=originalImage.replace(regexSuffix,function(extension){return options.glue+devicePixelRatio+'x'+extension});ping=options.ping!==!1&&$.inArray(image,pathStack)===-1&&(options.ping===!0||!regexHasProtocol.test(image)||image.indexOf('//'+document.domain)===0||image.indexOf(document.location.protocol+'//'+document.domain)===0)}
10updateImage=function(){var readyImage=function(){$this.removeClass('dense-loading').addClass('dense-ready').trigger('denseRetinaReady.dense')};$this.attr('src',image);if(options.dimensions==='update'){$this.dense('updateDimensions').one('denseDimensionChanged',readyImage)}else{if(options.dimensions==='remove'){$this.removeAttr('width height')}
11readyImage()}};if(ping){$.ajax({url:image,type:'HEAD'}).done(function(data,textStatus,jqXHR){var type=jqXHR.getResponseHeader('Content-type');if(!type||type.indexOf('image/')===0){pathStack.push(image);updateImage()}})}else{updateImage()}});return this};methods.updateDimensions=function(){return this.each(function(){var img,$this=$(this),src=$this.attr('src');if(src){img=new Image();img.src=src;$(img).on('load.dense',function(){$this.attr({width:img.width,height:img.height}).trigger('denseDimensionChanged.dense')})}})};methods.devicePixelRatio=function(){var pixelRatio=1;if($.type(window.devicePixelRatio)!=='undefined'){pixelRatio=window.devicePixelRatio}else if($.type(window.matchMedia)!=='undefined'){$.each([1.3,2,3,4,5,6],function(key,ratio){var mediaQuery=['(-webkit-min-device-pixel-ratio: '+ratio+')','(min-resolution: '+Math.floor(ratio*96)+'dpi)','(min-resolution: '+ratio+'dppx)'].join(',');if(!window.matchMedia(mediaQuery).matches){return!1}
12pixelRatio=ratio})}
13return Math.ceil(pixelRatio)};methods.getImageAttribute=function(){var $this=$(this).eq(0),image=!1,url;for(var i=1;i<=devicePixelRatio;i++){url=$this.attr('data-'+i+'x');if(url){image=url}}
14return image};devicePixelRatio=methods.devicePixelRatio();$.fn.dense=function(method,options){if($.type(method)!=='string'||$.type(methods[method])!=='function'){options=method;method='init'}
15return methods[method].call(this,options)};$(function(){$('body.dense-retina img').dense()})}))
16;

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.