Skip to content

Decode the Morse code, advanced JS (codewars)

Here is a task: When transmitting the Morse code, the international standard specifies that: “Dot” – is 1 time unit long. “Dash” – is 3 time units long. Pause between dots and dashes in a character – is 1 time unit long. Pause between characters inside a word – is 3 time units long. Pa…

How to count idle time only for one component in the page?

How to use “react-idle-timer” for calculating idle time on a component. I don’t want to count the idle time for the whole page, instead I want to count the idle time only for one component on the page( in my case I build a chatbot. So I want to count the time that I’m not using the cha…

Infinite countdown timer using app script

I would like to create a 20 seconds countdown timer in my html. I have a table that will automatically refresh every 20 seconds, now what I want is to be able to see when will it refresh again. Is there a way to do this? Also, it will be much awesome if the timer is like a progress bar