gh-pages
peshomir 2024-06-05 07:47:33 +00:00
parent b40b06f683
commit ff0840d535
3 changed files with 3837 additions and 3796 deletions

View File

@ -1,6 +1,6 @@
const dictionary = {"gIsTeamGame":"hX","game":"b","playerId":"ed","playerData":"a8","playerNames":"jx","rawPlayerNames":"xb","playerBalances":"ee","playerTerritories":"f8","gLobbyMaxJoin":"qD","gMaxPlayers":"em","gIsSingleplayer":"iy","gameState":"sK","fontSize":"fontSize","x":"fR","y":"fS","canvas":"gW","gHumans":"h9","playerStates":"hB","Translations":"aZ","txt":"nr","strs":"a1d","uiSizes":"b4","gap":"gap","i":"eM"}; const dictionary = {"gIsTeamGame":"hX","game":"b","playerId":"ed","playerData":"a8","playerNames":"jx","rawPlayerNames":"xl","playerBalances":"ee","playerTerritories":"f8","gLobbyMaxJoin":"qD","gMaxPlayers":"em","gIsSingleplayer":"iy","gameState":"sT","fontSize":"fontSize","x":"fR","y":"fS","canvas":"gW","gHumans":"h9","playerStates":"hB","Translations":"aZ","txt":"nr","strs":"a1n","uiSizes":"b4","gap":"gap","i":"eM"};
const fx_version = '0.6.4.5'; // FX Client Version const fx_version = '0.6.4.6'; // FX Client Version
const fx_update = 'Jun 3'; // FX Client Last Updated const fx_update = 'Jun 5'; // FX Client Last Updated
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) { if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
var wins_counter = 0; var wins_counter = 0;
@ -361,6 +361,7 @@ const leaderboardFilter = new (function() {
this.hoveringOverTabs = false; this.hoveringOverTabs = false;
this.scrollToTop = () => {}; this.scrollToTop = () => {};
this.repaintLeaderboard = () => {}; this.repaintLeaderboard = () => {};
this.setUpdateFlag = () => {};
this.parseClanFromPlayerName = () => { console.warn("parse function not set"); }; this.parseClanFromPlayerName = () => { console.warn("parse function not set"); };
this.selectedTab = 0; this.selectedTab = 0;
@ -410,7 +411,10 @@ const leaderboardFilter = new (function() {
if (this.selectedTab !== tab) { if (this.selectedTab !== tab) {
this.selectedTab = tab; this.selectedTab = tab;
if (this.selectedTab === 0) this.clearFilter(); if (this.selectedTab === 0) this.clearFilter();
else if (this.selectedTab === 1) this.filterByOwnClan(); else if (this.selectedTab === 1) {
this.filterByOwnClan();
this.setUpdateFlag();
}
this.repaintLeaderboard(); this.repaintLeaderboard();
} }
return true; return true;

7597
game.js

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@
<meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png"> <meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png">
<!-- FX Client CSS --> <!-- FX Client CSS -->
<link rel="stylesheet" href="main.css?1717435018305"> <link rel="stylesheet" href="main.css?1717573651982">
<!-- Game CSS --> <!-- Game CSS -->
<style> <style>
html, html,
@ -122,8 +122,8 @@
<p id="donationhistory_note">Note: donations from bots are not shown here</p> <p id="donationhistory_note">Note: donations from bots are not shown here</p>
<table><tbody id="donationhistory_content"></tbody></table> <table><tbody id="donationhistory_content"></tbody></table>
</div> </div>
<script src="variables.js?1717435018305"></script> <script src="variables.js?1717573651982"></script>
<script src="fx_core.js?1717435018305"></script> <script src="fx_core.js?1717573651982"></script>
<script src="game.js?1717435018305"></script> <script src="game.js?1717573651982"></script>
</body> </body>
</html> </html>