deploy: cc7876639c
parent
9cf11fbf2f
commit
7db2006faf
14
fx_core.js
14
fx_core.js
|
@ -1,6 +1,6 @@
|
|||
const dictionary = {"gIsTeamGame":"hM","playerId":"eU","playerNames":"jm","playerBalances":"eV","playerTerritories":"ez","gHumans":"h1","playerStates":"h3","gLobbyMaxJoin":"px","gIsSingleplayer":"im","gameState":"rS","uiSizes":"b0","gap":"gap","gMaxPlayers":"ed","i":"eD","rawPlayerNames":"a0X"};
|
||||
const fx_version = '0.6.4.2'; // FX Client Version
|
||||
const fx_update = 'May 22'; // FX Client Last Updated
|
||||
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 fx_version = '0.6.4.3'; // FX Client Version
|
||||
const fx_update = 'Jun 1'; // FX Client Last Updated
|
||||
|
||||
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
|
||||
var wins_counter = 0;
|
||||
|
@ -9,7 +9,13 @@ if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx
|
|||
var wins_counter = localStorage.getItem("fx_winCount");
|
||||
}
|
||||
|
||||
const getVar = varName => window[dictionary[varName]];
|
||||
const playerDataProperties = ["playerTerritories", "playerBalances", "rawPlayerNames"];
|
||||
const gameObjectProperties = ["playerId", "gIsTeamGame", "gHumans", "gLobbyMaxJoin", "gameState", "gIsSingleplayer"];
|
||||
const getVar = varName => {
|
||||
if (playerDataProperties.includes(varName)) return window[dictionary.playerData][dictionary[varName]];
|
||||
if (gameObjectProperties.includes(varName)) return window[dictionary.game][dictionary[varName]];
|
||||
return window[dictionary[varName]]
|
||||
};
|
||||
|
||||
// https://stackoverflow.com/a/6234804
|
||||
function escapeHtml(unsafe) {
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<meta itemprop="image" content="https://fxclient.github.io/FXclient/assets/logo.png">
|
||||
|
||||
<!-- FX Client CSS -->
|
||||
<link rel="stylesheet" href="main.css?1716409084457">
|
||||
<link rel="stylesheet" href="main.css?1717241042535">
|
||||
<!-- Game CSS -->
|
||||
<style>
|
||||
html,
|
||||
|
@ -122,8 +122,8 @@
|
|||
<p id="donationhistory_note">Note: donations from bots are not shown here</p>
|
||||
<table><tbody id="donationhistory_content"></tbody></table>
|
||||
</div>
|
||||
<script src="variables.js?1716409084457"></script>
|
||||
<script src="fx_core.js?1716409084457"></script>
|
||||
<script src="game.js?1716409084457"></script>
|
||||
<script src="variables.js?1717241042535"></script>
|
||||
<script src="fx_core.js?1717241042535"></script>
|
||||
<script src="game.js?1717241042535"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue