File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const hoursLeft = ref(0)
55const minutesLeft = ref (0 )
66const percentComplete = ref (0 )
77
8- const startDate = new Date (' 2024-11-09T00 :00:00' )
9- const endDate = new Date (' 2024-11-12T00 :00:00' )
8+ const startDate = new Date (' 2024-11-11T00 :00:00' )
9+ const endDate = new Date (' 2024-11-13T00 :00:00' )
1010const totalDuration = endDate - startDate
1111
1212function updateCountdown () {
@@ -23,7 +23,7 @@ function updateCountdown() {
2323
2424 hoursLeft .value = Math .floor (timeLeft / (1000 * 60 * 60 ))
2525 minutesLeft .value = Math .floor ((timeLeft % (1000 * 60 * 60 )) / (1000 * 60 ))
26- percentComplete .value = Math .min (100 , Math .max (0 , (elapsed / totalDuration) * 100 ))
26+ percentComplete .value = Math .min (100 , Math .max (0 , (timeLeft / totalDuration) * 100 ))
2727}
2828
2929let interval
You can’t perform that action at this time.
0 commit comments