Oliver Raduner
Jul 22 · 1 min read
if (typeof days != ‘undefined’ || days != null) document.getElementById(“days”).innerHTML = parseInt(days, 10);
if (typeof hours != ‘undefined’ || hours != null) document.getElementById(“hours”).innerHTML = (“0” + hours).slice(-2);
if (typeof minutes != ‘undefined’ || minutes != null) document.getElementById(“minutes”).innerHTML = (“0” + minutes).slice(-2);
if (typeof seconds != ‘undefined’ || seconds != null) document.getElementById(“seconds”).innerHTML = (“0” + seconds).slice(-2);
Oliver Raduner

Written by

Graduated in Business IT & Economics. Mac User. Appenzeller. Neu Zürcher. I like cooking, traveling, hiking, biking & a little bit coding here and there.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade