Update TGBeta.ps1

This commit is contained in:
2025-01-05 21:15:09 -05:00
parent ed17580f9e
commit 777ca3c511

View File

@@ -601,6 +601,32 @@ function GetHtmlContent {
</label>
</div>
</div>
<!-- Tweak Tab -->
<div id="tweakTab" class="tab-content">
<h2>Tweaks</h2>
<div class="checkbox-group">
<label>
<input type="checkbox" id="selectAllTweakCheckbox" onclick="toggleTweakCheckboxes(this)">
Select All
</label>
<label>
<input type="checkbox" name="enableDarkMode" id="enableDarkModeCheckbox">
Enable Dark Mode
</label>
<label>
<input type="checkbox" name="disableAnimations" id="disableAnimationsCheckbox">
Disable Animations
</label>
<label>
<input type="checkbox" name="optimizePerformance" id="optimizePerformanceCheckbox">
Optimize Performance
</label>
<label>
<input type="checkbox" name="increaseFontSize" id="increaseFontSizeCheckbox">
Increase Font Size
</label>
</div>
</div>
</div>
<script>
@@ -640,6 +666,34 @@ function GetHtmlContent {
});
}
function toggleTweakCheckboxes(selectAllCheckbox) {
// Get all checkboxes inside the tweakTab container
const checkboxes = document
.getElementById('tweakTab')
.querySelectorAll('input[type="checkbox"]:not(#selectAllTweakCheckbox)');
// Set the checked state of all checkboxes to match the "Select All" checkbox
checkboxes.forEach(checkbox => {
checkbox.checked = selectAllCheckbox.checked;
});
}
function updateSelectAllTweak() {
const selectAllCheckbox = document.getElementById('selectAllTweakCheckbox');
const checkboxes = document
.getElementById('tweakTab')
.querySelectorAll('input[type="checkbox"]:not(#selectAllTweakCheckbox)');
// If any checkbox is unchecked, uncheck "Select All"
selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked);
}
// Attach the updateSelectAllTweak function to all individual checkboxes
document.querySelectorAll('#tweakTab input[type="checkbox"]:not(#selectAllTweakCheckbox)').forEach(checkbox => {
checkbox.addEventListener('change', updateSelectAllTweak);
});
function toggleDattoRMMOptions() {
const checkbox = document.getElementById('installDattoRMMCheckbox');
const optionsContainer = document.getElementById('dattoRMMOptionsContainer');