aboutsummaryrefslogtreecommitdiff
path: root/data/templates/random.html
blob: b4a58160f3818038f22aa1cbc5e84a6b1a63ddb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Redirecting...</title>
	
	<style>
		body {
		  background-color: #000;
		  color: #fff;
		}
	</style>
</head>

<script>
	var links = []
	{% if sites %}
		{% for site in sites %}
			links.push("{{ site.website.url }}")
		{% endfor %}
	{% endif %}
	window.location.replace(links[Math.floor(Math.random() * links.length)])
</script>

<body>
    <p>A fairy is guiding you to a most suitable destination...</p>
</body>

</html>