Permalink
Browse files

remove console log

  • Loading branch information...
1 parent f822122 commit 4f5ecc31b4f999a66fa9688a311b05b55cf073bb @tholman committed Jul 9, 2014
Showing with 1 addition and 2 deletions.
  1. +0 −1 GifLinks.js
  2. +1 −1 GifLinks.min.js
View
@@ -140,7 +140,6 @@ var GifLinks = (function() {
// Hide the container
function stopPartying() {
- console.log( "stop!" );
container.style[ 'display' ] = 'none';
container.style[ 'backgroundImage' ] = '';
}
View
@@ -1 +1 @@
-var GifLinks=function(){"use strict";function n(n,e){for(var t in e)t in n||(n[t]=e[t]);return n}function e(n,e){for(var t in e)n.style[t]=e[t]}function t(n,e){if(n.length)for(var t=0;t<n.length;t++)e===!0?o(n[t]):i(n[t]);else e===!0?o(n):i(n)}function o(n){var e=n.getAttribute("data-src");if(e){var t=new Image;t.onload=function(){n.className+=" preloaded",i(n)},t.src=e}}function i(n){n.addEventListener("mouseover",function(){c(this)},!1),n.addEventListener("touchstart",function(){c(this)},!1),n.addEventListener("mouseout",function(){s()},!1),n.addEventListener("touchmove",function(n){n.preventDefault(),s()},!1),n.addEventListener("click",function(){s()},!1),n.addEventListener("dblclick",function(){s()},!1),a(n)}function a(n){n.className+=" giflink ready",n.className+=n.href?" has-link":" no-link"}function r(){var n={backgroundPosition:"50% 50%",backgroundSize:"cover",pointerEvents:"none",position:"fixed",zIndex:"999999",display:"none",height:"100%",width:"100%",margin:"0px",left:"0px",top:"0px"};l=document.createElement("div"),e(l,n),u.appendChild(l)}function c(n){var e=n.getAttribute("data-src");e?(l.style.backgroundImage="url("+e+")",l.style.display="block"):console.log("Sorry, an element doesn't have a data-src!")}function s(){console.log("stop!"),l.style.display="none",l.style.backgroundImage=""}function d(n,e){u=document.body,r();var o=!1;e&&e.preload&&(o=!!e.preload),t(n,o)}var u,l;return n(d,{})}();
+var GifLinks=function(){"use strict";function n(n,e){for(var t in e)t in n||(n[t]=e[t]);return n}function e(n,e){for(var t in e)n.style[t]=e[t]}function t(n,e){if(n.length)for(var t=0;t<n.length;t++)e===!0?i(n[t]):o(n[t]);else e===!0?i(n):o(n)}function i(n){var e=n.getAttribute("data-src");if(e){var t=new Image;t.onload=function(){n.className+=" preloaded",o(n)},t.src=e}}function o(n){n.addEventListener("mouseover",function(){c(this)},!1),n.addEventListener("touchstart",function(){c(this)},!1),n.addEventListener("mouseout",function(){d()},!1),n.addEventListener("touchmove",function(n){n.preventDefault(),d()},!1),n.addEventListener("click",function(){d()},!1),n.addEventListener("dblclick",function(){d()},!1),a(n)}function a(n){n.className+=" giflink ready",n.className+=n.href?" has-link":" no-link"}function r(){var n={backgroundPosition:"50% 50%",backgroundSize:"cover",pointerEvents:"none",position:"fixed",zIndex:"999999",display:"none",height:"100%",width:"100%",margin:"0px",left:"0px",top:"0px"};l=document.createElement("div"),e(l,n),u.appendChild(l)}function c(n){var e=n.getAttribute("data-src");e?(l.style.backgroundImage="url("+e+")",l.style.display="block"):console.log("Sorry, an element doesn't have a data-src!")}function d(){l.style.display="none",l.style.backgroundImage=""}function s(n,e){u=document.body,r();var i=!1;e&&e.preload&&(i=!!e.preload),t(n,i)}var u,l;return n(s,{})}();

0 comments on commit 4f5ecc3

Please sign in to comment.