gh-pages
peshomir 2024-03-01 07:56:30 +00:00
parent afb2558e45
commit 97e9f896e5
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
const fx_version = '0.6.1.6'; // FX Client Version
const fx_update = 'Feb 28'; // FX Client Last Updated
const fx_version = '0.6.1.7'; // FX Client Version
const fx_update = 'Mar 1'; // FX Client Last Updated
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
var wins_counter = 0;
@ -212,6 +212,7 @@ WindowManager.add({
});
document.getElementById("canvasA").addEventListener("mousedown", WindowManager.closeAll);
document.getElementById("canvasA").addEventListener("touchstart", WindowManager.closeAll);
document.addEventListener("keydown", event => { if (event.key === "Escape") WindowManager.closeAll(); });
var settingsGearIcon = document.createElement('img');
settingsGearIcon.setAttribute('src', 'geari_white.png');
@ -253,8 +254,8 @@ function displayDonationsHistory(playerID, playerNames, isSingleplayer) {
var utils = new (function() {
this.getMaxTroops = function(playerTerritories, playerID) { return (playerTerritories[playerID]*150).toString(); };
this.getDensity = function(playerBalances, playerTerritories, playerID) {
if (settings.densityDisplayStyle === "percentage") return (Math.floor((playerBalances[playerID] / ((playerTerritories[playerID] === 0 ? 1 : playerTerritories[playerID]) * 150)) * 100) + "%");
else return (playerBalances[playerID] / (playerTerritories[playerID] === 0 ? 1 : playerTerritories[playerID])).toFixed(0);
if (settings.densityDisplayStyle === "percentage") return (((playerBalances[playerID] / ((playerTerritories[playerID] === 0 ? 1 : playerTerritories[playerID]) * 150)) * 100).toFixed(1) + "%");
else return (playerBalances[playerID] / (playerTerritories[playerID] === 0 ? 1 : playerTerritories[playerID])).toFixed(1);
};
});

View File

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