This file is indexed.

/usr/share/javascript/jquery-dotdotdot/jquery.dotdotdot.min.js is in libjs-jquery-dotdotdot 1.8.3+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
(function(j,d){if(j.fn.dotdotdot){return}j.fn.dotdotdot=function(x){if(this.length==0){j.fn.dotdotdot.debug('No element found for "'+this.selector+'".');return this}if(this.length>1){return this.each(function(){j(this).dotdotdot(x)})}var t=this;var y=t.contents();if(t.data("dotdotdot")){t.trigger("destroy.dot")}t.data("dotdotdot-style",t.attr("style")||"");t.css("word-wrap","break-word");if(t.css("white-space")==="nowrap"){t.css("white-space","normal")}t.bind_events=function(){t.bind("update.dot",function(A,C){t.removeClass("is-truncated");A.preventDefault();A.stopPropagation();switch(typeof v.height){case"number":v.maxHeight=v.height;break;case"function":v.maxHeight=v.height.call(t[0]);break;default:v.maxHeight=q(t);break}v.maxHeight+=v.tolerance;if(typeof C!="undefined"){if(typeof C=="string"||("nodeType" in C&&C.nodeType===1)){C=j("<div />").append(C).contents()}if(C instanceof j){y=C}}u=t.wrapInner('<div class="dotdotdot" />').children();u.contents().detach().end().append(y.clone(true)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var B=false,z=false;if(s.afterElement){B=s.afterElement.clone(true);B.show();s.afterElement.detach()}if(m(u,v)){if(v.wrap=="children"){z=c(u,v,B)}else{z=o(u,t,u,v,B)}}u.replaceWith(u.contents());u=null;if(j.isFunction(v.callback)){v.callback.call(t[0],z,y)}s.isTruncated=z;return z}).bind("isTruncated.dot",function(A,z){A.preventDefault();A.stopPropagation();if(typeof z=="function"){z.call(t[0],s.isTruncated)}return s.isTruncated}).bind("originalContent.dot",function(A,z){A.preventDefault();A.stopPropagation();if(typeof z=="function"){z.call(t[0],y)}return y}).bind("destroy.dot",function(z){z.preventDefault();z.stopPropagation();t.unwatch().unbind_events().contents().detach().end().append(y).attr("style",t.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",false)});return t};t.unbind_events=function(){t.unbind(".dot");return t};t.watch=function(){t.unwatch();if(v.watch=="window"){var B=j(window),A=B.width(),z=B.height();B.bind("resize.dot"+s.dotId,function(){if(A!=B.width()||z!=B.height()||!v.windowResizeFix){A=B.width();z=B.height();if(r){clearInterval(r)}r=setTimeout(function(){t.trigger("update.dot")},100)}})}else{w=l(t);r=setInterval(function(){if(t.is(":visible")){var C=l(t);if(w.width!=C.width||w.height!=C.height){t.trigger("update.dot");w=C}}},500)}return t};t.unwatch=function(){j(window).unbind("resize.dot"+s.dotId);if(r){clearInterval(r)}return t};var v=j.extend(true,{},j.fn.dotdotdot.defaults,x),s={},w={},r=null,u=null;if(!(v.lastCharacter.remove instanceof Array)){v.lastCharacter.remove=j.fn.dotdotdot.defaultArrays.lastCharacter.remove}if(!(v.lastCharacter.noEllipsis instanceof Array)){v.lastCharacter.noEllipsis=j.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis}s.afterElement=b(v.after,t);s.isTruncated=false;s.dotId=n++;t.data("dotdotdot",true).bind_events().trigger("update.dot");if(v.watch){t.watch()}return t};j.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:true,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:false,windowResizeFix:true};j.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","\u3000",",",";",".","!","?"],noEllipsis:[]}};j.fn.dotdotdot.debug=function(r){};var n=1;function c(u,y,x){var w=u.children(),r=false;u.empty();for(var t=0,s=w.length;t<s;t++){var v=w.eq(t);u.append(v);if(x){u.append(x)}if(m(u,y)){v.remove();r=true;break}else{if(x){x.detach()}}}return r}function o(s,t,y,x,w){var r=false;var v="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style";var u="script, .dotdotdot-keep";s.contents().detach().each(function(){var A=this,z=j(A);if(typeof A=="undefined"){return true}else{if(z.is(u)){s.append(z)}else{if(r){return true}else{s.append(z);if(w&&!z.is(x.after)&&!z.find(x.after).length){s[s.is(v)?"after":"append"](w)}if(m(y,x)){if(A.nodeType==3){r=e(z,t,y,x,w)}else{r=o(z,t,y,x,w)}}if(!r){if(w){w.detach()}}}}}});t.addClass("is-truncated");return r}function e(s,t,r,A,u){var E=s[0];if(!E){return false}var x=i(E),F=(x.indexOf(" ")!==-1)?" ":"\u3000",v=(A.wrap=="letter")?"":F,w=x.split(v),H=-1,z=-1,I=0,C=w.length-1;if(A.fallbackToLetter&&I==0&&C==0){v="";w=x.split(v);C=w.length-1}while(I<=C&&!(I==0&&C==0)){var B=Math.floor((I+C)/2);if(B==z){break}z=B;a(E,w.slice(0,z+1).join(v)+A.ellipsis);r.children().each(function(){j(this).toggle().toggle()});if(!m(r,A)){H=z;I=z}else{C=z;if(A.fallbackToLetter&&I==0&&C==0){v="";w=w[0].split(v);H=-1;z=-1;I=0;C=w.length-1}}}if(H!=-1&&!(w.length==1&&w[0].length==0)){x=g(w.slice(0,H+1).join(v),A);a(E,x)}else{var D=s.parent();s.detach();var G=(u&&u.closest(D).length)?u.length:0;if(D.contents().length>G){E=f(D.contents().eq(-1-G),t)}else{E=f(D,t,true);if(!G){D.detach()}}if(E){x=g(i(E),A);a(E,x);if(G&&u){var y=u.parent();j(E).parent().append(u);if(!j.trim(y.html())){y.remove()}}}}return true}function m(s,r){return s.innerHeight()>r.maxHeight}function g(r,s){while(j.inArray(r.slice(-1),s.lastCharacter.remove)>-1){r=r.slice(0,-1)}if(j.inArray(r.slice(-1),s.lastCharacter.noEllipsis)<0){r+=s.ellipsis}return r}function l(r){return{width:r.innerWidth(),height:r.innerHeight()}}function a(s,r){if(s.innerText){s.innerText=r}else{if(s.nodeValue){s.nodeValue=r}else{if(s.textContent){s.textContent=r}}}}function i(r){if(r.innerText){return r.innerText}else{if(r.nodeValue){return r.nodeValue}else{if(r.textContent){return r.textContent}else{return""}}}}function k(r){do{r=r.previousSibling}while(r&&r.nodeType!==1&&r.nodeType!==3);return r}function f(s,v,r){var u=s&&s[0],t;if(u){if(!r){if(u.nodeType===3){return u}if(j.trim(s.text())){return f(s.contents().last(),v)}}t=k(u);while(!t){s=s.parent();if(s.is(v)||!s.length){return false}t=k(s[0])}if(t){return f(j(t),v)}}return false}function b(r,s){if(!r){return false}if(typeof r==="string"){r=j(r,s);return(r.length)?r:false}return !r.jquery?false:r}function q(u){var v=u.innerHeight(),t=["paddingTop","paddingBottom"];for(var w=0,s=t.length;w<s;w++){var r=parseInt(u.css(t[w]),10);if(isNaN(r)){r=0}v-=r}return v}var p=j.fn.html;j.fn.html=function(r){if(r!=d&&!j.isFunction(r)&&this.data("dotdotdot")){return this.trigger("update",[r])}return p.apply(this,arguments)};var h=j.fn.text;j.fn.text=function(r){if(r!=d&&!j.isFunction(r)&&this.data("dotdotdot")){r=j("<div />").text(r).html();return this.trigger("update",[r])}return h.apply(this,arguments)}})(jQuery);jQuery(document).ready(function(a){a(".dot-ellipsis").each(function(){var f=a(this).hasClass("dot-resize-update");var d=a(this).hasClass("dot-timer-update");var c=0;var e=a(this).attr("class").split(/\s+/);a.each(e,function(h,i){var g=i.match(/^dot-height-(\d+)$/);if(g!==null){c=Number(g[1])}});var b=new Object();if(d){b.watch=true}if(f){b.watch="window"}if(c>0){b.height=c}a(this).dotdotdot(b)})});jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});