diff --git a/WebGames-master/WebGames-master/index.html b/WebGames-master/WebGames-master/index.html index c44c67a2..47813472 100644 --- a/WebGames-master/WebGames-master/index.html +++ b/WebGames-master/WebGames-master/index.html @@ -1,6 +1,7 @@ + Web Games diff --git a/gametoadd.html b/gametoadd.html index 72c478f9..b1650c10 100644 --- a/gametoadd.html +++ b/gametoadd.html @@ -1,19 +1,176 @@ - - - - home - - - -
Widget is loading comments...
- - - + + + + + + + Games to Add + + + + +

Games to Add

+ +
+ Home +
+ + + diff --git a/index.html b/index.html index 63658108..59eb778b 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + Moon Gaming @@ -87,6 +88,7 @@
+
diff --git a/setting.html b/setting.html index d64f6182..52f7f76c 100644 --- a/setting.html +++ b/setting.html @@ -2,6 +2,7 @@ + Settings @@ -95,6 +96,10 @@ Show Date and Time +
+ Show "Games Coming Soon" Button + +
Clear Cookies @@ -294,6 +299,27 @@ // Apply saved Date and Time preference on load applyDateTimeSetting(dateTimeEnabled); + // Games Coming Soon Toggle + const toggleGamesComingSoonButton = document.getElementById('toggleGamesComingSoon'); + const gamesComingSoonEnabled = getCookie('gamesComingSoon') === 'true'; + + function applyGamesComingSoonSetting(enabled) { + if (enabled) { + toggleGamesComingSoonButton.textContent = 'Disable'; + } else { + toggleGamesComingSoonButton.textContent = 'Enable'; + } + } + + toggleGamesComingSoonButton.addEventListener('click', () => { + const isGamesComingSoonEnabled = getCookie('gamesComingSoon') === 'true'; + setCookie('gamesComingSoon', !isGamesComingSoonEnabled, 30); // Save preference for 30 days + applyGamesComingSoonSetting(!isGamesComingSoonEnabled); + }); + + // Apply saved Games Coming Soon preference on load + applyGamesComingSoonSetting(gamesComingSoonEnabled); + // Regional Settings const regionSelect = document.getElementById('regionSelect'); const savedRegion = getCookie('region') || 'us'; // Default to 'us' @@ -337,6 +363,7 @@ applyMaturityFilterSetting(false); // Default: Maturity Filter disabled applyTextToSpeechSetting(false); // Default: Text-to-Speech disabled applyDateTimeSetting(false); // Default: Date and Time disabled + applyGamesComingSoonSetting(false); // Default: Games Coming Soon disabled alert('Settings have been reset to default!'); });