Skip to content

Commit 2f97644

Browse files
committed
Add button elements in JavaScript
1 parent e5c9520 commit 2f97644

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const currentDateTimeText = document.getElementById("currentDateTime"); //current date and time text
22
const currentDateTimeUtcText = document.getElementById("currentDateTimeUtc"); //current date and time in UTC text
33
const currentProgressText = document.getElementById("currentProgress"); //current progress text
4+
const updateDateTimeButton = document.getElementById("updateDateTime"); //update date and time button
5+
const updateDateTimeUtcButton = document.getElementById("updateDateTimeUtc"); //update date and time in UTC button
46
const currentDateTime = new Date(); //current date and time
57
const currentUtcDateTime = new Date(
68
currentDateTime.getUTCFullYear(),

0 commit comments

Comments
 (0)