PageSourceSearch

https://www.melodia.com.br/js/jquery.BlackAndWhite.min.js

js melodia.com.br collected 2026-10-02 06:35:16 UTC 2,887 bytes, 1 lines download raw bytes

1!function(x){x.fn.extend({BlackAndWhite:function(t){"use strict";function u(e){if(v[e]||""===v[e])return v[e]+e;var t=document.createElement("div"),n=["","Moz","Webkit","O","ms","Khtml"];for(var i in n)if(void 0!==t.style[n[i]+e])return v[e]=n[i],n[i]+e;return e.toLowerCase()}function n(e){x(e.currentTarget).find(".BWfade").stop(!0,!0)[m?"fadeOut":"fadeIn"](f)}function i(e){x(e.currentTarget).find(".BWfade").stop(!0,!0)[m?"fadeIn":"fadeOut"](c)}function l(e){"function"==typeof t.onImageReady&&t.onImageReady(e)}function a(e,t){var n=e[0],i=n.src,a=e.width(),o=e.height(),r=e.position(),s={position:"absolute",top:r.top,left:r.left,display:m?"none":"block"};if(y&&!w){var d=n.width,c=n.height;x('<canvas class="BWfade" width="'+d+'" height="'+c+'"></canvas>').prependTo(t);var f=t.find("canvas");f.css(s),function(e,t,n,i){var a=t.getContext("2d"),o=0;a.drawImage(e,0,0,n,i);var r=a.getImageData(0,0,n,i),s=r.data,d=s.length;if(b)B.push({imageData:r,ctx:a,img:e});else{for(;o<d;o+=4){var c=.3*s[o]+.59*s[o+1]+.11*s[o+2];s[o]=~~(c*g+s[o]*(1-g)),s[o+1]=~~(c*g+s[o+1]*(1-g)),s[o+2]=~~(c*g+s[o+2]*(1-g))}a.putImageData(r,0,0),l(e)}}(n,f[0],d,c)}else s[u("Filter")]="grayscale("+100*g+"%)",x("<img src="+i+' width="'+a+'" height="'+o+'" class="BWFilter BWfade" /> ').prependTo(t),x(".BWFilter").css(x.extend(s,{filter:"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"})),l(n)}var e,o=this,r=(t=x.extend({hoverEffect:!0,webworkerPath:!1,responsive:!0,invertHoverEffect:!1,speed:500,onImageReady:null,intensity:1},t)).hoverEffect,s=t.webworkerPath,m=t.invertHoverEffect,d=t.responsive,g="number"==typeof t.intensity&&t.intensity<1&&0<t.intensity?t.intensity:1,c=x.isPlainObject(t.speed)?t.speed.fadeIn:t.speed,f=x.isPlainObject(t.speed)?t.speed.fadeOut:t.speed,h=!(!document.all||window.opera||!window.XMLHttpRequest),p=" -webkit- -moz- -o- -ms- ".split(" "),v={},w=((e=document.createElement("div")).style.cssText=p.join("filter:blur(2px); "),!!e.style.length&&(void 0===document.documentMode||9<document.documentMode)),y=!!document.createElement("canvas").getContext,I=x(window),W="undefined"!=typeof Worker,B=(u("Filter"),[]),b=!(!W||!s)&&new Worker(s+"BnWWorker.js"),k=function(){if(!B.length)return b.terminate&&b.terminate(),void(b.close&&b.close());b.postMessage({imgData:B[0].imageData,intensity:g}),b.onmessage=function(e){B[0].ctx.putImageData(e.data,0,0),l(B[0].img),B.splice(0,1),k()}};return this.init=function(e){o.each(function(e,t){var n=x(t),i=n.find("img");i.width()?a(i,n):i.on("load",function(){a(i,n)})}),b&&k(),r&&(o.on("mouseleave",n),o.on("mouseenter",i)),d&&I.on("resize orientationchange",o.resizeImages)},this.resizeImages=function(){o.each(function(e,t){var n=x(t).find("img:not(.BWFilter)"),i=h?x(n).prop("width"):x(n).width(),a=h?x(n).prop("height"):x(n).height();x(this).find(".BWFilter, canvas").css({width:i,height:a})})},this.init(t)}})}(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.