Delete footer.php

This commit is contained in:
2026-06-03 05:06:47 +00:00
parent 4772b357b8
commit 5c11a3caa5
-35
View File
@@ -1,35 +0,0 @@
</div><!-- end page-body -->
</div><!-- end #main -->
<script>
// Toast utility
function toast(msg, type) {
var icons = { success:'✅', error:'❌', info:'️', warning:'⚠️' };
var el = document.createElement('div');
el.className = 'toast ' + (type||'');
el.innerHTML = '<span>' + (icons[type]||'️') + '</span> ' + msg;
document.getElementById('toast-wrap').appendChild(el);
setTimeout(() => { el.style.opacity='0'; el.style.transition='.3s'; setTimeout(()=>el.remove(),300); }, 3500);
}
// Modal helpers
function openModal(id) { document.getElementById(id).classList.add('show'); }
function closeModal(id) { document.getElementById(id).classList.remove('show'); }
// Close modal on overlay click
document.querySelectorAll('.modal-overlay').forEach(el => {
el.addEventListener('click', function(e) {
if (e.target === this) this.classList.remove('show');
});
});
<?php if (isset($_GET['success'])): ?>
toast('<?= htmlspecialchars($_GET['success']) ?>', 'success');
<?php endif; ?>
<?php if (isset($_GET['error'])): ?>
toast('<?= htmlspecialchars($_GET['error']) ?>', 'error');
<?php endif; ?>
</script>
<?= $extraScript ?? '' ?>
</body>
</html>