Submitting scores is great, but the whole point is to be able to compare ourselves against the rest of the world. To do that, we need to create a new view: the High Scores view. When done, it will look like what is shown in the following screenshot:
Just for full disclosure, all these scores are mine and not of the people mentioned in the preceding screenshot. This is just a nice shout-out to some of those who have been involved with the book.
First, let's create a couple of templates. The main template will be for the view, while each particular score will have a simpler template.
In www/html/highScoresView.html
, let's create a template for view:
<html> <body> <div class="ui-scroll-container"> <div class="high-scores-title">%HIGH_SCORES%</div> <div class="ui-scroll-container high-scores"> <table class="high-scores-table"> <thead> <tr><th width...