Replace dots in hostname by spaces in printed string

This commit is contained in:
kleph 2015-03-30 18:39:47 +02:00
parent 1d04b40e63
commit b69a60a8ad

View file

@ -8,7 +8,7 @@
window.onload = clear;
function clear() {
str_hostname = punycode.toUnicode(location.host)
str_hostname = punycode.toUnicode(location.host).replace(/\./g, " ")
document.body.innerHTML = str_hostname.replace(".saynul.eu", ", c'est nul !");
};
</script>