Skip to content

Commit

Permalink
First version complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
howar31 committed Apr 16, 2014
1 parent 7b05c63 commit 0db02e6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
Binary file removed .index.html.swp
Binary file not shown.
13 changes: 13 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@ body {
font-size: 1.2em;
font-weight: bold;
}

.row:nth-child(even) {
background: #F8F8F8;
}

.wbname {
}

.pstime {
}

.localtime {
}
15 changes: 9 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h1 id="header-title">Guild Wars 2 Timer</h1>
</div>
<div id="table-worldboss">
<div class="row table-header">
<div class="col-md-6">World Boss</div>
<div class="col-md-3">US Pacific Time (Server Time)</div>
<div class="col-md-6" id="wbname-title">World Boss</div>
<div class="col-md-3" id="psttime-title">US Pacific Time (Server Time)</div>
<div class="col-md-3" id="localtime-title">Local Time</div>
</div>
</div>
Expand Down Expand Up @@ -73,9 +73,6 @@ <h1 id="header-title">Guild Wars 2 Timer</h1>
var k = 0;
var wbt = new Array();
while(json.worldboss[i]) {
// var tmp = '<div class="row">'
// +'<div class="col-md-6">'+json.worldboss[i].name+'</div>';
// $("#table-worldboss").append(tmp);
var j = 0;
while(json.worldboss[i].uptime[j]) {
sec = str2sec(json.worldboss[i].uptime[j]);
Expand All @@ -86,7 +83,13 @@ <h1 id="header-title">Guild Wars 2 Timer</h1>
}
wbt.sort(sortByTime);
for (i = 0; i<k; i++) {
console.log(wbt[i]);
var lctime = sec2str(wbt[i].upsec + ((7 + getTimezone()) * 3600));
var tmp = '<div class="row">'
+'<div class="col-md-6 wbname">'+wbt[i].name+'</div>'
+'<div class="col-md-3 psttime">'+wbt[i].uptime+'</div>'
+'<div class="col-md-3 localtime">'+lctime+'</div>'
+'</div>';
$("#table-worldboss").append(tmp);
}
});

Expand Down

0 comments on commit 0db02e6

Please sign in to comment.