Adding HW 4
This commit is contained in:
27
hw4/js/infoPanel.js
Normal file
27
hw4/js/infoPanel.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/** Class implementing the infoPanel view. */
|
||||
class InfoPanel {
|
||||
/**
|
||||
* Creates a infoPanel Object
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the info panel to show info about the currently selected world cup
|
||||
* @param oneWorldCup the currently selected world cup
|
||||
*/
|
||||
updateInfo(oneWorldCup) {
|
||||
|
||||
// ******* TODO: PART III *******
|
||||
|
||||
// Update the text elements in the infoBox to reflect:
|
||||
// World Cup Title, host, winner, runner_up, and all participating teams that year
|
||||
|
||||
// Hint: For the list of teams, you can create an list element for each team.
|
||||
// Hint: Select the appropriate ids to update the text content.
|
||||
|
||||
//Set Labels
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user