PageSourceSearch

https://www.visaeurope.lu/etc.clientlibs/rvcom/rvcom-clientlibs/designs/contentTile.min.js

js visaeurope.lu collected 2026-10-02 04:53:48 UTC 6,662 bytes, 14 lines download raw bytes

1$.widget("visa.contentTile",{_create:function(){this._changeToDiv();this._cutCharacters()},_cutCharacters:function(){this.element.find(".meta").not(".link").dotdotdot({watch:"window"})},_changeToDiv:function(){var d=this._getUserAgent(),r=this.element.find("img");if("Safari"===d||"Trident"===d)d=r.attr("src"),d=d.replace(/\s/g,"%20"),d={background:"url("+d+") center","background-size":"cover"},r.parent().css(d),r.addClass("sr-only-img")},_getUserAgent:function(){return(navigator.userAgent.match(/(opera|chrome|safari|firefox|msie|trident)/i)||
2[])[1]}});$(document).ready(function(){$(".visa-content-tile").contentTile()});
3(function(d,r){function y(a,b,g,c,k){var l=!1;a.contents().detach().each(function(){var h=d(this);if("undefined"==typeof this)return!0;if(h.is("script, .dotdotdot-keep"))a.append(h);else{if(l)return!0;a.append(h);if(k&&!h.is(c.after)&&!h.find(c.after).length)a[a.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](k);v(g,c)&&(l=3==this.nodeType?E(h,b,g,c,k):y(h,b,g,c,k),l||(h.detach(),
4l=!0));l||k&&k.detach()}});b.addClass("is-truncated");return l}function E(a,b,g,c,k){var l=a[0];if(!l)return!1;var h=z(l),n=-1!==h.indexOf(" ")?" ":"\u3000";n="letter"==c.wrap?"":n;var e=h.split(n),f=-1,m=-1,p=0,q=e.length-1;c.fallbackToLetter&&0==p&&0==q&&(n="",e=h.split(n),q=e.length-1);for(;p<=q&&(0!=p||0!=q);){h=Math.floor((p+q)/2);if(h==m)break;m=h;x(l,e.slice(0,m+1).join(n)+c.ellipsis);g.children().each(function(){d(this).toggle().toggle()});v(g,c)?(q=m,c.fallbackToLetter&&0==p&&0==q&&(n="",
5e=e[0].split(n),m=f=-1,p=0,q=e.length-1)):p=f=m}-1==f||1==e.length&&0==e[0].length?(g=a.parent(),a.detach(),a=k&&k.closest(g).length?k.length:0,g.contents().length>a?l=w(g.contents().eq(-1-a),b):(l=w(g,b,!0),a||g.detach()),l&&(h=A(z(l),c),x(l,h),a&&k&&d(l).parent().append(k))):(h=A(e.slice(0,f+1).join(n),c),x(l,h));return!0}function v(a,b){return a.innerHeight()>b.maxHeight}function A(a,b){for(;-1<d.inArray(a.slice(-1),b.lastCharacter.remove);)a=a.slice(0,-1);0>d.inArray(a.slice(-1),b.lastCharacter.noEllipsis)&&
6(a+=b.ellipsis);return a}function B(a){return{width:a.innerWidth(),height:a.innerHeight()}}function x(a,b){a.innerText?a.innerText=b:a.nodeValue?a.nodeValue=b:a.textContent&&(a.textContent=b)}function z(a){return a.innerText?a.innerText:a.nodeValue?a.nodeValue:a.textContent?a.textContent:""}function C(a){do a=a.previousSibling;while(a&&1!==a.nodeType&&3!==a.nodeType);return a}function w(a,b,g){var c=a&&a[0];if(c){if(!g){if(3===c.nodeType)return c;if(a.text().trim())return w(a.contents().last(),b)}for(g=
7C(c);!g;){a=a.parent();if(a.is(b)||!a.length)return!1;g=C(a[0])}if(g)return w(d(g),b)}return!1}function F(a,b){return a?"string"===typeof a?(a=d(a,b),a.length?a:!1):a.jquery?a:!1:!1}if(!d.fn.dotdotdot){d.fn.dotdotdot=function(a){if(0==this.length)return d.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(1<this.length)return this.each(function(){d(this).dotdotdot(a)});var b=this;b.data("dotdotdot")&&b.trigger("destroy.dot");b.data("dotdotdot-style",b.attr("style")||"");b.css("word-wrap",
8"break-word");"nowrap"===b.css("white-space")&&b.css("white-space","normal");b.bind_events=function(){b.bind("update.dot",function(e,f){b.removeClass("is-truncated");e.preventDefault();e.stopPropagation();switch(typeof c.height){case "number":c.maxHeight=c.height;break;case "function":c.maxHeight=c.height.call(b[0]);break;default:e=c;for(var m=b.innerHeight(),p=["paddingTop","paddingBottom"],q=0,t=p.length;q<t;q++){var u=parseInt(b.css(p[q]),10);isNaN(u)&&(u=0);m-=u}e.maxHeight=m}c.maxHeight+=c.tolerance;
9if("undefined"!=typeof f){if("string"==typeof f||"nodeType"in f&&1===f.nodeType)f=d("\x3cdiv /\x3e").append(f).contents();f instanceof d&&(g=f)}n=b.wrapInner('\x3cdiv class\x3d"dotdotdot" /\x3e').children();n.contents().detach().end().append(g.clone(!0)).find("br").replaceWith("  \x3cbr /\x3e  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});f=m=!1;k.afterElement&&(m=k.afterElement.clone(!0),m.show(),k.afterElement.detach());if(v(n,c))if("children"==c.wrap){f=n;e=c;p=f.children();
10q=!1;f.empty();t=0;for(u=p.length;t<u;t++){var D=p.eq(t);f.append(D);m&&f.append(m);if(v(f,e)){D.remove();q=!0;break}else m&&m.detach()}f=q}else f=y(n,b,n,c,m);n.replaceWith(n.contents());n=null;d.isFunction(c.callback)&&c.callback.call(b[0],f,g);return k.isTruncated=f}).bind("isTruncated.dot",function(e,f){e.preventDefault();e.stopPropagation();"function"==typeof f&&f.call(b[0],k.isTruncated);return k.isTruncated}).bind("originalContent.dot",function(e,f){e.preventDefault();e.stopPropagation();"function"==
11typeof f&&f.call(b[0],g);return g}).bind("destroy.dot",function(e){e.preventDefault();e.stopPropagation();b.unwatch().unbind_events().contents().detach().end().append(g).attr("style",b.data("dotdotdot-style")||"").data("dotdotdot",!1)});return b};b.unbind_events=function(){b.unbind(".dot");return b};b.watch=function(){b.unwatch();if("window"==c.watch){var e=d(window),f=e.width(),m=e.height();e.bind("resize.dot"+k.dotId,function(){f==e.width()&&m==e.height()&&c.windowResizeFix||(f=e.width(),m=e.height(),
12h&&clearInterval(h),h=setTimeout(function(){b.trigger("update.dot")},100))})}else l=B(b),h=setInterval(function(){if(b.is(":visible")){var p=B(b);if(l.width!=p.width||l.height!=p.height)b.trigger("update.dot"),l=p}},500);return b};b.unwatch=function(){d(window).unbind("resize.dot"+k.dotId);h&&clearInterval(h);return b};var g=b.contents(),c=d.extend(!0,{},d.fn.dotdotdot.defaults,a),k={},l={},h=null,n=null;c.lastCharacter.remove instanceof Array||(c.lastCharacter.remove=d.fn.dotdotdot.defaultArrays.lastCharacter.remove);
13c.lastCharacter.noEllipsis instanceof Array||(c.lastCharacter.noEllipsis=d.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis);k.afterElement=F(c.after,b);k.isTruncated=!1;k.dotId=G++;b.data("dotdotdot",!0).bind_events().trigger("update.dot");c.watch&&b.watch();return b};d.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0};d.fn.dotdotdot.defaultArrays={lastCharacter:{remove:" \u3000,;.!?".split(""),
14noEllipsis:[]}};d.fn.dotdotdot.debug=function(a){};var G=1,H=d.fn.html;d.fn.html=function(a){return a!=r&&!d.isFunction(a)&&this.data("dotdotdot")?this.trigger("update",[a]):H.apply(this,arguments)};var I=d.fn.text;d.fn.text=function(a){return a!=r&&!d.isFunction(a)&&this.data("dotdotdot")?(a=d("\x3cdiv /\x3e").text(a).html(),this.trigger("update",[a])):I.apply(this,arguments)}}})(jQuery);

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.