Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

274
Views
How can I change the color of the background and add an additional stuff such as time in HTML? Also, how can I change the time zone to UTC+7?

how can I differentiate when I have to use HEX code and color name? and also how can I change my background color? I mean, I think I have changed my background color to black, but when I embed it to my Notion page, it still comes up with aliceblue color, not black. anyone can help me to add time?

var weekday = new Array(7);
weekday[0] = "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";

var today = new Date();
var hrs = today.getHours();
var dayOfWeek = weekday[today.getDay()];
var date = dayOfWeek + " " + today.getDate() + "/" + (today.getMonth() + 1) + '/' + today.getFullYear();

var greet;

if (hrs < 12)
  greet = 'Good Morning  ';
else if (hrs >= 12 && hrs <= 17)
  greet = 'Good Afternoon ';
else if (hrs >= 17 && hrs <= 18)
  greet = ' Good Evening   ';
else if (hrs >= 18 && hrs <= 24)
  greet = 'Good Night ';

document.getElementById('lbl').innerHTML =
  greet += "Ivan" + `<div id="date"> It's ${date}</div>`;
#lbl {
  font-family: monospace;
  font-size: xx-large;
  color: #F0F8FF;
  padding: 5px;
  text-align: center;
  line-height: 1.5;
  height: 85%
}

#date {
  font-size: large;
}

body {
  background-color: black;
}
<div id="lbl"></div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!