Untitled

                Never    
HTML
       
<!doctype html>
<html>
	<head>
		<title>Zmagannya | Vesnasoft 2019</title>
		<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
		<style type="text/css">
			html, body {
				font-family: 'Helvetica', 'Open Sans', 'Roboto', 'Arial', sans-serif;
			}
			header {
				display: flex;
				position: fixed;
				justify-content: space-between;
				top: 0;
				width: 100%;
				z-index: 1;
			}
			main {
				position: fixed;
				top: 0;
				width: 100vw;
				height: 100vh
			}
			iframe {
				width: 100%;
    			height: 100%;
			}
			header div {
			    display: inline-block;
			    width: auto;
			    padding: 1rem;
			    margin: 1rem;
			    background-color: rgba(0, 0, 0, 0.4);
			    border-radius: 5px;
			    color: white;
			    font-weight: bold;
			    font-size: 40px;
			}
			a {
				text-decoration: none;
				color: white;
				cursor: pointer;
				font-size: 30px;
				text-transform: uppercase;
			}
			#next {
				cursor: pointer;
			}
			#next:hover {
				background-color: rgba(0, 0, 0, 0.5);
				transition: all 0.15s;
			}
		</style>
	</head>

	<body>
		<header>
			<!-- user id: -->
			<div id="userid">?</div>
			<div id="next"><a id="gotonextpoll">next ></a></div>
		</header>
		
		<main>
			<iframe id="main" 
			        onload="iframeloaded()"
			></iframe>
		</main>
		<script type="text/javascript">

			const config = {
				iframeUrl: "http://kowo.me?id=USERID",
			}

			// parse params from query string
			const urlParams = new URLSearchParams(window.location.search);
			const allIds = urlParams.get('ids').split(/,/);
			const sleepTime = +urlParams.get('sleepms') || 10000;
			console.log({sleepTime});

			// update html
			main.src = (urlParams.get("iframeurl") || config.iframeUrl)
				.replace("USERID", allIds[0].split(":")[1] || allIds[0].split(":")[0]);
			userid.innerHTML = allIds[0].split(":")[0];
			gotonextpoll.href=urlParams.get('nextpollurl') || "https://hack.2019.vesnasoft.org";

			// this function will refresh page after some time and move to another userid
			function iframeloaded() {
				setTimeout(function() {
					let rotatedArray = JSON.parse(JSON.stringify(allIds));
					rotatedArray.push(rotatedArray.shift());
					window.location.href = window.location.href
						.replace(
							/ids=[a-zA-Z0-9:,_]*/,
							"ids="+rotatedArray.join());
				}, sleepTime);
			}
		</script>
	</body>
</html>

Raw Text