From 5c1b7209ec61fa1fadb2dee48ba5f00ab4cf4f2e Mon Sep 17 00:00:00 2001 From: jh3y Date: Fri, 7 Oct 2016 10:24:53 +0100 Subject: [PATCH] Update inline versions on code --- dist/ep.css | 2 +- dist/ep.js | 2 +- dist/ep.min.css | 2 +- dist/ep.min.js | 2 +- src/script/entries/ep/ep.scss | 2 +- src/script/entries/ep/index.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/ep.css b/dist/ep.css index 2565707..3eba945 100644 --- a/dist/ep.css +++ b/dist/ep.css @@ -4,7 +4,7 @@ * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */ @-webkit-keyframes ep-indeterminate { diff --git a/dist/ep.js b/dist/ep.js index b3edeca..0ee25b4 100644 --- a/dist/ep.js +++ b/dist/ep.js @@ -10,7 +10,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */ (function () { diff --git a/dist/ep.min.css b/dist/ep.min.css index 519eb83..e6c6ef4 100644 --- a/dist/ep.min.css +++ b/dist/ep.min.css @@ -4,6 +4,6 @@ * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */@-webkit-keyframes ep-indeterminate{0%,100%{opacity:0}50%{opacity:.6}}@keyframes ep-indeterminate{0%,100%{opacity:0}50%{opacity:.6}}progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;height:6px;opacity:.6;position:relative;-webkit-transition:width .25s ease 0s,visibility .5s ease 0s;transition:width .25s ease 0s,visibility .5s ease 0s;width:0;background:#3498db;color:#3498db}progress::-ms-fill{border:0}progress::-moz-progress-bar{background:#3498db}progress::-webkit-progress-bar{background:#3498db}progress::-webkit-progress-value{background:#3498db}progress:indeterminate{-webkit-animation:ep-indeterminate 2s infinite linear;animation:ep-indeterminate 2s infinite linear;background:#3498db;color:transparent;width:100%}progress:indeterminate::-moz-progress-bar{background:#3498db}progress:indeterminate::-webkit-progress-bar{background:#3498db}progress[value='1']{width:1%}progress[value='2']{width:2%}progress[value='3']{width:3%}progress[value='4']{width:4%}progress[value='5']{width:5%}progress[value='6']{width:6%}progress[value='7']{width:7%}progress[value='8']{width:8%}progress[value='9']{width:9%}progress[value='10']{width:10%}progress[value='11']{width:11%}progress[value='12']{width:12%}progress[value='13']{width:13%}progress[value='14']{width:14%}progress[value='15']{width:15%}progress[value='16']{width:16%}progress[value='17']{width:17%}progress[value='18']{width:18%}progress[value='19']{width:19%}progress[value='20']{width:20%}progress[value='21']{width:21%}progress[value='22']{width:22%}progress[value='23']{width:23%}progress[value='24']{width:24%}progress[value='25']{width:25%}progress[value='26']{width:26%}progress[value='27']{width:27%}progress[value='28']{width:28%}progress[value='29']{width:29%}progress[value='30']{width:30%}progress[value='31']{width:31%}progress[value='32']{width:32%}progress[value='33']{width:33%}progress[value='34']{width:34%}progress[value='35']{width:35%}progress[value='36']{width:36%}progress[value='37']{width:37%}progress[value='38']{width:38%}progress[value='39']{width:39%}progress[value='40']{width:40%}progress[value='41']{width:41%}progress[value='42']{width:42%}progress[value='43']{width:43%}progress[value='44']{width:44%}progress[value='45']{width:45%}progress[value='46']{width:46%}progress[value='47']{width:47%}progress[value='48']{width:48%}progress[value='49']{width:49%}progress[value='50']{width:50%}progress[value='51']{width:51%}progress[value='52']{width:52%}progress[value='53']{width:53%}progress[value='54']{width:54%}progress[value='55']{width:55%}progress[value='56']{width:56%}progress[value='57']{width:57%}progress[value='58']{width:58%}progress[value='59']{width:59%}progress[value='60']{width:60%}progress[value='61']{width:61%}progress[value='62']{width:62%}progress[value='63']{width:63%}progress[value='64']{width:64%}progress[value='65']{width:65%}progress[value='66']{width:66%}progress[value='67']{width:67%}progress[value='68']{width:68%}progress[value='69']{width:69%}progress[value='70']{width:70%}progress[value='71']{width:71%}progress[value='72']{width:72%}progress[value='73']{width:73%}progress[value='74']{width:74%}progress[value='75']{width:75%}progress[value='76']{width:76%}progress[value='77']{width:77%}progress[value='78']{width:78%}progress[value='79']{width:79%}progress[value='80']{width:80%}progress[value='81']{width:81%}progress[value='82']{width:82%}progress[value='83']{width:83%}progress[value='84']{width:84%}progress[value='85']{width:85%}progress[value='86']{width:86%}progress[value='87']{width:87%}progress[value='88']{width:88%}progress[value='89']{width:89%}progress[value='90']{width:90%}progress[value='91']{width:91%}progress[value='92']{width:92%}progress[value='93']{width:93%}progress[value='94']{width:94%}progress[value='95']{width:95%}progress[value='96']{width:96%}progress[value='97']{width:97%}progress[value='98']{width:98%}progress[value='99']{width:99%}progress[value='100']{width:100%}@-webkit-keyframes ep-mock{to{width:100%}}@keyframes ep-mock{to{width:100%}}progress[data-mock='1'],progress[data-staggered-mock='1']{-webkit-animation-duration:1s;animation-duration:1s;width:0}progress[data-mock='2'],progress[data-staggered-mock='2']{-webkit-animation-duration:2s;animation-duration:2s;width:0}progress[data-mock='3'],progress[data-staggered-mock='3']{-webkit-animation-duration:3s;animation-duration:3s;width:0}progress[data-mock]{-webkit-animation-name:ep-mock;animation-name:ep-mock}progress[data-mock='4'],progress[data-staggered-mock='4']{-webkit-animation-duration:4s;animation-duration:4s;width:0}@-webkit-keyframes ep-staggered-mock{0%{width:0}10%,20%{width:10%}30%,40%,50%{width:30%}60%{width:50%}70%,80%{width:70%}90%{width:90%}100%{width:100%}}@keyframes ep-staggered-mock{0%{width:0}10%,20%{width:10%}30%,40%,50%{width:30%}60%{width:50%}70%,80%{width:70%}90%{width:90%}100%{width:100%}}progress[data-staggered-mock]{-webkit-animation-name:ep-staggered-mock;animation-name:ep-staggered-mock}@-webkit-keyframes ep-timer{from{width:100%}to{width:0}}@keyframes ep-timer{from{width:100%}to{width:0}}progress[data-timer='1']{-webkit-animation-duration:1s;animation-duration:1s}progress[data-timer='2']{-webkit-animation-duration:2s;animation-duration:2s}progress[data-timer='3']{-webkit-animation-duration:3s;animation-duration:3s}progress[data-timer]{-webkit-animation-name:ep-timer;animation-name:ep-timer}progress[data-timer='4']{-webkit-animation-duration:4s;animation-duration:4s}@-webkit-keyframes ep-simulate{from{width:0}}@keyframes ep-simulate{from{width:0}}progress[data-simulate]{-webkit-animation:ep-simulate 30s;animation:ep-simulate 30s;-webkit-animation-timing-function:steps(30);animation-timing-function:steps(30);width:99%}progress[data-complete]{-webkit-animation:none;animation:none;visibility:hidden;width:100%}progress[data-pause]{-webkit-animation-play-state:paused;animation-play-state:paused}progress.ep--top{left:0;position:absolute;top:0}progress.ep--bottom{bottom:0;left:0;position:absolute}progress.ep--fixed{position:fixed}progress.ep--spread{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}progress.ep--indeterminate{-webkit-animation:ep-indeterminate 2s infinite linear;animation:ep-indeterminate 2s infinite linear;background:#3498db;color:transparent;width:100%}progress.ep--indeterminate::-moz-progress-bar{background:#3498db}progress.ep--indeterminate::-webkit-progress-bar{background:#3498db} \ No newline at end of file diff --git a/dist/ep.min.js b/dist/ep.min.js index 05afe71..f1af77c 100644 --- a/dist/ep.min.js +++ b/dist/ep.min.js @@ -4,7 +4,7 @@ * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */ !function(){var t=function(){function t(e){if(_classCallCheck(this,t),!e||Object.getPrototypeOf(e)!==HTMLProgressElement.prototype)throw Error("ep: you must pass a element instance");this._EL=e,this._VALUE=parseInt(e.getAttribute("value"),10)||0}return _createClass(t,[{key:"set",value:function(t,e){var n=this,i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,i=t;return i>n&&(i=n),i=0&&a<=100){var s=e&&"function"==typeof e;s&&!function(){var t=function t(){e(),n._EL.removeEventListener("transitionend",t)};n._EL.addEventListener("transitionend",t)}(),this._EL.setAttribute("value",a),this._VALUE=a}}},{key:"setSpread",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._EL.classList;t?e.add("ep--spread"):e.remove("ep--spread")}},{key:"setIndeterminate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._EL.classList,n="ep--indeterminate";t?e.add(n):e.remove(n)}},{key:"togglePause",value:function(){this._EL.getAttribute("data-pause")?this._EL.removeAttribute("data-pause"):this._EL.setAttribute("data-pause",!0)}},{key:"setPosition",value:function(t){for(var e=this,n=["top","fixed","bottom"],i=0;i0&&void 0!==arguments[0]?arguments[0]:5,e=arguments[1];this.set(this._VALUE+t,e)}},{key:"decrease",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=arguments[1];this.set(this._VALUE-t,e)}},{key:"reset",value:function(){var t=this;this._SIMULATING&&clearInterval(this._SIMULATING),this.set(0),this._EL.removeAttribute("data-complete"),this._EL.removeAttribute("data-pause"),setTimeout(function(){return t._EL.removeAttribute("style")},0)}},{key:"mock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,e=this,n=arguments[1],i=arguments[2],a=n?"data-staggered-mock":"data-mock",s=function t(){e._EL.removeAttribute(a),i&&"function"==typeof i&&i(),e._EL.removeEventListener("animationend",t)};this._EL.setAttribute(a,t),this._EL.addEventListener("animationend",s)}},{key:"time",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,n=arguments[1],i=function e(){t._EL.removeAttribute("data-timer"),n&&"function"==typeof n&&n(),t._EL.removeEventListener("animationend",e)};this._EL.setAttribute("data-timer",e),this._EL.addEventListener("animationend",i)}},{key:"simulate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99;this._SIMULATING=setInterval(function(){var t=i%e._VALUE,a=!e._VALUE||t>n||0===t,s=a?n:t;e._VALUE!==i?e.increase(s):clearInterval(e._SIMULATING)},t)}},{key:"complete",value:function(t){var e=this,n=function n(){e._EL.style.transitionDuration="0s",e.reset(),e._EL.removeEventListener("transitionend",n),t&&"function"==typeof t&&t()};this.set(100),this._EL.setAttribute("data-complete",!0),this._EL.addEventListener("transitionend",n)}}]),t}();window.Ep=t}(); \ No newline at end of file diff --git a/src/script/entries/ep/ep.scss b/src/script/entries/ep/ep.scss index 7fe40cd..7eabed9 100644 --- a/src/script/entries/ep/ep.scss +++ b/src/script/entries/ep/ep.scss @@ -4,7 +4,7 @@ * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */ @import 'core'; diff --git a/src/script/entries/ep/index.js b/src/script/entries/ep/index.js index 0e7a267..4699576 100644 --- a/src/script/entries/ep/index.js +++ b/src/script/entries/ep/index.js @@ -4,7 +4,7 @@ * https://jh3y.github.io/ep * @license MIT * @author jh3y - * @version 2.0.0 + * @version 2.0.3 * (c) 2016 */ (function() {