Update TGBeta.ps1
This commit is contained in:
150
TGBeta.ps1
150
TGBeta.ps1
@@ -738,66 +738,81 @@ function GetHtmlContent {
|
||||
</div>
|
||||
</div>
|
||||
<div id="tweaksTab" class="tab-content inactive">
|
||||
<h2>Tweaks</h2>
|
||||
<div class="columns-container">
|
||||
<!-- Column 1 -->
|
||||
<div class="column" id="tweaksColumn1">
|
||||
<h3>System Optimizations</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="setedgedefaultsearch" id="setedgedefaultsearchCheckbox">
|
||||
Set Edge Default Search Engine
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="setWindowsPerformance" id="setWindowsPerformanceCheckbox">
|
||||
Optimize Windows Performance
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="stopUnnecessaryServices" id="stopUnnecessaryServicesCheckbox">
|
||||
Stop Unnecessary Services
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Tweaks</h2>
|
||||
<div class="columns-container">
|
||||
<!-- Column 1 -->
|
||||
<div class="column" id="tweaksColumn1">
|
||||
<h3>System Optimizations</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="setedgedefaultsearch" id="setedgedefaultsearchCheckbox">
|
||||
Set Edge Default Search Engine
|
||||
</label>
|
||||
<label>
|
||||
<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
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Column 2 -->
|
||||
<div class="column" id="tweaksColumn2">
|
||||
<h3>Additional Tweaks</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="disableAnimations" id="disableAnimationsCheckbox">
|
||||
Disable Animations
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="optimizePerformance" id="optimizePerformanceCheckbox">
|
||||
Optimize Application Performance
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="increaseFontSize" id="increaseFontSizeCheckbox">
|
||||
Increase Font Size
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Column 2 -->
|
||||
<div class="column" id="tweaksColumn2">
|
||||
<h3>Additional Tweaks</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="disableAnimations" id="disableAnimationsCheckbox">
|
||||
Disable Animations
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="optimizePerformance" id="optimizePerformanceCheckbox">
|
||||
Optimize Application Performance
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="increaseFontSize" id="increaseFontSizeCheckbox">
|
||||
Increase Font Size
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Column 3 -->
|
||||
<div class="column" id="tweaksColumn3">
|
||||
<h3>Miscellaneous</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="enableDarkMode" id="enableDarkModeCheckbox">
|
||||
Enable Dark Mode
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="clearTempFiles" id="clearTempFilesCheckbox">
|
||||
Clear Temporary Files
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Column 3 -->
|
||||
<div class="column" id="tweaksColumn3">
|
||||
<h3>Miscellaneous</h3>
|
||||
<div class="checkbox-group">
|
||||
<label>
|
||||
<input type="checkbox" name="enableDarkMode" id="enableDarkModeCheckbox">
|
||||
Enable Dark Mode
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="clearTempFiles" id="clearTempFilesCheckbox">
|
||||
Clear Temporary Files
|
||||
</label>
|
||||
</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 -->
|
||||
<div class="button-group">
|
||||
@@ -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