Digital download
$25.00
- Availability
- In stock
- Checkout
- One item
Need a hand?
Message us on WhatsApp for payment or download support.
If the user clicks the “Location” radio button, the page will add a Google Maps icon to the right of the search bar (see Figure 2). The user can click on that icon, which will create a Google CSCI 201 Assignment 3
Maps overlay for the page (see Figure 3). You can do this by creating three new tags: one for the map with a percentage sizing in the center of the viewport, another for the background, and one more to contain the other two. Clicking on the map should make the map disappear, returning the user to Figure 2, and auto-populate the “latitude” and “longitude” fields with the chosen latitude and longitude. Note: The “Display All” button should be removed. Figure 4 Login Page Login Page Once the user arrives to this page, the user can login with a pre-existing account. There are three different scenarios to account for: ● Wrong username: This user does not exist. ● Correct username, wrong password: Incorrect password. ● Correct username, correct password: Successful login!Once the user enters the correct username/password information, the program will redirect the user back to the home page (see Figure 6). Otherwise, the program will keep the user on the login page and display the error message between the password field and the “Login” button.
Figure 5 Register Page Registration Page When the user clicks the “Register” menu, he will be directed to the Registration page. The user can sign up for a new account on this page. There are three different scenarios to account for: ● Username already taken: This username is already taken. ● Passwords do not match: The passwords do not match. ● Username is unique, and passwords match: Successfully create a new account! Once the user enters the correct username/password information, the program will redirect the user back to the home page (see Figure 6). The user is automatically logged into this new account. If the entered information is not valid, the program should leave the user on the Registration page and should display an error message between the “Confirm Password” field and the “Register” button. Figure 6 Home Page (after logging in) Home Page (After Login) Upon successfully logging into an account or successfully creating a new account, the “Login” and “Register” menus should be replaced with “Profile” and “Sign Out”, respectively. Clicking on the “Profile” button redirects the user to the Profile page (see Figure 10). Clicking “Sign Out” will log out the user and redirect him to the home page (see Figure 1). If the user performs a search while logged in, you should add this data into a MySQL table. If a search is completed while not logged in, no data is stored in the database. Make sure to add the timestamp of the transaction to the database. This process should be repeated whenever a search is completed from any page of the site. Figure 7a Search Results Search Results The Search Results should be displayed under the Search area, as a table displaying the city name, low and high temperatures for all results, and dropdown to select the type of sorting, as shown in Figure 7a. The Search Results can be implemented with a section. Selecting from the Sort by dropdown should re-arrange the list as shown in Figure 7b. Figure 7b Sort Options The Search area (edit boxes, radio buttons, etc.) is still active and its functionality remains the same as before. If more than one city matches the search query (i.e. “Springfield” or “Washington”), the OpenWeatherMapAPI will return data for all cities with the same name. You should use the table to display data for all matching cities. Figure 8 Details (values definitions) Figure 9 Details DetailsWhen clicking on a city name in a row of the Search Results, the Details for that city will replace the Search Results (The
section is updated) as shown in Figure 8 and Figure 9. Figure 10 Profile Page Profile PageWhen the user clicks on “Profile” menu, the user should be directed to a new Profile page. This page will display the user’s search history. When the user is in the Profile page, the menu on top should still read “Home” and “Sign Out”. Using the browser back button should allow the user to go back to searching on the homepage.
The search history table heading should display the actual username of the currently logged-in user, as shown in Figure 10. The search history list should display all the searches made by the user, either by city or by latitude / longitude. The searches are ordered from newest (at the top) to oldest (at the bottom). Clicking on a city name or lat/long location, should display the Details for that location, under the search history, again using a section. Grading Criteria The output must match as close as possible to the screenshots provided above. The maximum number of points earned is 6. User Login Functionality (0.9) 0.2 - Login and Register links are on the Home page and Register page if a user is not logged in 0.1 - Profile and Sign Out links are on the Home page, if a user is logged in 0.1 - Profile and Sign Out links are on the Profile page, if a user is logged in 0.1 - Login page looks like the screenshot 0.1 - Register page looks like the screenshot 0.1 - Profile page looks like the screenshot 0.1 - Error messages displayed properly on the Login page 0.1 - Error messages displayed properly on the Register page Home Page (0.8) 0.1 - When latitude/longitude radio button is clicked, the Google Maps icon is displayed 0.3 - Clicking the Google Maps icon displays the Google Map in the center of the page 0.4 - Clicking on the Google Map makes the map disappear and populates the latitude/longitude text fields properly Search Results (1.6%) 0.5 - Searching by city returns proper results 0.5 - Searching by latitude/longitude returns proper results 0.3 - Sorting functionality works properly 0.1 - Clicking on city name (and not on temperatures) show to city details 0.1 - If no city matches search, the table and drop-down menu are not shown, but an appropriate message is displayed. 0.1 - If only one city matches the search, Sort by drop-down menu is not shown. Details (1.5) 1.5 - Details area shows proper live data Top Search Bar (0.1) 0.1 - When latitude/longitude radio button is clicked, the Google Maps icon is displayed Profile Page (0.6) 0.1 - Profile page shows all the searches performed by a user 0.1 - Clicking browser back button in Profile page, brings back the home page 0.1 - Profile page shows user’s name 0.2 - Results are sorted from newest to oldest 0.1 - Profile page looks like the screenshot