For your final project, you are to create a webpage that uses JavaScript to provide user interactivity. The entire project should consist of at least one HTML page (index.html), your own custom...

1 answer below »

For your final project, you are to create a webpage that uses JavaScript to provide user interactivity. The entire project should consist of at least one HTML page (index.html), your own custom JavaScript file with your functionality, and an external CSS file.


The topic for your final project is up to you, you can pick any topic you like, your project should be coherent. It should be something that serves a purpose and makes sense.


You will be graded on meeting the requirements as well as the quality of the application and the quality of the code. Your code should include meaningful comments and should not include debugging material such as "console.log" statements. You should have meaningful variable and function names. Your project should be able to be used without having to read the code or without you having to supply notes. Think of this as work that you would want to represent you professionally and make it as professional as possible.


Here are some ideas that might appeal to you:



  • A component customizer for a car/bicycle/computer or similar complex machine. The program would allow the user to choose apart from a few different categories and tell them the total price with the selected configuration.

  • Averyenhanced choose your own adventure game. The user would fill in a form before the game to customize details about the game. The program would prompt choices using images or button elements to have the user make choices. The program would update the HTML of the page with the changing story.

  • A simple ebook reader that would use a few titles fromProject Gutenberg(Links to an external site.)and display them. The user could choose a book and then the reader would show 10 or so lines from the text. Anextbutton and apreviousbutton would allow the user to load the next or previous 10 lines.

  • A food restaurant information application. The user would select the kind of food they wanted and would see a list of places that serve that food along with a picture of the restaurant and the menu.


Requirements


JavaScript



  • Use jQuery

  • Use event listeners

  • An array with data of your choosing. The data from this array must actually be used in the program. This data can be set by users.

  • A form that captures user data and allows some sort of interaction. The form must allow for user input via a text element, select list, radio buttons, or other HTML input type elements.

  • An image that is somehow altered or changed by interaction with HTML on the page.

  • Use of a loop.

  • Use of a conditional statement.

  • Use of JavaScript to create an element or text on the page.

  • Use of JavaScript to change the display of an element on the page via CSS and classes.

  • The code should be broken into functions where appropriate. The use of two functions is required. These functions must be named functions called in your code. Event handling functions or functions connected to timers do not count for this requirement.


CSS



HTML



Rubric

Answered Same DayMay 02, 2021

Answer To: For your final project, you are to create a webpage that uses JavaScript to provide user...

Swapnil answered on May 03 2021
153 Votes
82830/Food Restaurant Information Application/css/styles.css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
.logo{
width: 64px;
height: 50px;
margin: 10px;
border-radius: 50%;
}
.search-bar{
display: flex;
}
.filters{
display: flex;
margin-bottom
: 20px;
}
.restaurants{
flex-wrap: wrap;
/* flex: 1; */
width: 90%;
/* height: 100%; */
display: flex;
justify-content: flex-start;
flex-direction: row;
margin-top: 10px;
padding: 20px;
}
.hotel-card{
display: flex;
flex-direction: column;
margin: 10px;
padding: 10px;
border: 1px solid lightgray;
}
.hotel-location{
background: orange;
width: 51px;
padding: 5px;
color: white;
}
.hotel-eta{
font-size: 12px;
}
.hotel-name{
font-weight: bold;
padding: 0 10px;
}
.hotel-tags{
font-size: 10px;
padding: 10px;
}
button.favourite {
width: 20px;
height: 20px;
border-radius: 50%;
/* float: left; */
align-self: flex-end;
border: none;
position: absolute;
outline: transparent;
}
#fav-id{
background: white;
}
#fav-id-red{
background: red;
}
#search {
width: 90%;
padding: 10px;
margin: 10px;
}
.show-fav{
width: 100px;
height: 40px;
text-align: center;
/* padding: 3px; */
color: white;
background: red;
border: 1px solid;
/* float: right; */
right: 10%;
/* margin-bottom: 20px; */
position: absolute;
outline: transparent;
/* margin: 100px; */
}
#sortby{
position: absolute;
padding: 10px;
left: 3%;
}
82830/Food Restaurant Information Application/data/api.json
[
{
"name": "Subway(MCF)",
"id": 20423,
"location": "udyog vihar",
"rating": 4.2,
"eta": 25,
"tags": ["American", "Fast Food"],
"img": "./images/1.png"
},
{
"name": "Prince Ki Rasoi",
"id": 27213,
"location": "Ramada Hotel, Huda City",
"rating": 3.8,
"eta": 30,
"tags": ["North Indian", "Chinese", "Mughlai", "Fast Food"],
"img": "./images/2.jpg"
},
{
"name": "Aggarwal Sweets & Restaurant",
"id": 52778,
"location": "Near Jain Dharamshala, Huda City",
"rating": 3.4,
"eta": 25,
"tags": ["North Indian", "Chinese", "Sweets"],
"img": "./images/3.jpg"
},
{
"name": "Rasoi",
"id": 13018,
"location": "Near Hanuman Mandir, Sector-14",
"rating": 3.9,
"eta": 50,
"tags": ["Indian", "Chinese", "North Indian"],
"img": "./images/4.jpg"
},
{
"name": "Fork with Sticks",
"id": 1015,
"location": "DLF Phase 4, New DLF Phase 4",
"rating": 4.0,
"eta": 44,
"tags": ["Chinese", "Fast Food"],
"img": "./images/5.jpg"
},
{
"name": "South Store",
"id": 23893,
"location": "sector 14 Market, Sector-14",
"rating": 4.1,
"eta": 53,
"tags": ["American", "South Indian"],
"img": "./images/6.jpg"
},
{
"name": "Chinese Corner",
"id": 30361,
"location": "Sushant Lok, DLF Phase 4",
"rating": 4.1,
"eta": 47,
"tags": ["Chinese",...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here