--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ img {
+ image-rendering: pixelated;
+ }
+ #left-arrow {
+ position: fixed; left: 0vw; top: 0vh;
+ width: 20vw; height: 50vh;
+ }
+ #site {
+ position: fixed; left: 20vw; top: 0vh;
+ width: 60vw; height: 50vh;
+ }
+ #right-arrow {
+ position: fixed; left: 80vw; top: 0vh;
+ width: 20vw; height: 50vh;
+ }
+ #mpring {
+ position: fixed; left: 0vw; top: 50vh;
+ width: 50vw; height: 50vh;
+ }
+ #random {
+ position: fixed; left: 50vw; top: 50vh;
+ width: 50vw; height: 50vh;
+ }
+ </style>
+ <script>
+ let sites = [
+ "https://f4mnq.fr",
+ "https://f4mnq.fr/test",
+ ];
+ let current_site = Math.floor(Math.random() * sites.length);
+ let next_site = Math.floor(Math.random() * sites.length);
+ while (next_site == current_site) {
+ next_site = Math.floor(Math.random() * sites.length);
+ }
+
+ function to_site(site) {
+ document.getElementById("left-arrow").src = sites[site] + "/mpring/left-arrow";
+ document.getElementById("right-arrow").src = sites[site] + "/mpring/right-arrow";
+ document.getElementById("site").src = sites[site] + "/mpring/site";
+ document.getElementById("random").src = sites[next_site] + "/mpring/random";
+
+ document.getElementById("site-a").href = sites[site];
+ }
+ window.addEventListener("load", (event) => {
+ to_site(current_site);
+ });
+
+ function left_arrow() {
+ current_site--;
+ if (current_site < 0) { current_site += sites.length; }
+ to_site(current_site);
+ }
+ function right_arrow() {
+ current_site++;
+ if (current_site >= sites.length) { current_site -= sites.length; }
+ to_site(current_site);
+ }
+ function random() {
+ current_site = next_site;
+ while (next_site == current_site) {
+ next_site = Math.floor(Math.random() * sites.length);
+ }
+ to_site(current_site);
+ }
+ </script>
+</head>
+<body>
+ <img id="left-arrow" onclick="left_arrow()" />
+ <a id="site-a" target="_top"><img id="site" /></a>
+ <img id="right-arrow" onclick="right_arrow()" />
+ <a href="https://mpring.f4mnq.fr" target="_top"><img id="mpring" src="https://mpring.f4mnq.fr/mpring.png" /></a>
+ <img id="random" onclick="random()" />
+</body>
+</html>