diff options
Diffstat (limited to 'data/templates/random.html')
| -rw-r--r-- | data/templates/random.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/data/templates/random.html b/data/templates/random.html new file mode 100644 index 0000000..b4a5816 --- /dev/null +++ b/data/templates/random.html @@ -0,0 +1,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> |
