54 lines
1.9 KiB
PHP
54 lines
1.9 KiB
PHP
<footer class="container text-center mt-5 py-3">
|
|
<p class="text-muted">© <?php echo date("Y"); ?> Your Platform Name. All Rights Reserved.</p>
|
|
<ul class="list-inline">
|
|
<li class="list-inline-item"><a href="privacy_policy.php">Privacy Policy</a></li>
|
|
<li class="list-inline-item"><a href="terms_of_service.php">Terms of Service</a></li>
|
|
<li class="list-inline-item"><a href="disclaimer.php">Disclaimer</a></li>
|
|
</ul>
|
|
</footer>
|
|
|
|
<script>
|
|
const canvas = document.getElementById('matrix-canvas');
|
|
const context = canvas.getContext('2d');
|
|
|
|
canvas.width = window.innerWidth;
|
|
canvas.height = window.innerHeight;
|
|
|
|
const katakana = 'アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン';
|
|
const latin = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
const nums = '0123456789';
|
|
|
|
const alphabet = katakana + latin + nums;
|
|
|
|
const fontSize = 16;
|
|
const columns = canvas.width / fontSize;
|
|
|
|
const rainDrops = [];
|
|
|
|
for (let x = 0; x < columns; x++) {
|
|
rainDrops[x] = 1;
|
|
}
|
|
|
|
const draw = () => {
|
|
context.fillStyle = 'rgba(0, 0, 0, 0.05)';
|
|
context.fillRect(0, 0, canvas.width, canvas.height);
|
|
|
|
context.fillStyle = '#0F0';
|
|
context.font = fontSize + 'px monospace';
|
|
|
|
for (let i = 0; i < rainDrops.length; i++) {
|
|
const text = alphabet.charAt(Math.floor(Math.random() * alphabet.length));
|
|
context.fillText(text, i * fontSize, rainDrops[i] * fontSize);
|
|
|
|
if (rainDrops[i] * fontSize > canvas.height && Math.random() > 0.975) {
|
|
rainDrops[i] = 0;
|
|
}
|
|
rainDrops[i]++;
|
|
}
|
|
};
|
|
|
|
setInterval(draw, 30);
|
|
</script>
|
|
</body>
|
|
</html>
|