On Friday, Feb 15, I reach retirement age - 67, a prime number. Wix Code is amazing, I'm having a great time, and I'm not going anywhere! On Sunday (the 17th) I’ll be back in the office as usual, doing my thing.
My doctor told me that although I’m older than dirt, I’ll be fine as long as I compost at regular intervals. On Sunday, at 12:30 (local time), join me as I compost with beer and other fine drinks. I cobbled together this simple Countdown example to help you keep track of time. It's educational as well.
Have fun! (I will)
Hi Yisrael, thank you for your example! I have a question related to the countdown: is it possible to create a countdown that is not linked to a day, but instead to a chosen number of minutes?
I have tried to find it out everywhere, but without results. I think that is because is too simple, but I'm a very beginner, so I can't make it. 😅
I add a screenshot to better explain what I mean.
Hi Yisrael, the link you send is broken. Can you send it again please?
Just a beer, I would have thought it would be a good bottle of at least 30 year old malt whisky for a wonderful and very helpful Wix Mod like yourself (or do Wix not allow to stretch their resources to allow for the older gentlemen's refined drinking tastes?!!)
A few hints for anybody at Wix to get you a cheap retirement bottle as a little gift...
Congratulations, Yisrael!
Thanks for sharing about the Countdown example!
One little enhancement I'd recommend is to replace "magic numbers" with constants; for example, the following line:
let days = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
could be replaced with the following lines:
const MILLISECONDS_PER_SECOND = 1000; const SECONDS_PER_MINUTE = 60; const MINUTES_PER_HOUR = 60; const HOURS_PER_DAY = 24; let days = Math.floor(timeLeft / (MILLISECONDS_PER_SECOND * SECONDS_PER_MINUTE * MINUTES_PER_HOUR * HOURS_PER_DAY));
Even though it's a little more code, everyone will know exactly what each number is for.
Thank you for everything you are doing for us! Your work is great. I hope you‘ll stay with us for many many years more )
Love your work - your posts are super helpful. Never would have guessed that high a prime number. Congratulations on your non-retirement, wish I could buy you a good beer.
You are simply great!