diff --git a/WebGames-master/WebGames-master/index.html b/WebGames-master/WebGames-master/index.html index ad93d87d..3a44311f 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 cbcb81e4..5f40672b 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + Moon Gaming @@ -13,6 +14,7 @@
+
diff --git a/setting.html b/setting.html index b9300912..a61e2ca2 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 @@ -277,6 +282,49 @@ // Apply saved Text-to-Speech preference on load applyTextToSpeechSetting(textToSpeechEnabled); + // Date and Time Toggle + const toggleDateTimeButton = document.getElementById('toggleDateTime'); + const dateTimeEnabled = getCookie('dateTime') === 'true'; + + function applyDateTimeSetting(enabled) { + if (enabled) { + toggleDateTimeButton.textContent = 'Disable'; + } else { + toggleDateTimeButton.textContent = 'Enable'; + } + } + + toggleDateTimeButton.addEventListener('click', () => { + const isDateTimeEnabled = getCookie('dateTime') === 'true'; + setCookie('dateTime', !isDateTimeEnabled, 30); // Save preference for 30 days + applyDateTimeSetting(!isDateTimeEnabled); + }); + + // 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' @@ -319,6 +367,8 @@ applyFPSCounterSetting(false); // Default: FPS Counter disabled 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!'); });