| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/education/template/ |
Upload File : |
<!-- Bootstrap 5.3 JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Chart.js for statistics -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Add fade-in animation to cards
document.addEventListener('DOMContentLoaded', function() {
const cards = document.querySelectorAll('.card, .stats-card');
cards.forEach((card, index) => {
setTimeout(() => {
card.classList.add('fade-in');
}, index * 100);
});
});
// Form validation
function validateForm(formId) {
const form = document.getElementById(formId);
const inputs = form.querySelectorAll('input[required], select[required]');
let isValid = true;
inputs.forEach(input => {
if (!input.value.trim()) {
input.classList.add('is-invalid');
isValid = false;
} else {
input.classList.remove('is-invalid');
}
});
return isValid;
}
// Auto-hide alerts
setTimeout(function() {
const alerts = document.querySelectorAll('.alert');
alerts.forEach(alert => {
if (alert.classList.contains('alert-success') || alert.classList.contains('alert-danger')) {
alert.style.transition = 'opacity 0.5s ease';
alert.style.opacity = '0';
setTimeout(() => alert.remove(), 500);
}
});
}, 5000);
</script>
<?php if(isset($extra_js)): ?>
<?php echo $extra_js; ?>
<?php endif; ?>
</body>
</html>