From f1d819294c7fd2ecb81b2b74f4e3a5b908dd9059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 7 Jul 2025 20:43:37 +0200 Subject: [PATCH 1/2] Tag `` is a self-closing tag --- index.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 5551928..62dff8a 100644 --- a/index.html +++ b/index.html @@ -2,14 +2,14 @@ - + Space Company - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + - +
From fc4fe490b47c565bbc8bfebf3ac2a75691fe98a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 7 Jul 2025 21:33:22 +0200 Subject: [PATCH 2/2] Continued: - added POSIX new-line at end of file - remove white spaces --- building.js | 2 +- core.js | 2 +- game.js | 2 +- oembed.json | 2 +- package.json | 2 +- resource.js | 2 +- rocket.js | 2 +- rocketParts.js | 6 +++--- star.js | 8 +++----- tech.js | 2 +- 10 files changed, 14 insertions(+), 16 deletions(-) diff --git a/building.js b/building.js index 12e1130..8fdc03e 100644 --- a/building.js +++ b/building.js @@ -97,4 +97,4 @@ Game.buildings = (function(){ }; return instance; -}()); \ No newline at end of file +}()); diff --git a/core.js b/core.js index 7ad3564..dec9eae 100644 --- a/core.js +++ b/core.js @@ -1307,7 +1307,7 @@ copyTextareaBtn.addEventListener('click', function(event) { //ToolTips $(document).ready(function(){ - $('[data-toggle="tooltip"]').tooltip({container: 'body'}); + $('[data-toggle="tooltip"]').tooltip({container: 'body'}); }); //Change Company Name diff --git a/game.js b/game.js index d06ad63..a151e25 100644 --- a/game.js +++ b/game.js @@ -397,7 +397,7 @@ var Game = (function() { $('[data-toggle="tooltip"]').tooltip(); console.debug("Loading Game"); - + this.createInterval("Loading Animation", this.loadAnimation, 10); this.createInterval("Loading", this.loadDelay, 1000); diff --git a/oembed.json b/oembed.json index 220214b..fe15250 100644 --- a/oembed.json +++ b/oembed.json @@ -1,5 +1,5 @@ { - "title": "Space Company", + "title": "Space Company", "author_name": "Sparticle999", "author_url": "https://sparticle999.github.io/SpaceCompany" } diff --git a/package.json b/package.json index f698a0e..3ff7816 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "homepage": "https://github.com/sparticle999/SpaceCompany", "licenses": "", "author": { - "name": "sparticle999" + "name": "sparticle999" }, "engines": { "node": ">= 0.10.0" diff --git a/resource.js b/resource.js index cf1c598..6c52b7b 100644 --- a/resource.js +++ b/resource.js @@ -283,4 +283,4 @@ Game.resources = (function(){ }; return instance; -}()); \ No newline at end of file +}()); diff --git a/rocket.js b/rocket.js index 863c7f8..aa27c7c 100644 --- a/rocket.js +++ b/rocket.js @@ -58,4 +58,4 @@ Game.interstellar.rocket = (function(){ return instance; -}()); \ No newline at end of file +}()); diff --git a/rocketParts.js b/rocketParts.js index 63988e5..541f986 100644 --- a/rocketParts.js +++ b/rocketParts.js @@ -8,7 +8,7 @@ Game.interstellar.rocketParts = (function(){ instance.initialise = function(){ for (var id in Game.rocketPartsData) { var data = Game.rocketPartsData[id]; - + this.navCount++; this.entries[id] = $.extend({}, data, { id: id, @@ -49,7 +49,7 @@ Game.interstellar.rocketParts = (function(){ this.entries[entryName].count = Math.min(newValue, this.entries[entryName].max); for(var resource in this.entries[entryName].cost){ window[resource.toString()] -= this.entries[entryName].cost[resource.toString()]; - } + } this.entries[entryName].displayNeedsUpdate = true; } } @@ -67,4 +67,4 @@ Game.interstellar.rocketParts = (function(){ return instance; -}()); \ No newline at end of file +}()); diff --git a/star.js b/star.js index 892a407..4b0d74c 100644 --- a/star.js +++ b/star.js @@ -7,11 +7,11 @@ Game.interstellar.stars = (function(){ instance.starCount = 0; instance.systemsConquered = 0; - + instance.initialise = function() { for (var id in Game.starData) { var data = Game.starData[id]; - + this.starCount++; this.entries[id] = $.extend({}, data, { id: id, @@ -22,7 +22,6 @@ Game.interstellar.stars = (function(){ owned: false, displayNeedsUpdate: false, }); - } console.debug("Loaded " + this.starCount + " Stars"); @@ -54,7 +53,6 @@ Game.interstellar.stars = (function(){ instance.getStarData = function(id) { return this.entries[id]; }; - return instance; -}()); \ No newline at end of file +}()); diff --git a/tech.js b/tech.js index 807362f..2606ec6 100644 --- a/tech.js +++ b/tech.js @@ -254,4 +254,4 @@ Game.tech = (function(){ }; return instance; -}()); \ No newline at end of file +}());