MapViewer/spieler.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2025-08-30 22:02:13 +02:00
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<title>MapViewer - Spieler</title>
<link rel="stylesheet" href="style.css" />
<style>
#pauseScreen {
position: fixed;
inset: 0;
background: #000;
z-index: 9999;
display: none;
}
#pauseScreen img {
object-fit: cover;
width: 100%;
height: 100%;
display: block;
}
</style>
</head>
<body><div id="pauseScreen"><img src="pause.png" alt="Pause"></div>
<canvas id="mapCanvas"></canvas>
<script src="slave.js"></script>
<iframe id="worldmap-iframe"
src="https://map.arenos.danielnagel.at"
style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9000; border: none;">
</iframe>
<script>
const pauseScreen = document.getElementById("pauseScreen");
function checkPauseState() {
const paused = localStorage.getItem("pauseActive") === "true";
pauseScreen.style.display = paused ? "block" : "none";
requestAnimationFrame(checkPauseState);
}
requestAnimationFrame(checkPauseState);
</script>
</body>
</html>