Permalink
Browse files

fix: add non minified version to build and add source-maps to dist

  • Loading branch information...
1 parent 4aff01d commit fe7e7afafc01213d0cfb7b816ed4b6c16e4fc43f @meandmax committed Aug 26, 2016
Showing with 1,757 additions and 8 deletions.
  1. +880 −1 dist/jquery.lory.js
  2. +2 −0 dist/jquery.lory.min.js
  3. +1 −0 dist/jquery.lory.min.js.map
  4. +861 −1 dist/lory.js
  5. +2 −0 dist/lory.min.js
  6. +1 −0 dist/lory.min.js.map
  7. +2 −2 index.html
  8. +2 −1 package.json
  9. +1 −1 webpack.config.base.js
  10. +5 −2 webpack.config.prod.js
View
Oops, something went wrong.
@@ -0,0 +1,2 @@
+!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){e.fn.lory=function(t){return this.each(function(){var n;e.data(this,"lory")||(n=e.extend({},t,e(this).data()),e.data(this,"lory",(0,o.lory)(this,n)))})}}var o=n(1);"undefined"!=typeof jQuery&&i(jQuery)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(e,t){var n=D,i=n.classNameActiveSlide;e.forEach(function(e,t){e.classList.contains(i)&&e.classList.remove(i)}),e[t].classList.add(i)}function i(e){var t=D,n=t.infinite,i=e.slice(0,n),o=e.slice(e.length-n,e.length);return i.forEach(function(e){var t=e.cloneNode(!0);B.appendChild(t)}),o.reverse().forEach(function(e){var t=e.cloneNode(!0);B.insertBefore(t,B.firstChild)}),B.addEventListener(O.transitionEnd,y),v.call(B.children)}function o(t,n,i){(0,c["default"])(e,t+".lory."+n,i)}function a(e,t,n){var i=B&&B.style;i&&(i[O.transition+"TimingFunction"]=n,i[O.transition+"Duration"]=t+"ms",O.hasTranslate3d?i[O.transform]="translate3d("+e+"px, 0, 0)":i[O.transform]="translate("+e+"px, 0)")}function d(e,t){var i=D,r=i.slideSpeed,s=i.slidesToScroll,d=i.infinite,c=i.rewind,l=i.rewindSpeed,u=i.ease,f=i.classNameActiveSlide,m=r,h=t?A+1:A-1,p=Math.round(M-S);o("before","slide",{index:A,nextSlide:h}),"number"!=typeof e&&(e=t?A+s:A-s),e=Math.min(Math.max(e,0),j.length-1),d&&void 0===t&&(e+=d);var E=Math.min(Math.max(j[e].offsetLeft*-1,p*-1),0);c&&Math.abs(C.x)===p&&t&&(E=0,e=0,m=l),a(E,m,u),C.x=E,j[e].offsetLeft<=p&&(A=e),!d||e!==j.length-d&&0!==e||(t&&(A=d),t||(A=j.length-2*d),C.x=j[A].offsetLeft*-1,P=function(){a(j[A].offsetLeft*-1,0,void 0)}),f&&n(v.call(j),A),o("after","slide",{currentSlide:A})}function l(){o("before","init"),O=(0,s["default"])(),D=r({},u["default"],t);var a=D,d=a.classNameFrame,c=a.classNameSlideContainer,l=a.classNamePrevCtrl,m=a.classNameNextCtrl,h=a.enableMouseEvents,b=a.classNameActiveSlide;_=e.getElementsByClassName(d)[0],B=_.getElementsByClassName(c)[0],k=e.getElementsByClassName(l)[0],T=e.getElementsByClassName(m)[0],C={x:B.offsetLeft,y:B.offsetTop},j=D.infinite?i(v.call(B.children)):v.call(B.children),f(),b&&n(j,A),k&&T&&(k.addEventListener("click",p),T.addEventListener("click",E)),B.addEventListener("touchstart",x),h&&(B.addEventListener("mousedown",x),B.addEventListener("click",g)),D.window.addEventListener("resize",N),o("after","init")}function f(){var e=D,t=e.infinite,i=e.ease,o=e.rewindSpeed,r=e.classNameActiveSlide;M=B.getBoundingClientRect().width||B.offsetWidth,S=_.getBoundingClientRect().width||_.offsetWidth,S===M&&(M=j.reduce(function(e,t){return e+t.getBoundingClientRect().width||t.offsetWidth},0)),A=0,t?(a(j[A+t].offsetLeft*-1,0,null),A+=t,C.x=j[A].offsetLeft*-1):a(0,o,i),r&&n(v.call(j),A)}function m(e){d(e)}function h(){return A-D.infinite||0}function p(){d(!1,!1)}function E(){d(!1,!0)}function b(){o("before","destroy"),B.removeEventListener(O.transitionEnd,y),B.removeEventListener("touchstart",x),B.removeEventListener("touchmove",L),B.removeEventListener("touchend",w),B.removeEventListener("mousemove",L),B.removeEventListener("mousedown",x),B.removeEventListener("mouseup",w),B.removeEventListener("mouseleave",w),B.removeEventListener("click",g),D.window.removeEventListener("resize",N),k&&k.removeEventListener("click",p),T&&T.removeEventListener("click",E),o("after","destroy")}function y(){P&&(P(),P=void 0)}function x(e){var t=D,n=t.enableMouseEvents,i=e.touches?e.touches[0]:e;n&&(B.addEventListener("mousemove",L),B.addEventListener("mouseup",w),B.addEventListener("mouseleave",w)),B.addEventListener("touchmove",L),B.addEventListener("touchend",w);var r=i.pageX,a=i.pageY;Q={x:r,y:a,time:Date.now()},F=void 0,z={},o("on","touchstart",{event:e})}function L(e){var t=e.touches?e.touches[0]:e,n=t.pageX,i=t.pageY;z={x:n-Q.x,y:i-Q.y},"undefined"==typeof F&&(F=!!(F||Math.abs(z.x)<Math.abs(z.y))),!F&&Q&&(e.preventDefault(),a(C.x+z.x,0,null)),o("on","touchmove",{event:e})}function w(e){var t=Q?Date.now()-Q.time:void 0,n=Number(t)<300&&Math.abs(z.x)>25||Math.abs(z.x)>S/3,i=!A&&z.x>0||A===j.length-1&&z.x<0,r=z.x<0;F||(n&&!i?d(!1,r):a(C.x,D.snapBackSpeed)),Q=void 0,B.removeEventListener("touchmove",L),B.removeEventListener("touchend",w),B.removeEventListener("mousemove",L),B.removeEventListener("mouseup",w),B.removeEventListener("mouseleave",w),o("on","touchend",{event:e})}function g(e){z.x&&e.preventDefault()}function N(e){f(),o("on","resize",{event:e})}var C=void 0,M=void 0,S=void 0,j=void 0,_=void 0,B=void 0,k=void 0,T=void 0,O=void 0,P=void 0,A=0,D={};"undefined"!=typeof jQuery&&e instanceof jQuery&&(e=e[0]);var Q=void 0,z=void 0,F=void 0;return l(),{setup:l,reset:f,slideTo:m,returnIndex:h,prev:p,next:E,destroy:b}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.lory=o;var a=n(2),s=i(a),d=n(3),c=i(d),l=n(5),u=i(l),v=Array.prototype.slice},function(e,t){(function(e){"use strict";function n(){var t=void 0,n=void 0,i=void 0,o=void 0;return function(){var r=document.createElement("_"),a=r.style,s=void 0;""===a[s="webkitTransition"]&&(i="webkitTransitionEnd",n=s),""===a[s="transition"]&&(i="transitionend",n=s),""===a[s="webkitTransform"]&&(t=s),""===a[s="msTransform"]&&(t=s),""===a[s="transform"]&&(t=s),document.body.insertBefore(r,null),a[t]="translate3d(0, 0, 0)",o=!!e.getComputedStyle(r).getPropertyValue(t),document.body.removeChild(r)}(),{transform:t,transition:n,transitionEnd:i,hasTranslate3d:o}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=new a["default"](t,{bubbles:!0,cancelable:!0,detail:n});e.dispatchEvent(i)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var r=n(4),a=i(r)},function(e,t){(function(t){function n(){try{var e=new i("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(t){}return!1}var i=t.CustomEvent;e.exports=n()?i:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(t,function(){return this}())},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={slidesToScroll:1,slideSpeed:300,rewindSpeed:600,snapBackSpeed:200,ease:"ease",rewind:!1,infinite:!1,classNameFrame:"js_frame",classNameSlideContainer:"js_slides",classNamePrevCtrl:"js_prev",classNameNextCtrl:"js_next",classNameActiveSlide:"active",enableMouseEvents:!1,window:window}}])});
+//# sourceMappingURL=jquery.lory.min.js.map
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit fe7e7af

Please sign in to comment.