1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00
This commit is contained in:
zumbiepig 2024-08-22 07:26:35 -07:00
parent e0c4d471c6
commit fe9ab09266
No known key found for this signature in database
GPG Key ID: 17C891BE28B953DE
3 changed files with 9 additions and 10 deletions

View File

@ -11,6 +11,7 @@
<script src="/resources/scripts/main.js"></script>
</head>
<body>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1132419379737567" crossorigin="anonymous"></script>
<div class="ads-container">
<ins class="adsbygoogle" style="display: block" data-ad-client="ca-pub-1132419379737567" data-ad-slot="3280170072" data-ad-format="auto" data-full-width-responsive="true"></ins>
</div>
@ -123,9 +124,7 @@
<ins class="adsbygoogle" style="display: block" data-ad-client="ca-pub-1132419379737567" data-ad-slot="3280170072" data-ad-format="auto" data-full-width-responsive="true"></ins>
</div>
<script>
if (storage.local.get('showAds') !== false) {
(adsbygoogle = window.adsbygoogle || []).push({});
}
</script>
</body>
</html>

View File

@ -18,12 +18,12 @@ body {
justify-content: center;
}
.ads-container {
/*.ads-container {
display: none;
}
}*/
.launcher {
width: 75vw;
width: 65vw;
height: 95vh;
margin: 15px auto 0 auto;
background-color: #333;

View File

@ -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';
@ -341,7 +341,7 @@ if (window.location.pathname === '/') {
adsContainer.style.display = 'block';
}
});
}
}*/
document.addEventListener('DOMContentLoaded', () => {
const profileName = document.getElementById('profile-name');