<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Normal --> 1337</title>
<script type="text/javascript">
<!--
window.captureEvents(Event.KEYPRESS);
window.onkeypress = Ausgabe;
function Ausgabe (Ereignis) {
if(Ereignis.which == 13)
leet();
}
var wort = new Object();
wort["A"] = new Array("@","4","/\\");
wort["B"] = new Array("!3","8");
wort["C"] = new Array("(","<");
wort["D"] = new Array("!)");
wort["E"] = new Array("3");
wort["F"] = new Array("!=");
wort["G"] = new Array("6");
wort["H"] = new Array("#","]-[");
wort["I"] = new Array("1");
wort["J"] = new Array("9");
wort["K"] = new Array("!<","!{");
wort["L"] = new Array("1","!_");
wort["M"] = new Array("!\\/!","]\\/[");
wort["N"] = new Array("/\\/","/V","!V");
wort["O"] = new Array("0","()");
wort["P"] = new Array("!°");
wort["Q"] = new Array("0_");
wort["R"] = new Array("!2");
wort["S"] = new Array("5");
wort["T"] = new Array("7","+");
wort["U"] = new Array("[_]");
wort["V"] = new Array("\\/");
wort["W"] = new Array("\\A/","\\^/");
wort["X"] = new Array("><","%");
wort["Y"] = new Array("°/");
wort["Z"] = new Array("2");
wort[" "] = new Array(" ");
wort["."] = new Array(".");
wort[","] = new Array(",");
wort["Ä"] = new Array("@3","43","/\\3");
wort["Ö"] = new Array("03","()3");
wort["Ü"] = new Array("[_]3");
wort[":"] = new Array(":");
wort["\""] = new Array("\"");
wort["?"] = new Array("?");
var erlaubt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ .,ÄÖÜ:\"?";
function leet(){
var ausgabe = "";
var fehler = "";
var diesmal = false;
var text = document.getElementById('feld').value;
text = text.toUpperCase();
for(a = 0 ; a < text.length ; a++){
if(erlaubt.indexOf(text.charAt(a) ) == -1){
document.getElementById('ergebnis').value = "Falsche Eingabe";
return false;
}
var zufall = Math.floor(Math.random()*(wort[text.charAt(a)].length));
ausgabe += "" + wort[text.charAt(a)][zufall];
}
document.getElementById('ergebnis').value = ausgabe;
}
//-->
</script>
</head>
<body>
<div>
<table>
<tr>
<td>Normal:</td>
<td>Leet:</td>
</tr>
<tr>
<td><input type="text" id="feld" /></td>
<td><input type="text" readonly="readonly" id="ergebnis" onclick="this.select()" /></td>
</tr>
</table>
<button onclick="document.getElementById('feld').value = '';" style="margin-top:40px;">Eingabe löschen</button>
</div>
<div style="position:absolute; bottom:0px;">Diese Seite enthält valides XHTML 1.0 <br />
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" style="border:0px; height:31px; width:88px;" /></a>
</div>
</body>
</html>