alt440 / WebGeography

World Geography using HTML, jQuery, ReactJS, nodeJS and CSS
0 stars 0 forks source link

Winning page examMaxScore.ejs do not send score #2

Closed alt440 closed 5 years ago

alt440 commented 5 years ago

Once the user has a mistake in the game, the page directly redirects to the gameOver.ejs file. If he/she has all the right answers, the user goes to examMaxScore.ejs. However, that page does not send the score the user has.

alt440 commented 5 years ago

An if condition inside the scoreHandling.js file handles that (in the post section of sendScore.html). We look at the examArrayInit variable, instantiated from examArrayMgmt.js, and this determines if we are going to the examMaxScore file.