Update TGBeta.ps1
This commit is contained in:
54
TGBeta.ps1
54
TGBeta.ps1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user