file ignored

This commit is contained in:
zotlabs 2019-07-31 16:53:56 -07:00
parent e163ece9e0
commit 5aea720a71
2 changed files with 1 additions and 3 deletions

View file

@ -1,3 +0,0 @@
*.swp
node_modules
pixelate.min.js

1
library/pixelate.js/pixelate.min.js vendored Normal file
View file

@ -0,0 +1 @@
!function(e,t){var a=function(){var a={value:.05,reveal:!0,revealonclick:!1},n=arguments[0]||{},i=this,e=i.parentNode;"object"!=typeof n&&(n={value:parseInt(arguments[0])}),n=function(){var e={};for(var t in a)i.hasAttribute("data-"+t)?e[t]=i.getAttribute("data-"+t):e[t]=t in n?n[t]:a[t];return e}();var t=i.width,r=i.height,d=!1,o=document.createElement("canvas");o.width=t,o.height=r;var l=o.getContext("2d");l.mozImageSmoothingEnabled=!1,l.webkitImageSmoothingEnabled=!1,l.imageSmoothingEnabled=!1;var u=t*n.value,c=r*n.value;l.drawImage(i,0,0,u,c),l.drawImage(o,0,0,u,c,0,0,o.width,o.height),i.style.display="none",e.insertBefore(o,i),!1!==n.revealonclick&&"false"!==n.revealonclick&&o.addEventListener("click",function(){(d=!d)?l.drawImage(i,0,0,t,r):(l.drawImage(i,0,0,u,c),l.drawImage(o,0,0,u,c,0,0,o.width,o.height))}),!1!==n.reveal&&"false"!==n.reveal&&(o.addEventListener("mouseenter",function(){d||l.drawImage(i,0,0,t,r)}),o.addEventListener("mouseleave",function(){d||(l.drawImage(i,0,0,u,c),l.drawImage(o,0,0,u,c,0,0,o.width,o.height))}))};"function"==typeof t&&t.fn.extend({pixelate:function(){var e=arguments;return this.each(function(){a.apply(this,e)})}}),document.addEventListener("DOMContentLoaded",function(){for(var e=document.querySelectorAll("img[data-pixelate]"),t=0;t<e.length;t++)e[t].addEventListener("load",function(){a.apply(this)})})}(window,"undefined"==typeof jQuery?null:jQuery);