Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment will be used to test your knowledge of native JavaScript, Local Storage and simple JSON retrieval. Follow all details carefully and be sure

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
This assignment will be used to test your knowledge of native JavaScript, Local Storage and simple JSON retrieval. Follow all details carefully and be sure to follow instructions for submitting your work. NOTE: jQuery MUST not be used Create a mobile web site (Note: Create a new folder to hold all your files/folders). You will need to include: index.html Be sure you have a viewport META tag Include your login name-student number in the tags A folder to hold other HTML pages (ex. pages or other) [. A folder to hold stylesheet(s) (ex. css) Your main stylesheet MUST be called yourUserName.css (ex. doejane.css) and must be linked in the index.html file. It is your choice what to name any other stylesheets (for example, you may have a separate stylesheet for the 2ns page of this assignment). [A A folder to hold your script files (ex. js or scripts) Your main script file MUST be called yourLoginName.js (ex. doejane.js) and must be linked in index.html It is your choice what to name the .js file for the 2ns page if you use a separate file A folder to hold any images needed for the assignment. (Your image plus those included in A1-ZIP) A folder to hold your JSON file (ex. data) / Included in the A1-ZIP Update and include your personal information in the JSON file where indicated Script setup (yourloginName.js) and start-up: Include an onload in your tag to call a function for start-up Include a call to retrieve the A1-JSON.json file included in your data folder The layout of initial page will include the following: Header section - Displays on load Winter 2023 / Assignment H1 for Your Full Name - Name MUST be pulled from JSON - Template Literal MUST be used to build output string. - MUST include some formatting for header area (your choice); CSS or IS can be used Footer section - Displays on load Anchor tag formatted to look like a button that will SAVE all RECIPE data AND CITE data from the JSON file to local storage then proceed to a new page (Optionally, you can save the entire JSON file) MUST include some formatting for footer area (your choice); CSS or JS can be used Content section - Will consist of 2 areas side-by-side on the page. (Ex. you can use CSS Grids). Left Panel - Make the entire area a section or a div and give it a unique ID. This will make it easer for use in the Grid Area and for formatting. - Include your picture from ISON file name; include an ID for later formatting - Make sure you use relative referencing correctly so image displays when published - Hint: Include the simg> tag within sfigure> tags for help with placement - Template Literal MUST be used to build output HTML. - Add 2 buttons under the image: - Button (include formatting) that will change the CSS class of your picture - Button (include formatting) that will remove CSS called by first button - Add a CSS Class in your.css file called. yourusename - border-radius of 50px - border of thick solid colour (colour of your choice) - box shadow on any corner of colour of your choice (at least 10p px offset and blur) - When change button is clicked, your image will be changed to use the new formatting based on your CSS class - When the remove button is clicked, remove the formatting based on your CSS class Right Panel - Make the entire area a section or a div and give it a unique ID. This will make it easer for use in the Grid Area and for formatting. - Display ALL personal information from JSON; your choice of layout but all information MUST include descriptive labels - Template Literal MUST be used to build output HTML. - All data MUST come from the JSON file The layout of 2 nd page will include the following: Script setup and start-up: Retrieve all data (Recipe and CITE or entire JSON file based on how you saved) from local storage NOTE: If you retrieve the JSON file again for this page and do not use local storage exclusively, marks will be deducted Include a Back Button that will return to the first page (your choice of where and how it looks) Header section - Displays on load Winter 2023 / Assignment \#1 / Recipes - MUST include some formatting for header area (your choice); CSS or JS can be used Footer section - Displays on load CITE information from Local Storage as an onchor tag that opens site in a new tab MUST include some formatting for footer area (your choice); CSS or IS can be used Left Panel Create 3 buttons from Local Storage Recipe data that includes the Recipe Name as button text Each button will also call a function passing in the index number (0,1,2); MUST use a for/of loop Format buttons Do NOT include a separate function for each button Right Panel When a button is clicked, display all recipe data for the button chosen based on the index number passed as the argument Ingredients must be in an unordered list NOTE: Remember, images must display when published so review relative reference for displaying images on a web site Sample screen shots (for reference only): See next page for submission details and grading rubric I will be using the Chrome Toggle Device Bar for Galaxy S20 Ultra in Landscape mode when viewing your site REMEMBER, this must be in a mobile layout; too much scrolling or whitespace will reduce your mark Submission Details for SLATE Drop Box: ZIP your entire site folder; name of zip should be yourLoginName.zip Publish your site to cPanel and include the URL DIRECTLY to your site in the Comment section of the Drop Box Some things to remember: DO NOT wait until the last minute to complete this assignment; debugging and publishing can take time DO NOT change the site on cPanel once you have submitted and the Drop Box closes. I will run a JS Script to see when the last time the cPanel link was updated. If past the Due Date, late marks will apply even if submitted on time in the SLATE Drop Box You can submit as many times as you need to until the Drop Box closes. I will grade the last one You have 3 days after the Due Date to submit with 10% off per day. After 3 days, the assignment will no longer be accepted NOT PUBLISHING results in 5 marks off automatically NOT MOBILE results in 2 marks off automatically (minimal scrolling) Each assignment MUST be done individually. I will be checking the HTML and Script for copying; see the Academic Procedure for Evaluations in SLATE / Module 01 Grading rubric

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions