1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
| <!DOCTYPE html> <html lang="<%= config.language %>"> <%- partial('components/header/head') %>
<style> .star { position: fixed; pointer-events: none; font-size: 24px; animation: twinkle 1.2s ease-out forwards; z-index: 9999; }
@keyframes twinkle { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 50% { opacity: 1; transform: translateY(-40px) scale(1); } 100% { opacity: 0; transform: translateY(-80px) scale(1.2); } }
.red { color: #ff4444; } .orange { color: #ffaa00; } .yellow { color: #ffff00; } .green { color: #00ff00; } .blue { color: #00aaff; } .purple { color: #aa00ff; } .pink { color: #ff00aa; } .cyan { color: #00ffff; } .lime { color: #aaff00; } .magenta { color: #ff00ff; } </style>
<body> <%- body %> <%- partial('components/scripts') %> <% if (theme.plugins.aplayer.enable) { %> <%- partial('components/plugins/aplayer') %> <% } %>
<script> document.addEventListener('click', (e) => { const colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink', 'cyan', 'lime', 'magenta']; const container = document.body; for(let i=0; i<5; i++) { const star = document.createElement('span'); star.className = `star ${colors[Math.floor(Math.random() * colors.length)]}`; star.textContent = '✨'; const offsetX = (Math.random() - 0.5) * 40; const offsetY = (Math.random() * 20) + 10; star.style.left = `${e.clientX + offsetX}px`; star.style.top = `${e.clientY + offsetY}px`; star.style.transform += `rotate(${Math.random() * 360}deg)`; container.appendChild(star); setTimeout(() => star.remove(), 1200); } }); </script> </body>
</html>
|