saynul/ronflzzzzz.html
2016-11-09 19:35:28 +01:00

64 lines
1.8 KiB
HTML

<head>
<title>Ronflzzzzz</title>
<meta charset="utf-8">
<style type="text/css">
h1 {
font-size: 250%;
text-align: center;
margin-top: 50px;
}
p {
margin-top: 10em;
font-size: 75%;
text-color: grey;
}
</style>
<link rel="icon" type="image/x-icon" href="/favicon-zzzzz.ico" />
<script type="text/javascript">
window.onload = clear;
var s_base_domain = "kleph.eu";
var s_replace = " !";
String.prototype.shuffle = function () {
var a = this.split(""), n = a.length;
for(var i = n - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
return a.join("");
}
function clear() {
// Leave the default content if no subdomain given.
if (location.host != s_base_domain) {
var s_hostname = location.host;
var s_txt = s_hostname.replace("." + s_base_domain, s_replace);
s_txt = s_txt.replace("r", "R");
// header tag and page title
document.getElementById("t").innerHTML = s_txt;
document.title = s_txt;
var s_ronfl = "Ronflzzzzz".shuffle();
var link_text = "Hey ! Pour %RONFL%er autrement, allez voir <a href=\"http://%RONFL%.kleph.eu/\">%RONFL%</a><p>";
link_text = link_text.replace(/%RONFL%/g, s_ronfl);
document.getElementById("link").innerHTML = link_text;
};
};
</script>
</head>
<body>
<h1 id="t">Ronflzzzzz</h1>
<p id="link">Hey ! Pour Ronflzzzzzer autrement, allez voir <a href="http://ronflzzzzz.kleph.eu/">Ronflzzzzz</a><p>
</body>
<!-- This time it's not a wildcard in server_name, it's a regexp: "~^(?!.*\1)(?!(.*z){6})[Ronflz]*\.kleph\.eu$"; --!>