2015-03-30 18:31:31 +02:00
|
|
|
<head>
|
2016-11-09 19:31:49 +01:00
|
|
|
<title>C'est toi !</title>
|
2015-03-31 16:41:29 +02:00
|
|
|
<meta charset="utf-8">
|
2015-03-30 18:44:30 +02:00
|
|
|
|
2015-03-31 16:38:23 +02:00
|
|
|
<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>
|
2015-03-30 18:44:30 +02:00
|
|
|
|
2015-03-31 16:38:23 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
window.onload = clear;
|
|
|
|
|
2016-11-09 19:31:49 +01:00
|
|
|
var s_base_domain = "stoi.xyz";
|
|
|
|
var s_replace = "C'est toi ";
|
2015-03-30 18:31:31 +02:00
|
|
|
|
2015-03-31 16:38:23 +02:00
|
|
|
function clear() {
|
|
|
|
// Leave the default content if no subdomain given.
|
|
|
|
if (location.host != s_base_domain) {
|
2015-03-30 18:31:31 +02:00
|
|
|
|
2015-03-31 16:38:23 +02:00
|
|
|
var s_hostname = punycode.toUnicode(location.host)
|
2016-11-09 19:31:49 +01:00
|
|
|
var s_txt = s_hostname.replace("." + s_base_domain, "");
|
2021-01-05 20:33:41 +01:00
|
|
|
var apostrophe = s_txt.match(/\.(l)\.|^(l)\./);
|
2016-11-09 19:31:49 +01:00
|
|
|
|
2015-09-28 16:16:12 +02:00
|
|
|
if (apostrophe){
|
2017-11-13 20:02:42 +01:00
|
|
|
s_txt = s_txt.replace(/l\./, "l'");
|
2015-09-28 16:16:12 +02:00
|
|
|
}
|
2015-03-31 16:38:23 +02:00
|
|
|
s_txt = s_txt.replace(/\./g, " ");
|
2016-11-09 19:31:49 +01:00
|
|
|
s_txt = s_replace + s_txt + "."
|
2015-03-30 18:31:31 +02:00
|
|
|
|
2015-03-31 16:38:23 +02:00
|
|
|
// header tag and page title
|
|
|
|
document.getElementById("t").innerHTML = s_txt;
|
|
|
|
document.title = s_txt;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</head>
|
2015-03-30 18:31:31 +02:00
|
|
|
<body>
|
2016-11-09 19:31:49 +01:00
|
|
|
<h1 id="t">C'est toi !</h1>
|
2015-03-30 18:31:31 +02:00
|
|
|
</body>
|