saynul/ronflzzzzz.html

62 lines
1.7 KiB
HTML
Raw Normal View History

<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>