diff --git a/public/404.html b/public/404.html index 2ed578c..53a9eec 100644 --- a/public/404.html +++ b/public/404.html @@ -3,7 +3,7 @@ - 404 | MineXLauncher + MineXLauncher @@ -12,6 +12,9 @@ +
+ +
MineXLauncher 1.5 @@ -35,5 +38,8 @@
+
+ +
diff --git a/public/home/archive/index.html b/public/home/archive/index.html index 25d88e1..f062734 100644 --- a/public/home/archive/index.html +++ b/public/home/archive/index.html @@ -3,7 +3,7 @@ - Archive | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -213,5 +216,8 @@
+
+ +
diff --git a/public/home/clients/index.html b/public/home/clients/index.html index 09daa87..ac5ab54 100644 --- a/public/home/clients/index.html +++ b/public/home/clients/index.html @@ -3,7 +3,7 @@ - Clients | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -96,5 +99,8 @@
+
+ +
diff --git a/public/home/downloads/index.html b/public/home/downloads/index.html index d1f0e6f..cb58066 100644 --- a/public/home/downloads/index.html +++ b/public/home/downloads/index.html @@ -3,7 +3,7 @@ - Offline Downloads | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -82,5 +85,8 @@
+
+ +
diff --git a/public/home/game/index.html b/public/home/game/index.html index 5c4340d..85f0afb 100644 --- a/public/home/game/index.html +++ b/public/home/game/index.html @@ -3,7 +3,7 @@ - Game | MineXLauncher + MineXLauncher @@ -11,7 +11,6 @@ -
@@ -123,8 +122,5 @@
- diff --git a/public/mobile/index.html b/public/mobile/index.html index 82896de..45d1019 100644 --- a/public/mobile/index.html +++ b/public/mobile/index.html @@ -3,7 +3,7 @@ - Mobile | MineXLauncher + MineXLauncher diff --git a/public/mods/client/index.html b/public/mods/client/index.html index 19c90f6..99eb8da 100644 --- a/public/mods/client/index.html +++ b/public/mods/client/index.html @@ -3,7 +3,7 @@ - Mod Client | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -68,5 +71,8 @@
+
+ +
diff --git a/public/mods/mods/index.html b/public/mods/mods/index.html index fbbe73c..cc45ac0 100644 --- a/public/mods/mods/index.html +++ b/public/mods/mods/index.html @@ -3,7 +3,7 @@ - Mods | MineXLauncher + MineXLauncher @@ -12,6 +12,9 @@ +
+ +
MineXLauncher 1.5 @@ -66,5 +69,8 @@
+
+ +
diff --git a/public/mods/resourcepacks/index.html b/public/mods/resourcepacks/index.html index 00acd6a..e35ccf6 100644 --- a/public/mods/resourcepacks/index.html +++ b/public/mods/resourcepacks/index.html @@ -3,7 +3,7 @@ - Resource Packs | MineXLauncher + MineXLauncher @@ -12,6 +12,9 @@ +
+ +
MineXLauncher 1.5 @@ -66,5 +69,8 @@
+
+ +
diff --git a/public/offline.html b/public/offline.html index 5a091e9..c604b59 100644 --- a/public/offline.html +++ b/public/offline.html @@ -3,7 +3,7 @@ - Offline | MineXLauncher + MineXLauncher @@ -12,6 +12,9 @@ +
+ +
MineXLauncher 1.5 @@ -35,5 +38,8 @@
+
+ +
diff --git a/public/resources/styles/themes/default.css b/public/resources/styles/themes/default.css index 0f8e178..5214395 100644 --- a/public/resources/styles/themes/default.css +++ b/public/resources/styles/themes/default.css @@ -18,9 +18,9 @@ body { justify-content: center; } -/*.ads-container { +.ads-container { display: none; -}*/ +} .launcher { width: 65vw; diff --git a/public/servers/index.html b/public/servers/index.html index 53657fb..ad1bad9 100644 --- a/public/servers/index.html +++ b/public/servers/index.html @@ -3,7 +3,7 @@ - Server List | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -60,5 +63,8 @@
+
+ +
diff --git a/public/settings/index.html b/public/settings/index.html index e661135..0bab7b5 100644 --- a/public/settings/index.html +++ b/public/settings/index.html @@ -3,7 +3,7 @@ - Settings | MineXLauncher + MineXLauncher @@ -12,6 +12,9 @@ +
+ +
MineXLauncher 1.5 @@ -91,5 +94,8 @@
+
+ +
diff --git a/public/updates/index.html b/public/updates/index.html index cb40c55..d5f478e 100644 --- a/public/updates/index.html +++ b/public/updates/index.html @@ -3,7 +3,7 @@ - Updates | MineXLauncher + MineXLauncher @@ -11,6 +11,9 @@ +
+ +
MineXLauncher 1.5 @@ -94,5 +97,8 @@
+
+ +
diff --git a/public/welcome/index.html b/public/welcome/index.html index 400e718..6a89482 100644 --- a/public/welcome/index.html +++ b/public/welcome/index.html @@ -3,7 +3,7 @@ - Welcome | MineXLauncher + MineXLauncher diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index 7d56986..7386995 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -326,7 +326,7 @@ if (window.location.pathname === '/') { } */ serviceworker.register('/sw.js'); } else { - /*if (storage.local.get('showAds') !== false) { + if (storage.local.get('showAds') !== false) { const googleAdsScript = document.createElement('script'); googleAdsScript.async = true; googleAdsScript.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1132419379737567'; @@ -334,14 +334,17 @@ if (window.location.pathname === '/') { document.head.appendChild(googleAdsScript); document.addEventListener('DOMContentLoaded', () => { - const adsContainers = document.getElementsByClassName('ads-container'); + const googleAdsPush = document.createElement('script'); + googleAdsPush.text = '(adsbygoogle = window.adsbygoogle || []).push({});'; + document.body.appendChild(googleAdsPush); + const adsContainers = document.getElementsByClassName('ads-container'); for (let i = 0; i < adsContainers.length; i++) { const adsContainer = adsContainers[i] as HTMLElement; adsContainer.style.display = 'block'; } }); - }*/ + } document.addEventListener('DOMContentLoaded', () => { const profileName = document.getElementById('profile-name');