added premium promotion, dropmail.php, dropattach.php, minor update of other files

This commit is contained in:
Gitea
2025-05-08 05:46:00 +05:30
parent b24bf3d1f6
commit f8ce844625
10 changed files with 187 additions and 12 deletions

View File

@@ -217,3 +217,24 @@ document.addEventListener('DOMContentLoaded', function () {
const fetchInterval = setInterval(fetchStoreEmail, 10000);
}, 3000);
});
document.addEventListener('promotePremium', function () {
setTimeout(() => {
const event = new CustomEvent('modal-show', {
detail: {
name: 'premium',
scope: null
}
});
const showText = document.getElementById('premium-modal-limit');
showText.classList.remove('hidden');
const text1 = document.getElementById('focus-modal-text1');
text1.classList.remove('text-accent');
text1.classList.add('text-amber-500');
const text2 = document.getElementById('focus-modal-text2');
text2.classList.remove('text-accent');
text2.classList.add('text-amber-500');
document.dispatchEvent(event);
}, 500);
});