Put all puns into the same directory

(renamed index.html and adapt vhosts)
This commit is contained in:
kleph 2016-11-09 19:31:49 +01:00
parent 3c445d15fd
commit 38ff411989
2 changed files with 51 additions and 0 deletions

51
stoi.html Normal file
View file

@ -0,0 +1,51 @@
<head>
<title>C'est toi !</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>
<script src="punycode.min.js">
</script>
<script type="text/javascript">
window.onload = clear;
var s_base_domain = "stoi.xyz";
var s_replace = "C'est toi ";
function clear() {
// Leave the default content if no subdomain given.
if (location.host != s_base_domain) {
var s_hostname = punycode.toUnicode(location.host)
var s_txt = s_hostname.replace("." + s_base_domain, "");
var apostrophe = s_txt.match(/(l)\./);
if (apostrophe){
s_txt = s_txt.replace(/\./, "'");
}
s_txt = s_txt.replace(/\./g, " ");
s_txt = s_replace + s_txt + "."
// header tag and page title
document.getElementById("t").innerHTML = s_txt;
document.title = s_txt;
};
};
</script>
</head>
<body>
<h1 id="t">C'est toi !</h1>
<p>Hey ! Pour râler autrement, allez voir <a href="http://saynul.grmbl.me/">grmbl.me</a><p>
</body>