From 7f3ea0d79bbfe5006dd66a89b9ebeb4a3204881a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 29 Nov 2019 00:17:17 +0800 Subject: [PATCH] Move file. --- _includes/head.html | 2 +- assets/{js/dist => lib}/countUp.min.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename assets/{js/dist => lib}/countUp.min.js (97%) diff --git a/_includes/head.html b/_includes/head.html index 984de23..5928411 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -92,7 +92,7 @@ {% if page.layout == 'home' or page.layout == 'post' %} {% if site.google_analytics.pv %} - + {% endif %} {% endif %} diff --git a/assets/js/dist/countUp.min.js b/assets/lib/countUp.min.js similarity index 97% rename from assets/js/dist/countUp.min.js rename to assets/lib/countUp.min.js index 341dc9f..cd2da4f 100644 --- a/assets/js/dist/countUp.min.js +++ b/assets/lib/countUp.min.js @@ -1 +1,2 @@ +/*! https://github.com/inorganik/countUp.js */ var CountUp=function(h,b,i,e,g,n){var m=this;m.version=function(){return"1.9.3"};m.options={useEasing:true,useGrouping:true,separator:",",decimal:".",easingFn:c,formattingFn:d,prefix:"",suffix:"",numerals:[]};if(n&&typeof n==="object"){for(var k in m.options){if(n.hasOwnProperty(k)&&n[k]!==null){m.options[k]=n[k]}}}if(m.options.separator===""){m.options.useGrouping=false}else{m.options.separator=""+m.options.separator}var a=0;var l=["webkit","moz","ms","o"];for(var j=0;j1?m.options.decimal+p[1]:"";if(m.options.useGrouping){q="";for(u=0,o=s.length;um.endVal);m.frameVal=m.startVal;m.initialized=true;return true}else{m.error="[CountUp] startVal ("+b+") or endVal ("+i+") is not a number";return false}};m.printValue=function(p){var o=m.options.formattingFn(p);if(m.d.tagName==="INPUT"){this.d.value=o}else{if(m.d.tagName==="text"||m.d.tagName==="tspan"){this.d.textContent=o}else{this.d.innerHTML=o}}};m.count=function(p){if(!m.startTime){m.startTime=p}m.timestamp=p;var o=p-m.startTime;m.remaining=m.duration-o;if(m.options.useEasing){if(m.countDown){m.frameVal=m.startVal-m.options.easingFn(o,0,m.startVal-m.endVal,m.duration)}else{m.frameVal=m.options.easingFn(o,m.startVal,m.endVal-m.startVal,m.duration)}}else{if(m.countDown){m.frameVal=m.startVal-((m.startVal-m.endVal)*(o/m.duration))}else{m.frameVal=m.startVal+(m.endVal-m.startVal)*(o/m.duration)}}if(m.countDown){m.frameVal=(m.frameValm.endVal)?m.endVal:m.frameVal}m.frameVal=Math.round(m.frameVal*m.dec)/m.dec;m.printValue(m.frameVal);if(om.endVal);m.rAF=requestAnimationFrame(m.count)};if(m.initialize()){m.printValue(m.startVal)}}; \ No newline at end of file