46 lines
1.1 KiB
HTML
46 lines
1.1 KiB
HTML
|
<head>
|
||
|
<title>IT4DESTRUCS</title>
|
||
|
<meta charset="utf-8">
|
||
|
|
||
|
<style type="text/css">
|
||
|
h1 {
|
||
|
font-size: 250%;
|
||
|
text-align: center;
|
||
|
margin-top: 50px;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<script src="punycode.min.js">
|
||
|
</script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
window.onload = clear;
|
||
|
|
||
|
var s_base_domain = "it4.stoi.xyz";
|
||
|
var s_replace = "IT4";
|
||
|
|
||
|
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(/l\./, "l'");
|
||
|
}
|
||
|
s_txt = s_txt.replace(/\./g, " ");
|
||
|
s_txt = s_replace + s_txt.toUpperCase()
|
||
|
|
||
|
// header tag and page title
|
||
|
document.getElementById("t").innerHTML = s_txt;
|
||
|
document.title = s_txt;
|
||
|
};
|
||
|
};
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1 id="t">IT4DESTRUCS</h1>
|
||
|
</body>
|