Skip to content
This repository was archived by the owner on Feb 8, 2020. It is now read-only.

Commit 39211b3

Browse files
committed
fixed links, use local files
1 parent b2650c8 commit 39211b3

10 files changed

+94
-88
lines changed

records.html

+80-80
Large diffs are not rendered by default.

web/analysis.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179

180180
?>
181181
<center>
182-
<h2>Analysis of <a target="_blank" href="https://halite.io/user/?user_id=<?php echo $user_id; ?>"><?php echo $player->username; ?></a> v<?php echo $version.($finals ? "-finals" : ""); ?><i class="fas fa-sync-alt" style="font-size: 19px;margin-top: -3px;margin-left: 10px;color: #54adee;cursor: pointer;" onclick="$('#analyse-version').trigger('change');"></i></h2>
182+
<h2>Analysis of <a target="_blank" href="https://2018.halite.io/user/?user_id=<?php echo $user_id; ?>"><?php echo $player->username; ?></a> v<?php echo $version.($finals ? "-finals" : ""); ?><i class="fas fa-sync-alt" style="font-size: 19px;margin-top: -3px;margin-left: 10px;color: #54adee;cursor: pointer;" onclick="$('#analyse-version').trigger('change');"></i></h2>
183183
<h4>
184184
Games: <?php echo formatNumber($games_count); ?> (<?php echo formatNumber($challenges_count); ?> challenge games excluded)<br>
185185
Timeouts: <?php echo formatNumber($timeouts); ?> (<?php echo round($timeouts / $games_count * 100, 2);?>%)<br>

web/bg-pattern.png

379 KB
Loading

web/full_logo.svg

+1
Loading

web/index.php

+12-7
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
background-color: #091B53;
4949
background-size: 100% auto;
5050
background-repeat: repeat-y;
51-
background-image: linear-gradient(0deg, rgba(0,45,119,0) 4%, #003A99 100%),url(https://halite.io/assets/images/bg-pattern.png);
51+
background-image: linear-gradient(0deg, rgba(0,45,119,0) 4%, #003A99 100%),url(bg-pattern.png);
5252
color: rgba(255,255,255,0.8);
5353
font-family: "Nunito Sans","Helvetica Neue","Helvetica","Arial",sans-serif;
5454

@@ -282,7 +282,7 @@
282282
</head>
283283
<body>
284284
<div class="container">
285-
<img class="logo" alt="Halite" src="https://halite.io/assets/images/full_logo.svg">
285+
<img class="logo" alt="Halite" src="full_logo.svg">
286286
<div class="title subtitle">Statistics</div>
287287
<div class="content">
288288
<div class="tabs">
@@ -404,10 +404,15 @@
404404
<?php echo formatNumber($games_users_count); ?> users in games<br>
405405
Page generated in <span class="generated"></span>ms<br>
406406
<br>
407-
<a href="https://forums.halite.io/t/collection-of-post-mortems-bot-source-code/1335.html" target="_blank">Collection of Post-mortems & Bot Source Code for Halite III</a>
407+
You can find the source code for this website <a href="https://github.com/mlomb/halite2018-stats" target="_blank">here</a>.
408+
409+
<br>
410+
<br>
411+
<a href="https://forums.halite.io/t/collection-of-post-mortems-bot-source-code/1335.html" target="_blank">Collection of Post-mortems & Bot Source Code for Halite III</a>
412+
408413
<br>
409414
<br>
410-
Games are fetched every 5 seconds. The leaderboard every 10 seconds. Records are computed every hour.<br>
415+
<strike>Games are fetched every 5 seconds. The leaderboard every 10 seconds. Records are computed every hour.</strike> The competition is over!<br>
411416
For suggestions and improvements <a href="https://discordapp.com/users/129079402548953088/" target="_bank">ping me</a> on Discord!
412417
<br>
413418
<br>
@@ -416,7 +421,7 @@
416421
</div>
417422
</div>
418423
<div class="footer">
419-
<span>by <a href="https://2018.halite.io/user/?user_id=206" target="_blank">mlomb</a> (<a href="https://github.com/mlomb" target="_blank">GitHub</a>)<span>
424+
<span>by <a href="https://mlomb.me" target="_blank">mlomb</a> (<a href="https://github.com/mlomb" target="_blank">GitHub</a>)<span>
420425
</div>
421426
</div>
422427
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
@@ -772,7 +777,7 @@ function leaderboardRankToTierImage(rank) {
772777
if(tier_index == 0) return "";
773778
var name = tierNameFromIndex(tier_index);
774779

775-
return '<img class="tier" src="https://2018.halite.io/assets/images/level-' + tier_index + '.png" alt="' + name + '" title="' + name + '">';
780+
return '<img class="tier" src="level-' + tier_index + '.png" alt="' + name + '" title="' + name + '">';
776781
}
777782
function getProfileImage(player, only_url) {
778783
// TODO Google Fallback
@@ -919,7 +924,7 @@ function updateLiveGameFeed() {
919924
var row = $(`
920925
<tr data-game-id="` + game.game_id + `">
921926
<td>
922-
<a href="https://halite.io/play?game_id=` + game.game_id + `" target="_blank">` + d.toLocaleString() + `</a><br>
927+
<a href="https://2018.halite.io/play?game_id=` + game.game_id + `" target="_blank">` + d.toLocaleString() + `</a><br>
923928
<time class="timeago" datetime="` + d.toISOString() + `"></time>
924929
</td>
925930
<td style="padding: 10px 0;"><table class="result-table">` + result_html + `</table></td>

web/level-1.png

2.14 KB
Loading

web/level-2.png

2.14 KB
Loading

web/level-3.png

2.71 KB
Loading

web/level-4.png

2.66 KB
Loading

web/level-5.png

2.68 KB
Loading

0 commit comments

Comments
 (0)