/usr/share/javascript/img.srcset/img.srcset.min.js is in libjs-img.srcset 2.0.0~20131003~dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | /* imgsrcset - Img srcset polyfill for resolution responsive images. Authors & copyright (c) 2012: WebLinc, David Knight. */// Imgsrcset
(function(e){"use strict";var t=e.document.documentElement,n=0,r=[],i="",s=e.addEventListener||(i="on")&&e.attachEvent,o=e.removeEventListener||e.detachEvent,u=/[^\s]+/g,a=/[0-9\.]+/g,f=0,l=function(n){var r=n.indexOf(",")!==-1&&n.split(",")||[n],i=r.length-1,s=i,o=null,f=0,l="",c="";if(i<0)return;do{var o=r[s-i].match(u)||[],f=o.length;while(f--){var h=o[f],p=0,d=0;if(f>0){p=h.indexOf("w")!==-1&&(e.innerWidth||t.clientWidth)||h.indexOf("h")!==-1&&(e.innerHeight||t.clientHeight)||h.indexOf("x")!==-1&&(e.devicePixelRatio||1),d=Number(h.match(a));if(p&&d&&d>p)break}else l=h,c=r[i]}}while(i--);return l&&c&&{src:l,media:c}||!1},c=function(e){clearTimeout(f),f=setTimeout(function(){var e=null,t=n-1,i=t,s=!1;do{e=r[i-t];if(!e.element.parentNode){n--,e.splice(t,1);continue}s=l(e.media),s&&e.matches!==s.media?(e.matches=s.media,e.element.src=s.src):s||(e.matches=!1,e.src&&(e.element.src=e.src))}while(t--)},10)},h=function(){o(i+"load",h),e.Imgsrcset.parse(),c(),s(i+"resize",c),s(i+"orientationchange",c)};e.Imgsrcset={parse:function(){r=[];var t=e.document.getElementsByTagName("img")||[],i=t.length-1,s=i,o=null,u="";do{o=t[s-i],u=o.getAttribute("srcset")||"";if(!u)continue;n=r.push({element:o,media:u,matches:!1,src:o.getAttribute("src")||""})}while(i--)}},s(i+"load",h)})(window);
|