Fixed miscellaneous bugs.

This commit is contained in:
Daniel Buckmaster 2014-05-17 20:01:52 +10:00
parent 380f112bd1
commit 7fe470d22f

View file

@ -70,7 +70,7 @@ root: .
</tr> </tr>
<tr> <tr>
<td>Release</td> <td>Release</td>
<td><img src="http://builds.garagegames.com/app/rest/builds/buildType:(id:bt79)/statusIcon"></img></td> <td><img src="http://builds.garagegames.com/app/rest/builds/buildType:(id:bt78)/statusIcon"></img></td>
</tr> </tr>
</table> </table>
</div> </div>
@ -160,6 +160,8 @@ $(document).ready(function() {
var ids = shuffle(Object.keys(images)); var ids = shuffle(Object.keys(images));
for(var i = 0; i < ids.length; i++) { for(var i = 0; i < ids.length; i++) {
$(this).append($('<img>') $(this).append($('<img>')
.attr('width', '760px')
.attr('height', '144px')
.attr('src', '{{page.root}}/img/banner'+ids[i]+'.jpg') .attr('src', '{{page.root}}/img/banner'+ids[i]+'.jpg')
.attr('title', images[ids[i]])); .attr('title', images[ids[i]]));
} }
@ -172,9 +174,11 @@ $(document).ready(function() {
var numResults = 2; var numResults = 2;
var feed = 'https://github.com/GarageGames/Torque3D/commits/development.atom'; var feed = 'https://github.com/GarageGames/Torque3D/commits/development.atom';
var now = new Date();
var googleAPI = document.location.protocol + var googleAPI = document.location.protocol +
'//ajax.googleapis.com/ajax/services/feed/load?' + '//ajax.googleapis.com/ajax/services/feed/load?' +
'v=1.0' + 'v=1.0' +
'&dailycache=' + [now.getUTCDate(), now.getUTCMonth(), now.getUTCFullYear()].join('-') +
'&num=' + numResults + '&num=' + numResults +
'&callback=?&q='; '&callback=?&q=';
var url = googleAPI + encodeURIComponent(feed); var url = googleAPI + encodeURIComponent(feed);