Question: For this assignment, you will be using CSS Grid to create a mobile web site that displays COVID-19 Vaccine Data in Ontario. This mobile assignment
- For this assignment, you will be using CSS Grid to create a mobile web site that displays COVID-19 Vaccine Data in Ontario.
- This mobile assignment will need to be formatted for both landscape and portrait views.
- Create a new folder to hold all files/folders.
- index.html should be the only file in the main folder; create sub-folders for all other files (ex. css folder for CSS files, images folder that holds all images, etc.)
- Be sure to include the jquery.js file in your js or scripts folder along with your own .js file
- Be sure to include the viewport setting in your index.html
- Enter YOUR NAME in the
tags AND your name and student number in a comment at the top of the index.html - Entire site must use CSS Grid with grid-areas for layout.
- Site must include a background image that fills the entire page (your choice of covering the page with one image or a repeating image); make sure image is very transparent for readability;
- The entire page should fit both a portrait and landscape view (make changes to view accordingly).
- Header (grid-area) will display "COVID-19 Vaccine Data in Ontario" and include Assignment #2 / Your Name / Your Student Number in a second line.
- Content, below the Header, will contain two sections sitting side by side in landscape mode or arranged vertically in portrait mode.
- Main Section (grid-area) will contain the following:
- Two buttons ("Load LocalStorage", "Display List") and a list.
- The "Load LocalStorage" button will:
- Retrieve the data from the vaccine doses JSON file (download the "vaccine_doses.json" file from SLATE and include it in your site folder in a separate sub-folder) using AJAX; and use a CLASS statement with a Constructor to save the information to local storage.
- The CLASS will contain all the properties from the JSON object plus one more property - "id". The value of the "id" property will be a counter that starts at 1 for the first item saved to local storage and increments by 1 for every additional item.
- Use the "report_date" property from the JSON object as key when saving to local storage.
- The "Display List" button will build an unordered list from local storage. The list will display only the keys retrieved from local storage, and have the title "Summary of Total Vaccine Doses Administered in Ontario.".
- When the user selects an item from the list, the detail information of the item selected will be displayed in the Detail Section.
- Detail Section (grid-area) will contain the following:
- Retrieve and display all the information from local storage of the item selected by the user.
- The data will have the title "Vaccine Doses Detail Information".
- Main Section (grid-area) will contain the following:
- Footer (grid-area) will include Your Login Name / Your Campus; and this url "https://data.ontario.ca/dataset/covid-19-vaccine-data-in-ontario" on the next line.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
