You have to add a title(1) and a table first. In detail,
Let’s give some style to components so their functions are easily recognizable. In detail,
Let’s make our table look more like a table.
In the previous programming assignment, we placed an example question and an example correct/wrong entry. In this step, you have to display a new question every time (1) when the page is loaded, or (2) the user clicks the ‘See Answer’ button. In detail,
Update your code so that when the user presses the ‘See Answer’ button, the list of previous answers gets populated with each of the user's entries. In detail,
The input field accepts the user's guess. Use jQuery UI to make this field an autocomplete widget. In detail,
How about showing correct or wrong past entries only? Let’s add a filter for past entries. In detail,
In the last assignment, our capital game had a few interactive features like autocomplete, grading, and filtering. In this assignment, we will make our capital game communicate with the web, as well as make it safer from errors.
We will provide you with the starter kit, pr3.zip. It includes
jquery/: the code for jQuery and jQuery UI: these are JavaScript libraries you will be using for this assignment.capital_game.css: skeleton CSS code.capital_game.js: skeleton JavaScript code.index.html: skeleton HTML code.studentnumber_pr3.zip. Please do not create any subfolders.In the last assignment, the list of countries and their capitals was provided in country_capital_pairs.js, a JavaScript file which stored the list in a pairs variable. In this assignment, let's load the list from the csv file on the web. In other words, instead of loading from a file, load it from the web.
window.pairs variable. The result should be in the same format as the pairs variable from the last assignment - a JavaScript array with objects including two keys (country, capital).window.pairs variable in the browser console.
Build every component of PR2 - autocomplete, grading, filter, etc. However, for this time, store past entries to Firebase so they are not lost even when the user refreshes the webpage.
ids like pr2__submit .id to pr3__clear . When the ‘clear’ button is clicked, all the past entries are deleted.
How about adding a map showing the location of countries?
width to 100% and height to 400px .maptype to satellite by referring to the Devloper Guide.q parameter in the iframe's src. If the game is asking the capital of Easter Island, include q=Easter Island in the src.cursor to pointer to provide clicking affordance.
Let's add the Undo / Redo feature to provide better Safety in our capital game. The history for Undo / Redo should be stored in the Firebase database, too. The history for Undo / Redo is reset after the page is refreshed (Updated in May 11).
The history for Undo / Redo should be stored in the Firebase database, and they should be remaining after the page is refreshed. Please empty Question/Answer history and Undo/Redo history before submission so Undo / Redo buttons are disabled when we start grading (Updated in May 12)
id of pr3__undo.disabled attribute to disable button.id of pr3__redo.disabled attribute to disable button.Ctrl + Z, the game should behave the same as the Undo button click.Ctrl + Y, the game should behave the same as the Redo button click.