Add ronflzzzzz, web translation of the famous %RONFL% from IRC
This commit is contained in:
parent
38ff411989
commit
882027ea03
2 changed files with 61 additions and 0 deletions
BIN
favicon-zzzzz.ico
Normal file
BIN
favicon-zzzzz.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
61
ronflzzzzz.html
Normal file
61
ronflzzzzz.html
Normal file
|
@ -0,0 +1,61 @@
|
|||
<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>
|
Loading…
Reference in a new issue