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 | |
parent | 2d290b23c402561ef30c1de665895c120dd79483 (diff) | |
download | pathery-e33b5d091f125b8b757f4fce6520324882f8010d.tar.xz |
Fix; Tutorial bandaid.
Fix; Scoreboard alignment issue.
Update; About page.
-rw-r--r-- | do.php | 2 | ||||
-rw-r--r-- | js/scores.js | 24 | ||||
-rw-r--r-- | pages/about.php | 23 | ||||
-rw-r--r-- | pages/tutorial.php | 4 |
4 files changed, 29 insertions, 24 deletions
@@ -48,7 +48,7 @@ if ($_GET['r'] == 'reqScorePage') { return;
//Include the notification text
- $json = getScores($mapID, $page, 3);
+ $json = getScores($mapID, $page, 10);
$json['mapid'] = $mapID;
$json['page'] = $page;
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>";
diff --git a/pages/about.php b/pages/about.php index 77d7712..3276f0f 100644 --- a/pages/about.php +++ b/pages/about.php @@ -1,5 +1,5 @@ <?PHP
-htmlHeader(array());
+htmlHeader(array(), 'About', 'About Pathery.com');
?>
<link href="https://plus.google.com/105148482605711831543" rel="publisher" />
@@ -39,10 +39,16 @@ topbar($Links); <h3>Created by:</h3>
Patrick Davison (Snap) and Rex Ounekeo
- <h3>Special thanks:</h3>
- <h4>Programmers:</h4>
+ <h2>Special thanks:</h2>
+ <h3>Inspirations:</h3>
+ <h4>Tower defense games like:</h4>
+ Goa's Random TD game on Starcraft 2
+ <br />Xeno Tactics
+ <br />Desktop Tower Defense
+ <br />The original; - Sunken Defense and it's many clones. From Starcraft.
+ <h3>Programmers:</h3>
raylu
- <h4>Testers:</h4>
+ <h3>Testers:</h3>
Steven Gosling
<br />Patrick's Family
<br />Josh
@@ -51,7 +57,16 @@ topbar($Links); <br />Radivel
<br />Splax
<br />chord
+
+ <h3>Other Mentions:</h3>
+ Mixpanel has been friendly and helpful:
+ <br />
+<a href='https://mixpanel.com/f/partner'><img src='https://mixpanel.com/site_media/images/partner/badge_blue.png' alt='Mobile Analytics' /></a>
+
</div>
+<br />
+
+
<?php
htmlFooter();
diff --git a/pages/tutorial.php b/pages/tutorial.php index 1965f51..95a5a53 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -1,8 +1,8 @@ <?php
if ($request == 'tutorial')
- htmlHeader(array('tutorial'), 'Pathery Tutorial', 'How to play Pathery');
+ htmlHeader(array('tutorial'), 'Pathery Tutorial', 'How to play Pathery', array('scores') );
else
- htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific');
+ htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific', array('scores') );
?>
<body>
|