From dca136890b88de9837ff0443bb3c8adfab8f2c05 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 27 Jan 2025 22:37:26 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 150 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 85 insertions(+), 65 deletions(-) diff --git a/TGBeta.ps1 b/TGBeta.ps1 index bd97b32..336d1cc 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -738,66 +738,81 @@ function GetHtmlContent {
-

Tweaks

-
- -
-

System Optimizations

-
- - - -
-
+

Tweaks

+
+ +
+

System Optimizations

+
+ + + + +
+
- -
-

Additional Tweaks

-
- - - -
-
+ +
+

Additional Tweaks

+
+ + + +
+
- -
-

Miscellaneous

-
- - -
-
-
+ +
+

Miscellaneous

+
+ + +
+
+
+ +
+ +
+
-
- -
-
@@ -939,14 +954,19 @@ function GetHtmlContent { }); } - function updateSelectAllTweaks() { - const selectAllCheckbox = document.getElementById('selectAllTweaksCheckbox'); - const checkboxes = document - .getElementById('tweaksTab') - .querySelectorAll('input[type="checkbox"]:not(#selectAllTweaksCheckbox)'); - - // If any checkbox is unchecked, uncheck "Select All" - selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked); + function toggleRadioButtons(checkbox) { + const radioGroup = document.getElementById("windowsPerformanceOptions"); + if (checkbox.checked) { + radioGroup.style.display = "block"; + } else { + radioGroup.style.display = "none"; + // Optionally, reset the radio buttons to their default state + const radios = radioGroup.querySelectorAll('input[type="radio"]'); + radios.forEach(radio => { + radio.checked = false; + }); + radios[2].checked = true; // Reset to "None" + } } // Attach the updateSelectAllTweaks function to all individual checkboxes