-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
22 lines (19 loc) · 856 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
window.onload = function() {
// Set your Slack details
const slackDisplayName = "Alex Asciencio";
const slackEmail = "asciencioalex@gmail.com";
const slackProfilePicture = "Alex.jpg";
// Display Slack details
document.getElementById('displayName').textContent = slackDisplayName;
document.getElementById('email').textContent = slackEmail;
document.getElementById('profilePicture').src = slackProfilePicture;
// Display current time in UTC
function updateTime() {
const now = new Date();
const utcString = now.toUTCString();
document.getElementById('currentTime').textContent = utcString;
document.getElementById('currentDay').textContent = now.toLocaleDateString('en-US', { weekday: 'long' });
}
updateTime();
setInterval(updateTime, 1000);
}