This is a script that I needed to investigate a certain security method. Not needed any more, so here ya go!
<!DOCTYPE html> <html> <head> <title>Live Epoch Time QR Code</title> <style> .qr-code { display: inline-block; width: 128px; height: 128px; border: 1px solid #000; } </style> </head> <body> <h1>Live Epoch Time QR Code</h1> <div id="epochTime"></div> <div id="qrcode" class="qr-code"></div> <script> // Function to update the epoch time and QR code function updateTimeAndQRCode() { var epochTime = Math.floor(Date.now() / 1000); // Current epoch time in seconds document.getElementById('epochTime').innerHTML = 'Epoch Time: ' + epochTime; // Generate QR code using CSS var qrCodeElement = document.getElementById("qrcode"); qrCodeElement.style.backgroundImage = "url('https://api.qrserver.com/v1/create-qr-code/?data=" + epochTime + "&size=128x128')"; } // Update the time and QR code every second setInterval(updateTimeAndQRCode, 1000); // Initial call to display time and QR code updateTimeAndQRCode(); </script> </body> </html>