Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 807 Bytes

readme.md

File metadata and controls

11 lines (9 loc) · 807 Bytes

Srs Bzzness

Discover the opening hours!

This exercise was all about learning JavaScript. In this exercise I was assigned the task to create a nice-looking HTML page with some CSS for a business of any kind.

Objective

The objective was to learn how to manipulate the DOM with JS. My first task was to create two columns: one with a table with opening hours, and the second with a short paragraph describing if the business was open or closed according to the business hours.

JavaScript

Then the JavaScript came into play. I was tasked to

  1. have JS reference the current time and, based on the result, display in the second column's paragraph if the business was open or closed.
  2. Display a digital clock that updates based on the current time.