fix: add terms/privacy checkbox to download modal, button disabled until checked
This commit is contained in:
@@ -244,11 +244,18 @@ function closeUserMenu(e) {
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDownloadBtn() {
|
||||
const cb = document.getElementById('agreeTerms');
|
||||
document.getElementById('downloadConfirmBtn').disabled = !cb.checked;
|
||||
}
|
||||
|
||||
function showDownloadModal() {
|
||||
const cb = document.getElementById('agreeTerms');
|
||||
cb.checked = false;
|
||||
document.getElementById('downloadConfirmBtn').disabled = true;
|
||||
document.getElementById('downloadModal').style.display = 'flex';
|
||||
document.getElementById('downloadProgressWrap').style.display = 'none';
|
||||
document.getElementById('downloadModalFooter').style.display = 'flex';
|
||||
document.getElementById('downloadConfirmBtn').disabled = false;
|
||||
document.getElementById('downloadConfirmBtn').innerHTML = '<i class="fas fa-download"></i> Download APK';
|
||||
document.getElementById('downloadProgressBar').style.width = '0%';
|
||||
document.getElementById('downloadPercent').textContent = '0%';
|
||||
|
||||
Reference in New Issue
Block a user