Update TGBeta.ps1
This commit is contained in:
150
TGBeta.ps1
150
TGBeta.ps1
@@ -738,66 +738,81 @@ function GetHtmlContent {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="tweaksTab" class="tab-content inactive">
|
<div id="tweaksTab" class="tab-content inactive">
|
||||||
<h2>Tweaks</h2>
|
<h2>Tweaks</h2>
|
||||||
<div class="columns-container">
|
<div class="columns-container">
|
||||||
<!-- Column 1 -->
|
<!-- Column 1 -->
|
||||||
<div class="column" id="tweaksColumn1">
|
<div class="column" id="tweaksColumn1">
|
||||||
<h3>System Optimizations</h3>
|
<h3>System Optimizations</h3>
|
||||||
<div class="checkbox-group">
|
<div class="checkbox-group">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="setedgedefaultsearch" id="setedgedefaultsearchCheckbox">
|
<input type="checkbox" name="setedgedefaultsearch" id="setedgedefaultsearchCheckbox">
|
||||||
Set Edge Default Search Engine
|
Set Edge Default Search Engine
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="setWindowsPerformance" id="setWindowsPerformanceCheckbox">
|
<input type="checkbox" name="setWindowsPerformance" id="setWindowsPerformanceCheckbox" onclick="toggleRadioButtons(this)">
|
||||||
Optimize Windows Performance
|
Optimize Windows Performance
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<div class="radio-group" id="windowsPerformanceOptions" style="margin-left: 20px; display: none;">
|
||||||
<input type="checkbox" name="stopUnnecessaryServices" id="stopUnnecessaryServicesCheckbox">
|
<label>
|
||||||
Stop Unnecessary Services
|
<input type="radio" name="optimizeWindowsPerformanceLevel" value="full">
|
||||||
</label>
|
Full
|
||||||
</div>
|
</label>
|
||||||
</div>
|
<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
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Column 2 -->
|
<!-- Column 2 -->
|
||||||
<div class="column" id="tweaksColumn2">
|
<div class="column" id="tweaksColumn2">
|
||||||
<h3>Additional Tweaks</h3>
|
<h3>Additional Tweaks</h3>
|
||||||
<div class="checkbox-group">
|
<div class="checkbox-group">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="disableAnimations" id="disableAnimationsCheckbox">
|
<input type="checkbox" name="disableAnimations" id="disableAnimationsCheckbox">
|
||||||
Disable Animations
|
Disable Animations
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="optimizePerformance" id="optimizePerformanceCheckbox">
|
<input type="checkbox" name="optimizePerformance" id="optimizePerformanceCheckbox">
|
||||||
Optimize Application Performance
|
Optimize Application Performance
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="increaseFontSize" id="increaseFontSizeCheckbox">
|
<input type="checkbox" name="increaseFontSize" id="increaseFontSizeCheckbox">
|
||||||
Increase Font Size
|
Increase Font Size
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Column 3 -->
|
<!-- Column 3 -->
|
||||||
<div class="column" id="tweaksColumn3">
|
<div class="column" id="tweaksColumn3">
|
||||||
<h3>Miscellaneous</h3>
|
<h3>Miscellaneous</h3>
|
||||||
<div class="checkbox-group">
|
<div class="checkbox-group">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="enableDarkMode" id="enableDarkModeCheckbox">
|
<input type="checkbox" name="enableDarkMode" id="enableDarkModeCheckbox">
|
||||||
Enable Dark Mode
|
Enable Dark Mode
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="clearTempFiles" id="clearTempFilesCheckbox">
|
<input type="checkbox" name="clearTempFiles" id="clearTempFilesCheckbox">
|
||||||
Clear Temporary Files
|
Clear Temporary Files
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="button-group">
|
||||||
|
<button class="install-button" onclick="triggerTweaks()">Apply Tweaks</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="button-group">
|
|
||||||
<button class="install-button" onclick="triggerTweaks()">Apply Tweaks</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Shared Exit Button -->
|
<!-- Shared Exit Button -->
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
@@ -939,14 +954,19 @@ function GetHtmlContent {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSelectAllTweaks() {
|
function toggleRadioButtons(checkbox) {
|
||||||
const selectAllCheckbox = document.getElementById('selectAllTweaksCheckbox');
|
const radioGroup = document.getElementById("windowsPerformanceOptions");
|
||||||
const checkboxes = document
|
if (checkbox.checked) {
|
||||||
.getElementById('tweaksTab')
|
radioGroup.style.display = "block";
|
||||||
.querySelectorAll('input[type="checkbox"]:not(#selectAllTweaksCheckbox)');
|
} else {
|
||||||
|
radioGroup.style.display = "none";
|
||||||
// If any checkbox is unchecked, uncheck "Select All"
|
// Optionally, reset the radio buttons to their default state
|
||||||
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
|
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
|
// Attach the updateSelectAllTweaks function to all individual checkboxes
|
||||||
|
|||||||
Reference in New Issue
Block a user