Improved CSS, HTML ans script (borrowed from grmbl.me!)
This commit is contained in:
parent
a9d5431159
commit
e3c1e3b5fd
1 changed files with 40 additions and 22 deletions
52
index.html
52
index.html
|
@ -1,27 +1,45 @@
|
||||||
<head>
|
<head>
|
||||||
<title>C'est nul !</title>
|
<title>C'est nul !</title>
|
||||||
</head>
|
|
||||||
|
|
||||||
<style>
|
<style type="text/css">
|
||||||
body {
|
h1 {
|
||||||
font-size: 200%
|
font-size: 250%;
|
||||||
}
|
text-align: center;
|
||||||
</style>
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin-top: 10em;
|
||||||
|
font-size: 75%;
|
||||||
|
text-color: grey;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script src="punycode.min.js">
|
<script src="punycode.min.js">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload = clear;
|
window.onload = clear;
|
||||||
|
|
||||||
function clear() {
|
var s_base_domain = "saynul.eu";
|
||||||
str_hostname = punycode.toUnicode(location.host)
|
var s_replace = ", c'est nul !";
|
||||||
str_hostname = str_hostname.replace(".saynul.eu", ", c'est nul !");
|
|
||||||
str_hostname = str_hostname.replace(/\./g, " ");
|
|
||||||
document.body.innerHTML = str_hostname;
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
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, s_replace);
|
||||||
|
s_txt = s_txt.replace(/\./g, " ");
|
||||||
|
s_txt = s_txt.charAt(0).toUpperCase() + s_txt.slice(1);
|
||||||
|
|
||||||
|
// header tag and page title
|
||||||
|
document.getElementById("t").innerHTML = s_txt;
|
||||||
|
document.title = s_txt;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
C'est nul !
|
<h1 id="t">C'est nul !</h1>
|
||||||
|
<p>Hey ! Pour râler autrement, allez voir <a href="http://saynul.grmbl.me/">grmbl.me</a><p>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue