gh-pages
peshomir 2024-06-24 16:01:36 +00:00
parent c6e7257b7b
commit d51aaed77d
3 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
const dictionary = {"gIsTeamGame":"hT","game":"b","playerId":"ea","playerData":"a6","playerNames":"jt","rawPlayerNames":"tL","playerBalances":"eb","playerTerritories":"f5","gameState":"sh","fontSize":"fontSize","x":"fO","y":"fP","canvas":"gW","gHumans":"ht","playerStates":"vZ","fontGeneratorFunction":"aZ.g5.g6","gIsSingleplayer":"iv","gLobbyMaxJoin":"qI","SingleplayerMenu":"z","getSingleplayerPlayerCount":"wW","gMaxPlayers":"ej","gBots":"ip","Translations":"aW","txt":"no","strs":"a2B","uiSizes":"b1","gap":"gap","i":"eJ"}; const dictionary = {"gIsTeamGame":"hT","game":"b","playerId":"ea","playerData":"a6","playerNames":"jt","rawPlayerNames":"tL","playerBalances":"eb","playerTerritories":"f5","gameState":"sh","fontSize":"fontSize","x":"fO","y":"fP","canvas":"gW","gHumans":"ht","playerStates":"vZ","fontGeneratorFunction":"aZ.g5.g6","gIsSingleplayer":"iv","gLobbyMaxJoin":"qI","SingleplayerMenu":"z","getSingleplayerPlayerCount":"wW","gMaxPlayers":"ej","gBots":"ip","Translations":"aW","txt":"no","strs":"a2B","uiSizes":"b1","gap":"gap","i":"eJ"};
const fx_version = '0.6.4.7'; // FX Client Version const fx_version = '0.6.4.8'; // FX Client Version
const fx_update = 'Jun 20'; // FX Client Last Updated const fx_update = 'Jun 24'; // 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;
@ -436,13 +436,17 @@ const leaderboardFilter = new (function() {
}); });
const hoveringTooltip = new (function() { const hoveringTooltip = new (function() {
let recentlyShown = false;
this.display = () => {}; // this gets populated by the modified game script this.display = () => {}; // this gets populated by the modified game script
this.canvasPixelScale = 1; this.canvasPixelScale = 1;
document.getElementById("canvasA").addEventListener("mousemove", e => { document.getElementById("canvasA").addEventListener("mousemove", e => {
if (!settings.hoveringTooltip || !getVar("gameState")) return; if (!settings.hoveringTooltip || !getVar("gameState") || recentlyShown) return;
recentlyShown = true;
try { try {
this.display(this.canvasPixelScale * e.clientX, this.canvasPixelScale * e.clientY); this.display(this.canvasPixelScale * e.clientX, this.canvasPixelScale * e.clientY);
} catch (e) { console.error(e) } } catch (e) { console.error(e) }
// for better performance, reduce the tooltip display frequency to no more than once every 100 ms
setTimeout(() => recentlyShown = false, 100);
}); });
}); });

View File

@ -17,7 +17,7 @@ function bE() {
function cc() { function cc() {
this.dG = 1044, this.ct = function() { this.dG = 1044, this.ct = function() {
dA = 2, dC = 23, dB = "23 Jun 2024 [1.96.0]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io"), dF = function() { dA = 2, dC = 23, dB = "23 Jun 2024 [1.96.0]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io") || Math.random() >= 0.5, dF = function() {
try { try {
return window.self !== window.top return window.self !== window.top
} catch (dI) { } catch (dI) {

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?1719169937775"> <link rel="stylesheet" href="main.css?1719244894262">
<!-- 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?1719169937775"></script> <script src="variables.js?1719244894262"></script>
<script src="fx_core.js?1719169937775"></script> <script src="fx_core.js?1719244894262"></script>
<script src="game.js?1719169937775"></script> <script src="game.js?1719244894262"></script>
</body> </body>
</html> </html>