Permalink
Browse files

add minified version

1 parent 527fb4f commit 944d0ddd8c642e45aab1dde2efb4c91c3c3cbf6c @tholman committed Aug 19, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 intense.min.js
View
@@ -1 +1 @@
-window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}();var Intense=function(){"use strict";function e(e,i){for(var n in i)n in e||(e[n]=i[n]);return e}function i(e,i){for(var n in i)e.style[n]=i[n]}function n(e){var i=window.innerHeight/e.h;if(e.w*i>window.innerWidth)return{w:e.w*i,h:e.h*i,fit:!0};var n=window.innerWidth/e.w;return{w:e.w*n,h:e.h*n,fit:!1}}function t(e){var i;if(e.length)for(i=0;i<e.length;i++)o(e[i]);else o(e)}function o(e){(e.getAttribute("data-image")||e.src||e.href)&&e.addEventListener("click",function(i){"A"===e.tagName&&i.preventDefault(),T||f(this)},!1)}function r(){c()}function a(){cancelRequestAnimFrame(C)}function c(){C=requestAnimFrame(c),b()}function d(){M=document.body.style.overflow,document.body.style.overflow="hidden"}function u(){document.body.style.overflow=M}function s(e,i){if(e)e.classList.remove("loading"),e.classList.remove("viewing"),e.className+=" "+i;else{var n=document.querySelectorAll(".viewing");[].forEach.call(n,function(e){e.classList.remove("viewing")})}}function w(e,n){var t={backgroundColor:"rgba(0,0,0,0.8)",width:"100%",height:"100%",position:"fixed",top:"0px",left:"0px",overflow:"hidden",zIndex:"999999",margin:"0px",webkitTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",MozTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",transition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",webkitBackfaceVisibility:"hidden",opacity:"0"};D=document.createElement("figure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IFIuRME2K9b92MOHCAEOdZS66MJAAAp5iiX0DBI4+ANfUiIhKvMLxOfRVSXaFA2ZQnpmZWefIFY68vLxVMNf4CVc4vuV3wiVXOCZUjkLygXTvpRoTL9Uw9NrS0tJVX1/fc/78+ettbW2WIPXy5cvnRkdHP6rT6QK0Wm0QNkXhGo0mUrjikvTvpZpPQODCFLA4bw6ya06/OnHNqXnGrjnZIyWNXzyjC0GPYIk0fvHM+h+XXzxjnOCcNH7x7KqT/VrSfwQYAOAcX9HTDttYAAAAAElFTkSuQmCC" ) 25 25, no-drop'};i(Z,o);var r={fontFamily:'Georgia, Times, "Times New Roman", serif',position:"fixed",bottom:"0px",left:"0px",padding:"20px",color:"#fff",wordSpacing:"0.2px",webkitFontSmoothing:"antialiased",textShadow:"-1px 0px 1px rgba(0,0,0,0.4)"},a=document.createElement("figcaption");if(i(a,r),e){var c={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"40px",letterSpacing:"0.5px",lineHeight:"35px",textAlign:"left"},d=document.createElement("h1");i(d,c),d.innerHTML=e,a.appendChild(d)}if(n){var u={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"20px",letterSpacing:"0.1px",maxWidth:"500px",textAlign:"left",background:"none",marginTop:"5px"},s=document.createElement("h2");i(s,u),s.innerHTML=n,a.appendChild(s)}D.appendChild(a),l(),k.xCurr=k.xDest=window.innerWidth/2,k.yCurr=k.yDest=window.innerHeight/2,document.body.appendChild(D),setTimeout(function(){D.style.opacity="1"},10)}function m(){u(),v(),a(),document.body.removeChild(D),T=!1,s(!1)}function l(){var e=n(I);Z.width=e.w,Z.height=e.h,R=e.fit,J={w:Z.width,h:Z.height},z={w:window.innerWidth,h:window.innerHeight},Y={x:z.w-J.w,y:z.h-J.h}}function f(e){s(e,"loading");var i=e.getAttribute("data-image")||e.src||e.href,n=e.getAttribute("data-title")||e.title,t=e.getAttribute("data-caption"),o=new Image;o.onload=function(){I={w:o.width,h:o.height},Z=this,w(n,t),d(),p(),c(),s(e,"viewing")},o.src=i}function p(){D.addEventListener("mousemove",h,!1),D.addEventListener("touchmove",g,!1),window.addEventListener("resize",l,!1),window.addEventListener("keyup",x,!1),Z.addEventListener("click",m,!1)}function v(){D.removeEventListener("mousemove",h,!1),D.removeEventListener("touchmove",g,!1),window.removeEventListener("resize",l,!1),window.removeEventListener("keyup",x,!1),Z.removeEventListener("click",m,!1)}function h(e){k.xDest=e.clientX,k.yDest=e.clientY}function g(e){e.preventDefault(),k.xDest=e.touches[0].clientX,k.yDest=e.touches[0].clientY}function x(e){e.preventDefault(),e.keyCode===j&&m()}function b(){function e(e,i){return S?(i-e)/i:e/i}if(k.xCurr+=.05*(k.xDest-k.xCurr),k.yCurr+=.05*(k.yDest-k.yCurr),R===!0){if(F+=k.xCurr-F,k.xCurr!==E){var i=parseFloat(e(F,z.w));i=Y.x*i,Z.style.webkitTransform="translate("+i+"px, 0px)",Z.style.MozTransform="translate("+i+"px, 0px)",Z.style.msTransform="translate("+i+"px, 0px)",E=k.xCurr}}else if(R===!1&&(F+=k.yCurr-F,k.yCurr!==E)){var i=parseFloat(e(F,z.h));i=Y.y*i,Z.style.webkitTransform="translate( 0px, "+i+"px)",Z.style.MozTransform="translate( 0px, "+i+"px)",Z.style.msTransform="translate( 0px, "+i+"px)",E=k.yCurr}}function y(e){"invertInteractionDirection"in e&&(S=e.invertInteractionDirection)}function A(e,i){if(!e)throw"You need to pass an element!";i&&y(i),t(e)}var C,E,I,Z,D,M,j=27,k={xCurr:0,yCurr:0,xDest:0,yDest:0},R=!0,S=!1,F=0,J={w:0,h:0},z={w:0,h:0},Y={x:0,y:0},T=!1;return e(A,{resize:l,start:r,stop:a,config:y})}();"undefined"!=typeof module&&module.exports&&(module.exports=Intense);
+window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}();var Intense=function(){"use strict";function p(a,b){for(var c in b)c in a||(a[c]=b[c]);return a}function q(a,b){for(var c in b)a.style[c]=b[c]}function r(a){var b=window.innerHeight/a.h;if(a.w*b>window.innerWidth)return{w:a.w*b,h:a.h*b,fit:!0};var c=window.innerWidth/a.w;return{w:a.w*c,h:a.h*c,fit:!1}}function s(a){var b;if(a.length)for(b=0;b<a.length;b++)t(a[b]);else t(a)}function t(a){(a.getAttribute("data-image")||a.src||a.href)&&a.addEventListener("click",function(b){"A"===a.tagName&&b.preventDefault(),o||D(this)},!1)}function u(){w()}function v(){cancelRequestAnimFrame(e)}function w(){e=requestAnimFrame(w),J()}function x(){n=document.body.style.overflow,document.body.style.overflow="hidden"}function y(){document.body.style.overflow=n}function z(a,b){if(a)a.className=a.className.replace("intense--loading",""),a.className=a.className.replace("intense--viewing",""),a.className+=" "+b;else{var c=document.querySelectorAll(".intense--viewing");[].forEach.call(c,function(a){a.className=a.className.replace("intense--viewing","").trim()})}}function A(a,c){var d={backgroundColor:"rgba(0,0,0,0.8)",width:"100%",height:"100%",position:"fixed",top:"0px",left:"0px",overflow:"hidden",zIndex:"999999",margin:"0px",webkitTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",MozTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",transition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",webkitBackfaceVisibility:"hidden",opacity:"0"};k=document.createElement("figure"),k.appendChild(i),q(k,d);var e={cursor:'url( "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkI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zxjnOCcNH7x7KqT/VrSfwQYAOAcX9HTDttYAAAAAElFTkSuQmCC" ) 25 25, no-drop'};q(i,e);var f={fontFamily:'Georgia, Times, "Times New Roman", serif',position:"fixed",bottom:"0px",left:"0px",padding:"20px",color:"#fff",wordSpacing:"0.2px",webkitFontSmoothing:"antialiased",textShadow:"-1px 0px 1px rgba(0,0,0,0.4)"},g=document.createElement("figcaption");if(q(g,f),a){var h={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"40px",letterSpacing:"0.5px",lineHeight:"35px",textAlign:"left"},j=document.createElement("h1");q(j,h),j.innerHTML=a,g.appendChild(j)}if(c){var l={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"20px",letterSpacing:"0.1px",maxWidth:"500px",textAlign:"left",background:"none",marginTop:"5px"},m=document.createElement("h2");q(m,l),m.innerHTML=c,g.appendChild(m)}k.appendChild(g),C(),b.xCurr=b.xDest=window.innerWidth/2,b.yCurr=b.yDest=window.innerHeight/2,document.body.appendChild(k),setTimeout(function(){k.style.opacity="1"},10)}function B(){y(),F(),v(),document.body.removeChild(k),o=!1,z(!1)}function C(){var a=r(h);i.width=a.w,i.height=a.h,c=a.fit,j={w:i.width,h:i.height},l={w:window.innerWidth,h:window.innerHeight},m={x:l.w-j.w,y:l.h-j.h}}function D(a){z(a,"intense--loading");var b=a.getAttribute("data-image")||a.src||a.href,c=a.getAttribute("data-title")||a.title,d=a.getAttribute("data-caption"),e=new Image;e.onload=function(){h={w:e.width,h:e.height},i=this,A(c,d),x(),E(),w(),z(a,"intense--viewing")},e.src=b}function E(){k.addEventListener("mousemove",G,!1),k.addEventListener("touchmove",H,!1),window.addEventListener("resize",C,!1),window.addEventListener("keyup",I,!1),i.addEventListener("click",B,!1)}function F(){k.removeEventListener("mousemove",G,!1),k.removeEventListener("touchmove",H,!1),window.removeEventListener("resize",C,!1),window.removeEventListener("keyup",I,!1),i.removeEventListener("click",B,!1)}function G(a){b.xDest=a.clientX,b.yDest=a.clientY}function H(a){a.preventDefault(),b.xDest=a.touches[0].clientX,b.yDest=a.touches[0].clientY}function I(b){b.preventDefault(),b.keyCode===a&&B()}function J(){function e(a,b){return d?(b-a)/b:a/b}if(b.xCurr+=.05*(b.xDest-b.xCurr),b.yCurr+=.05*(b.yDest-b.yCurr),c===!0){if(g+=b.xCurr-g,b.xCurr!==f){var a=parseFloat(e(g,l.w));a=m.x*a,i.style.webkitTransform="translate("+a+"px, 0px)",i.style.MozTransform="translate("+a+"px, 0px)",i.style.msTransform="translate("+a+"px, 0px)",f=b.xCurr}}else if(c===!1&&(g+=b.yCurr-g,b.yCurr!==f)){var a=parseFloat(e(g,l.h));a=m.y*a,i.style.webkitTransform="translate( 0px, "+a+"px)",i.style.MozTransform="translate( 0px, "+a+"px)",i.style.msTransform="translate( 0px, "+a+"px)",f=b.yCurr}}function K(a){"invertInteractionDirection"in a&&(d=a.invertInteractionDirection)}function L(a,b){if(!a)throw"You need to pass an element!";b&&K(b),s(a)}var e,f,h,i,k,n,a=27,b={xCurr:0,yCurr:0,xDest:0,yDest:0},c=!0,d=!1,g=0,j={w:0,h:0},l={w:0,h:0},m={x:0,y:0},o=!1;return p(L,{resize:C,start:u,stop:v,config:K})}();"undefined"!=typeof module&&module.exports&&(module.exports=Intense);

0 comments on commit 944d0dd

Please sign in to comment.