Navigation Menu

Skip to content

Commit

Permalink
Experiment with loading some content...
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 1, 2010
1 parent bccdb0f commit 7ca061d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions index.html
Expand Up @@ -9,28 +9,23 @@

function render()
{
var html =
"<img src='" + profile.avatarurl_small + "'/><br/>" +
profile.nickname + " (<a href='" + profile.profileurl + "'>" +
profile.steamid + "</a>)<br/><table border='0'>"
$('img.avatar').attr('src', profile.avatarurl_small);
$('div.nickname').text(profile.nickname);

var gameidx;
for (gameidx in profile.gamelist)
{
var game = profile.gamelist[gameidx];
html += "<tr><td><img width='189' height='69'src='" + game.logourl + "'/>" +
var html = "<tr><td><img width='189' height='69'src='" + game.logourl + "'/>" +
"<a href='steam://run/" + game.appid + "'>" + game.title +
"</a>";

var tagidx;
for (tagidx in game.tags)
html += " " + game.tags[tagidx];
html += "</td></tr>";
$('table.gametable > tbody:last').append(html);
} // for

html += "</table>";

$('div.content').html(html);
} // render

function process_steam_profile(xml)
Expand Down Expand Up @@ -111,7 +106,13 @@
</script>
</head>
<body>
<div class='content'><center>Loading your steam profile...</center></div>
<div style="width:100%;">
<img class='avatar' src='loading.gif'/>
<div class='nickname'>Loading your steam profile...</div>
<div style='width:100%; overflow:auto;'>
<table class='gametable'><tbody></tbody></table>
</div>
</div>
</body>
</html>

0 comments on commit 7ca061d

Please sign in to comment.