Update TGBeta.ps1
This commit is contained in:
38
TGBeta.ps1
38
TGBeta.ps1
@@ -749,9 +749,23 @@ function GetHtmlContent {
|
||||
Set Edge Default Search Engine
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="setWindowsPerformance" id="setWindowsPerformanceCheckbox">
|
||||
<input type="checkbox" name="setWindowsPerformance" id="setWindowsPerformanceCheckbox" onclick="toggleRadioButtons(this)">
|
||||
Optimize Windows Performance
|
||||
</label>
|
||||
<div class="radio-group" id="windowsPerformanceOptions" style="margin-left: 20px; display: none;">
|
||||
<label>
|
||||
<input type="radio" name="optimizeWindowsPerformanceLevel" value="full">
|
||||
Full
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="optimizeWindowsPerformanceLevel" value="partial">
|
||||
Partial
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="optimizeWindowsPerformanceLevel" value="none" checked>
|
||||
None
|
||||
</label>
|
||||
</div>
|
||||
<label>
|
||||
<input type="checkbox" name="stopUnnecessaryServices" id="stopUnnecessaryServicesCheckbox">
|
||||
Stop Unnecessary Services
|
||||
@@ -799,6 +813,7 @@ function GetHtmlContent {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Shared Exit Button -->
|
||||
<div class="button-group">
|
||||
<button class="exit-button" onclick="endSession()">Exit</button>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user