Merge branch 'master' of github.com:lefuturiste/condorcet-associations-server into master

This commit is contained in:
Matthieu Bessat 2020-09-03 22:48:32 +02:00
commit db60d95d9c
3 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
const countdown=document.getElementById("countdown"),counter=document.getElementById("counter"),daysContainer=document.getElementById("days"),hoursContainer=document.getElementById("hours"),minutesContainer=document.getElementById("minutes"),secondsContainer=document.getElementById("seconds");let shown=!1;const enableReload=-1===window.location.pathname.indexOf("c");function render(){let e=new Date,n=openDate-e;var t=6e4,o=36e5,a=864e5,d=Math.floor(n/a),r=Math.floor(n%a/o),l=Math.floor(n%o/t),i=Math.floor(n%t/1e3);d=String(d).length>=2?d:"0"+d,r=String(r).length>=2?r:"0"+r,l=String(l).length>=2?l:"0"+l,i=String(i).length>=2?i:"0"+i,openDate<=e&&enableReload?window.location.reload(!1):(daysContainer.textContent=d,hoursContainer.textContent=r,minutesContainer.textContent=l,secondsContainer.textContent=i),shown||setTimeout(()=>{countdown.style.opacity=1,shown=!0},300)}render(),setInterval(render,1e3);
const countdown=document.getElementById("countdown"),counter=document.getElementById("counter"),daysContainer=document.getElementById("days"),hoursContainer=document.getElementById("hours"),minutesContainer=document.getElementById("minutes"),secondsContainer=document.getElementById("seconds");let shown=!1;function render(){let e=new Date,n=openDate-e;var t=6e4,o=36e5,r=864e5,d=Math.floor(n/r),a=Math.floor(n%r/o),l=Math.floor(n%o/t),s=Math.floor(n%t/1e3);d=String(d).length>=2?d:"0"+d,a=String(a).length>=2?a:"0"+a,l=String(l).length>=2?l:"0"+l,s=String(s).length>=2?s:"0"+s,openDate<=e&&enableReload?(console.log("FINISHED!"),window.location="/"):(daysContainer.textContent=d,hoursContainer.textContent=a,minutesContainer.textContent=l,secondsContainer.textContent=s),shown||setTimeout(()=>{countdown.style.opacity=1,shown=!0},300)}enableReload=!0,render(),setInterval(render,1e3);

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
git pull origin master && yarn build && pm2 restart fva_server
git pull origin master && yarn build && pm2 restart associations.server