Html / CSS Question

DescriptionChallenge 1: A Clock App
Description
In this challenge, you will develop a working clock app using JavaScript.
To begin this challenge, create a folder called Challenge_1 inside your Tech Assignment 3
folder, with the following file structure:
Challenge_1
├─ index.html
├─ world_clock.html
├─ app.py
└─ public
├─ timezones.json
├─ world_clock.js
└─ main.css (optional, can be shared between all 3 HTML pages)
└─
Here are the requirements for each of these files:
app.py – Server (backend) code
● There should be two routes:

“/”, corresponding to index.html (i.e. the main homepage)

“/world_clock“, corresponding to world_clock.html
index.html – the main homepage
● Create a landing page with a menu bar with links, including routes to the other page and
a link to itself.
● Using the tag:

Add a hyperlink to “World Clock” that leads to the /world_clock route.’
world_clock.html – Dynamically adding clocks
● Create an HTML section for a digital clock for a timezone that displays:

Put all of this between div tags and give it a class so you can access it later using
querySelector:
■ Timezone abbreviation
■ Timezone offset from UTC
■ Date & Current Time (Any AM/PM format)
■ Finally, use the CSS display property to hide the element at the bottom of
the page. This element will be used as a template so we can copy it to add
more clocks later.
● Download the timezones.json file and add it to the folder structure.

Use the following code to get a dictionary in JavaScript to work with the timezone
abbreviations as the key (i.e “PST”, “EST”).

var timezones;

fetch(“/public/timezones.json”)

.then(response => {

return response.json();

}).then(json => {timezones = json;});

We’ll see more of how this works next week.
● Write a function to get the current time in any timezone with the UTC offset as input in
JavaScript. Feel free to look up how JavaScript Date objects work.
● Create a text input that can take in a timezone abbreviation and a button for adding the
text to the input when it is clicked.

Make sure to verify if the abbreviation is valid (exists in our dictionary) before
using it

Clone a copy of the template we created earlier

Modify the elements in the clone and for the last time element

Make sure the clock will live update with the time (hint: timer functions)

Finally insert the template into a grid element (we briefly mentioned this in class,
but you are free to look more into it).
● Add another set of elements including an input tag (numerical this time) and a button that
allows users to remove a clock given a specific index.
README.md
In your README.md for Tech Assignment 3, add a subheading for Challenge 1 and include the
following:
● Write a brief explanation of how to add the clocks and how the time section is being
updated.
● Screenshots of the web pages you created.
Submission Details
Submit all the code files to your repository, following the submission structure mentioned at the
top of this document. Make sure your README.md follows the instructions above.

Purchase answer to see full
attachment

DescriptionChallenge 1: A Clock App
Description
In this challenge, you will develop a working clock app using JavaScript.
To begin this challenge, create a folder called Challenge_1 inside your Tech Assignment 3
folder, with the following file structure:
Challenge_1
├─ index.html
├─ world_clock.html
├─ app.py
└─ public
├─ timezones.json
├─ world_clock.js
└─ main.css (optional, can be shared between all 3 HTML pages)
└─
Here are the requirements for each of these files:
app.py – Server (backend) code
● There should be two routes:
○
“/”, corresponding to index.html (i.e. the main homepage)
○
“/world_clock“, corresponding to world_clock.html
index.html – the main homepage
● Create a landing page with a menu bar with links, including routes to the other page and
a link to itself.
● Using the tag:
○
Add a hyperlink to “World Clock” that leads to the /world_clock route.’
world_clock.html – Dynamically adding clocks
● Create an HTML section for a digital clock for a timezone that displays:
○
Put all of this between div tags and give it a class so you can access it later using
querySelector:
■ Timezone abbreviation
■ Timezone offset from UTC
■ Date & Current Time (Any AM/PM format)
■ Finally, use the CSS display property to hide the element at the bottom of
the page. This element will be used as a template so we can copy it to add
more clocks later.
● Download the timezones.json file and add it to the folder structure.
○
Use the following code to get a dictionary in JavaScript to work with the timezone
abbreviations as the key (i.e “PST”, “EST”).
○
var timezones;
○
fetch(“/public/timezones.json”)
○
.then(response => {
○
return response.json();
○
}).then(json => {timezones = json;});
○
We’ll see more of how this works next week.
● Write a function to get the current time in any timezone with the UTC offset as input in
JavaScript. Feel free to look up how JavaScript Date objects work.
● Create a text input that can take in a timezone abbreviation and a button for adding the
text to the input when it is clicked.
○
Make sure to verify if the abbreviation is valid (exists in our dictionary) before
using it
○
Clone a copy of the template we created earlier
○
Modify the elements in the clone and for the last time element
○
Make sure the clock will live update with the time (hint: timer functions)
○
Finally insert the template into a grid element (we briefly mentioned this in class,
but you are free to look more into it).
● Add another set of elements including an input tag (numerical this time) and a button that
allows users to remove a clock given a specific index.
README.md
In your README.md for Tech Assignment 3, add a subheading for Challenge 1 and include the
following:
● Write a brief explanation of how to add the clocks and how the time section is being
updated.
● Screenshots of the web pages you created.
Submission Details
Submit all the code files to your repository, following the submission structure mentioned at the
top of this document. Make sure your README.md follows the instructions above.
Purchase answer to see full
attachment

Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.