From e2e6527ddf0716bbd3ce105de9e2a0ddba5013fc Mon Sep 17 00:00:00 2001 From: Jan Rembold Date: Tue, 26 Sep 2017 11:10:46 +0200 Subject: [PATCH] run build task --- build/jquery.responsiveImage.map | 2 +- build/jquery.responsiveImage.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/jquery.responsiveImage.map b/build/jquery.responsiveImage.map index aa0c9ba..2369c03 100644 --- a/build/jquery.responsiveImage.map +++ b/build/jquery.responsiveImage.map @@ -1 +1 @@ -{"version":3,"sources":["../src/jquery.responsiveImage.js"],"names":["$","window","document","undefined","Plugin","element","options","self","this","$element","extend","defaults","sources","dpr","getDpr","attributeCount","attributes","length","data","sourcePrefix","init","pluginName","source","container","minWidthDefault","maxWidthDefault","Number","MAX_VALUE","minDprDefault","resizeEvent","preload","autoDpr","onGetWidth","onLoadSources","prototype","loadSources","containerSelector","attr","$container","parents","loadResponsiveImage","initResizeEvent","isFunction","find","each","$source","src","minWidth","maxWidth","minDpr","i","attribute","push","sort","a","b","newSource","targetWidth","getWidth","sourceCount","$currentSource","$image","createImageWithAttributes","setNewSource","html","trigger","width","call","innerWidth","documentElement","clientWidth","body","screen","systemXDPI","logicalXDPI","devicePixelRatio","on","off","get","complete","proxy","fn","jQuery"],"mappings":";;;CAGA,SAAYA,EAAGC,EAAQC,EAAUC,GAC7B,YAuBA,SAASC,GAASC,EAASC,GACvB,GAAIC,GAAOC,IACXD,GAAKE,SAAWT,EAAEK,GAClBE,EAAKD,QAAUN,EAAEU,UAAYC,EAAUL,GAEvCC,EAAKK,WACLL,EAAKM,IAAMN,EAAKO,SAChBP,EAAKQ,eAAiBR,EAAKD,QAAQU,WAAWC,OAEQ,mBAA1CV,GAAKE,SAASS,KAAK,mBAC3BX,EAAKD,QAAQa,aAAeZ,EAAKE,SAASS,KAAK,kBAGnDX,EAAKa,OAjCT,GAAIC,GAAa,kBACbV,GACIW,OAAoB,SACpBH,aAAoB,GACpBI,UAAoB,KAEpBC,g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iBAGX,GAGXb,0BAA2B,SAASxC,GAMhC,IAAI,GAJAf,GAAOC,KACPqD,EAAS7D,EAAE,UAGPkD,EAAE,EAAGA,EAAE3C,EAAKQ,eAAgBmC,IAAK,CACrC,GAAIC,GAAY5C,EAAKD,QAAQU,WAAWkC,EACP,oBAAvB5B,GAAO6B,IAAqD,KAAtB7B,EAAO6B,IACnDU,EAAOxB,KAAKc,EAAW7B,EAAO6B,IAqBtC,MAhBAU,GAAOe,GAAG,OAAQ,WACdf,EAAOgB,IAAI,QACXtE,EAAKE,SAASwD,QAAQ,+BAGlB1D,EAAKD,QAAQwB,SACbvB,EAAKwD,aAAcF,KAG1BxB,KAAK,MAAOf,EAAOwB,KAGhBe,EAAOiB,IAAI,GAAGC,UACdlB,EAAOI,QAAQ,QAGZJ,GAGXpB,gBAAiB,WACb,GAAIlC,GAAOC,IAGsB,MAA7BD,EAAKD,QAAQuB,aACb7B,EAAEC,GAAQ2E,GAAGrE,EAAKD,QAAQuB,YAAa7B,EAAEgF,MAAMzE,EAAKiC,oBAAqBjC,OAKrFP,EAAEiF,GAAI5D,GAAe,SAAWf,GAC5B,MAAOE,MAAKoC,KAAK,WACP5C,EAAEkB,KAAMV,KAAM,UAAYa,KAC5BrB,EAAEkB,KAAMV,KAAM,UAAYa,EAAY,GAAIjB,GAAQI,KAAMF,IACxDN,EAAEQ,MAAMyD,QAAQ,SAAS5C,IAE7BrB,EAAEC,GAAQgE,QAAQ,aAAa5C,OAIvC6D,OAAQjF,OAAQC","file":"jquery.responsiveImage.min.js"} \ No newline at end of file +{"version":3,"sources":["../src/jquery.responsiveImage.js"],"names":["$","window","document","undefined","Plugin","element","options","self","this","$element","extend","defaults","sources","dpr","getDpr","attributeCount","attributes","length","data","sourcePrefix","init","pluginName","source","container","minWidthDefault","maxWidthDefault","Number","MAX_VALUE","minDprDefault","resizeEvent","preload","autoDpr","onGetWidth","onLoadSources","prototype","loadSources","containerSelector","attr","$container","parents","loadResponsiveImage","initResizeEvent","isFunction","find","each","$source","src","minWidth","maxWidth","minDpr","i","attribute","push","sort","a","b","newSource","targetWidth","getWidth","sourceCount","$currentSource","$image","createImageWithAttributes","setNewSource","html","trigger","width","call","innerWidth","documentElement","clientWidth","body","screen","systemXDPI","logicalXDPI","devicePixelRatio","on","off","get","complete","proxy","fn","jQuery"],"mappings":";;;CAGA,SAAYA,EAAGC,EAAQC,EAAUC,GAC7B,YAuBA,SAASC,GAASC,EAASC,GACvB,GAAIC,GAAOC,IACXD,GAAKE,SAAWT,EAAEK,GAClBE,EAAKD,QAAUN,EAAEU,UAAYC,EAAUL,GAEvCC,EAAKK,WACLL,EAAKM,IAAMN,EAAKO,SAChBP,EAAKQ,eAAiBR,EAAKD,QAAQU,WAAWC,OAEQ,mBAA1CV,GAAKE,SAASS,KAAK,mBAC3BX,EAAKD,QAAQa,aAAeZ,EAAKE,SAASS,KAAK,kBAGnDX,EAAKa,OAjCT,GAAIC,GAAa,kBACbV,GACIW,OAAoB,SACpBH,aAAoB,GACpBI,UAAoB,KAEpBC,gBAAoB,EACpBC,gBAAoBC,OAAOC,UAC3BC,cAAoB,EAEpBZ,YAAqB,QAAS,MAAO,QAAS,QAAS,UACvDa,YAAoB,SACpBC,SAAoB,EACpBC,SAAoB,EAEpBC,WAAoB,KACpBC,cAAoB,KAqB5BjC,GAAEU,OAAON,EAAO8B,WACZd,KAAM,WACF,GAAIb,GAAOC,IAIX,IADAD,EAAKK,QAAUL,EAAK4B,cACO,IAAxB5B,EAAKK,QAAQK,OAAhB,CAKA,GAAImB,GAAoB7B,EAAKE,SAAS4B,KAAK,mBAAqB9B,EAAKD,QAAQiB,SAC1Ea,KACC7B,EAAK+B,WAAa/B,EAAKE,SAAS8B,QAAQH,IAI5C7B,EAAKiC,sBAGLjC,EAAKkC,oBAGTN,YAAa,WACT,GAAI5B,GAAOC,KACPI,IA2CJ,OAzCIZ,GAAE0C,WAAYnC,EAAKD,QAAQ2B,eAG3BrB,EAAUL,EAAKD,QAAQ2B,cAA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,IAGsB,MAA7BD,EAAKD,QAAQuB,aACb7B,EAAEC,GAAQ2E,GAAGrE,EAAKD,QAAQuB,YAAa7B,EAAEgF,MAAMzE,EAAKiC,oBAAqBjC,OAKrFP,EAAEiF,GAAI5D,GAAe,SAAWf,GAC5B,MAAOE,MAAKoC,KAAK,WACP5C,EAAEkB,KAAMV,KAAM,UAAYa,KAC5BrB,EAAEkB,KAAMV,KAAM,UAAYa,EAAY,GAAIjB,GAAQI,KAAMF,IACxDN,EAAEQ,MAAMyD,QAAQ,SAAS5C,IAE7BrB,EAAEC,GAAQgE,QAAQ,aAAa5C,OAIvC6D,OAAQjF,OAAQC","file":"jquery.responsiveImage.min.js"} \ No newline at end of file diff --git a/build/jquery.responsiveImage.min.js b/build/jquery.responsiveImage.min.js index 01cc829..cac55ca 100644 --- a/build/jquery.responsiveImage.min.js +++ b/build/jquery.responsiveImage.min.js @@ -1,5 +1,5 @@ /*! jquery-responsive-image - v1.4.1 - 2017-09-26 * Copyright (c) 2017 Jan Rembold ; License: MIT */ -!function(a,b,c,d){"use strict";function e(b,c){var d=this;d.$element=a(b),d.options=a.extend({},g,c),d.sources=[],d.dpr=d.getDpr(),d.attributeCount=d.options.attributes.length,"undefined"!=typeof d.$element.data("source-prefix")&&(d.options.sourcePrefix=d.$element.data("source-prefix")),d.init()}var f="responsiveImage",g={source:"> span",sourcePrefix:"",container:null,minWidthDefault:0,maxWidthDefault:Number.MAX_VALUE,minDprDefault:1,attributes:["title","alt","class","width","height"],resizeEvent:"resize",preload:!1,autoDpr:!1,onGetWidth:null,onLoadSources:null};a.extend(e.prototype,{init:function(){var a=this;if(a.sources=a.loadSources(),0!==a.sources.length){var b=a.$element.attr("data-container")||a.options.container;b&&(a.$container=a.$element.parents(b)),a.loadResponsiveImage(),a.initResizeEvent()}},loadSources:function(){var b=this,c=[];return a.isFunction(b.options.onLoadSources)?c=b.options.onLoadSources(b):b.$element.find(b.options.source).each(function(){var d=a(this);if(d.data("src")){for(var e={src:b.options.sourcePrefix+d.data("src"),minWidth:d.data("min-width")||b.options.minWidthDefault,maxWidth:d.data("max-width")||b.options.maxWidthDefault,minDpr:d.data("min-dpr")||b.options.minDprDefault},f=0;fe;e++)if(b.sources[e].minWidth<=c&&b.sources[e].maxWidth>c&&b.sources[e].minDpr<=b.dpr){a=b.sources[e];break}if(a!==b.$currentSource){b.$currentSource=a;var f=b.createImageWithAttributes(a);b.options.preload||b.setNewSource(f)}},setNewSource:function(a){var b=this;b.$element.html(a),b.$element.trigger("new.source."+f)},getWidth:function(){var d,e=this;return d=a.isFunction(e.options.onGetWidth)?e.options.onGetWidth.call(this):e.$container?e.$container.width():b.innerWidth||c.documentElement.clientWidth||c.body.clientWidth,e.options.autoDpr&&(d*=e.dpr),d},getDpr:function(){return b.screen.systemXDPI!==d&&b.screen.logicalXDPI!==d&&b.screen.systemXDPI>b.screen.logicalXDPI?b.screen.systemXDPI/b.screen.logicalXDPI:b.devicePixelRatio!==d?b.devicePixelRatio:1},createImageWithAttributes:function(b){for(var c=this,d=a(""),e=0;e span",sourcePrefix:"",container:null,minWidthDefault:0,maxWidthDefault:Number.MAX_VALUE,minDprDefault:1,attributes:["title","alt","class","width","height"],resizeEvent:"resize",preload:!1,autoDpr:!1,onGetWidth:null,onLoadSources:null};a.extend(e.prototype,{init:function(){var a=this;if(a.sources=a.loadSources(),0!==a.sources.length){var b=a.$element.attr("data-container")||a.options.container;b&&(a.$container=a.$element.parents(b)),a.loadResponsiveImage(),a.initResizeEvent()}},loadSources:function(){var b=this,c=[];return a.isFunction(b.options.onLoadSources)?c=b.options.onLoadSources(b):b.$element.find(b.options.source).each(function(){var d=a(this);if(d.data("src")){for(var e={src:b.options.sourcePrefix+d.data("src"),minWidth:d.data("min-width")||b.options.minWidthDefault,maxWidth:d.data("max-width")||b.options.maxWidthDefault,minDpr:d.data("min-dpr")||b.options.minDprDefault},f=0;fe;e++)if(b.sources[e].minWidth<=c&&b.sources[e].maxWidth>c&&b.sources[e].minDpr<=b.dpr){a=b.sources[e];break}if(a!==b.$currentSource){b.$currentSource=a;var f=b.createImageWithAttributes(a);b.options.preload||b.setNewSource(f)}},setNewSource:function(a){var b=this;b.$element.html(a),b.$element.trigger("new.source."+f)},getWidth:function(){var d,e=this;return d=a.isFunction(e.options.onGetWidth)?e.options.onGetWidth.call(this):e.$container?e.$container.width():b.innerWidth||c.documentElement.clientWidth||c.body.clientWidth,e.options.autoDpr&&(d*=e.dpr),d},getDpr:function(){var a=1;return b.screen.systemXDPI!==d&&b.screen.logicalXDPI!==d&&b.screen.systemXDPI>b.screen.logicalXDPI?a=b.screen.systemXDPI/b.screen.logicalXDPI:b.devicePixelRatio!==d&&(a=b.devicePixelRatio),a>=1?a:1},createImageWithAttributes:function(b){for(var c=this,d=a(""),e=0;e