kingj3144 / WebSys-Assignment-2

Assignment 2 for websys
0 stars 0 forks source link

Extra Credit: JSON & Web Storage #4

Open kingj3144 opened 10 years ago

kingj3144 commented 10 years ago

At the end of the game, provide a form for users to provide their name and save their score. Once the user clicks on the "Submit Score" button, use the Web Storage API to store a list of high scores as a JSON string in the user's localStorage (you'll have to parse and stringify the JSON each time you want to load and save the high score list). Each high score should include the following, collected at the end of each game: • Player Name • Difficulty • Turns • Score • Timestamp Create a new page, Team#Scores.html, using HTML5. This page will read from localStorage to retrieve the high scores list, and print them in a neatly formatted table, sorted by score, then timestamp. In your README.txt, answer the following question: 4) Now that you're used Web Storage, what other information would you store there in other Web-based applications? Is there any information you wouldn't store?