Time code

The Time

 

The code is written in milliseconds, therefore the number:

 

 

5000 is equivalent to 5 seconds

 

1000 is equivalent to 1 second

 

60000 is equivalent to 1 minute

 

3600000 is equivalent to 1 hour

 

 

 

import wixLocation from 'wix-location';

 

$w.onReady(function () {

$w("#myElement").onClick((event) => {

const millisecondsToDelay = 5000;

setTimeout(() => {

wixLocation.to(`/join`);

}, millisecondsToDelay);

});

});