diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-01 12:03:17 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-01 12:03:17 -0700 |
commit | e33b5d091f125b8b757f4fce6520324882f8010d (patch) | |
tree | b3518305c680b48c7442b05ceda4441f9a064e32 /js | |
parent | 2d290b23c402561ef30c1de665895c120dd79483 (diff) | |
download | pathery-e33b5d091f125b8b757f4fce6520324882f8010d.tar.xz |
Fix; Tutorial bandaid.
Fix; Scoreboard alignment issue.
Update; About page.
Diffstat (limited to 'js')
-rw-r--r-- | js/scores.js | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/js/scores.js b/js/scores.js index 9985da1..60ca249 100644 --- a/js/scores.js +++ b/js/scores.js @@ -20,7 +20,7 @@ function scoresRequestPage(mapid, page) { //console.log("Requesting Page", mapid, page, ajax.inUse);
// == Additionally, check for achievements.
- ajax.requestFile = "do.php?checkachieve=true&r=reqScorePage&mapid="+mapid+"&reqPage="+page;
+ ajax.requestFile = "do.php?r=reqScorePage&mapid="+mapid+"&reqPage="+page;
ajax.onCompletion = scoresRequestPageDone; // Specify function to be executed on response.
//ajax.onLoading = '';
//ajax.onLoaded = '';
@@ -131,16 +131,16 @@ function scoresFormatPage(JO) { styleClass = 'border-top: 6px solid #777799;';
p = p+ "<tr style='"+styleClass+" background-color: "+u.background+"; color:"+u.displayColor+";' title='Scored "+scoredLocalTime.format("h:MM:ss TT")+"'>";
- p = p+ "<td style='text-align:right;'>";
+ p = p+ "<td style='text-align:left;'>";
// !! Don't forget to make sure these images are cached;
if (u.medal == 'gold') {
- p = p+ "<img src='../images/MedalGoldCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
+ p = p+ "<img title='Current Champion' src='../images/MedalGoldCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
} else if (u.medal == 'silver') {
- p = p+ "<img src='../images/MedalSilverCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
- }
- //p = p+ "<img src='../images/MedalGoldCAb.png' style='width:30px;height:30px;vertical-align:middle'>";
-
+ p = p+ "<img title='Tied Top Score' src='../images/MedalSilverCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
+ } else {
+ p = p+ "<img src='../images/blank.png' style='width:32px;height:32px;vertical-align:middle'>";
+ }
p = p+ i+ "</td>";
p = p+ "<td style='vertical-align: middle;'>";
p = p+ " <div class='grid_td' style='float:left; width:35px; height:35px; background:"+u.wallColor+" url(images/marks/"+u.wallEmblem+");'>";
@@ -150,16 +150,6 @@ function scoresFormatPage(JO) { p = p+ "";
p = p+ "<span style='float:left; padding: 5px 0px 3px 3px; width:120px; overflow:hidden; text-overflow: ellipsis; '><a href='achievements?id="+u.ID+"' style='color:"+u.displayColor+"'>"+u.display+"</a></span>";
p = p+ "</td>";
-
- //Medals commented out 'till able to use them in a more friendly way.
- // !! Don't forget to make sure these images are cached;
- // if (u.medal == 'gold') {
- // p = p+ "<td class='scoreMedal scoreGold'>"+u.moves+"</td>";
- // } else if (u.medal == 'silver') {
- // p = p+ "<td class='scoreMedal scoreSilver'>"+u.moves+"</td>";
- // } else {
- // p = p+ "<td class='scoreMedal'>"+u.moves+"</td>";
- // }
p = p+ "<td style='text-align:right;'>"+u.moves+"</td>";
p = p+ "</tr>";
|