File size: 876 Bytes
bf150ae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
document.addEventListener('DOMContentLoaded', function() {
// Generate random reference ID
const refId = `PP-${Math.floor(1000000000 + Math.random() * 9000000000)}`;
document.querySelector('.font-mono').textContent = refId;
// Add current date
const today = new Date();
const options = { month: 'short', day: 'numeric', year: 'numeric' };
document.querySelector('.font-medium:nth-of-type(2)').textContent = today.toLocaleDateString('en-US', options);
// Add subtle hover effects
const buttons = document.querySelectorAll('button');
buttons.forEach(button => {
button.addEventListener('mouseenter', () => {
button.classList.add('transform', 'scale-105');
});
button.addEventListener('mouseleave', () => {
button.classList.remove('transform', 'scale-105');
});
});
}); |