onscreen-translator/templates/index.html

24 lines
616 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
</head>
<body>
<img
id="live-image"
src="/image"
alt="No Translations Available"
style="max-width: 100%; height: auto" />
<script>
setInterval(function () {
document.getElementById("live-image").src =
"/image?" + new Date().getTime();
}, 2500); // Update every 2.5 seconds. Beware that if the image fails to reload on time, the browser will continuously refresh without being able to display the images.
</script>
</body>
</html>