Created
May 2, 2013 23:31
-
-
Save fromheten/5506236 to your computer and use it in GitHub Desktop.
The Ö-language translator. Very festive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>Öntöröktöv ö-sprökötövörsöttörö</title> | |
<!-- Google web font API --> | |
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu"> | |
<style type="text/css"> | |
body { | |
text-align: center; | |
font-size: 20px; | |
font-family: Ubuntu, sans-serif, Arial, Helvetica; | |
line-height:150%; | |
} | |
h1 { | |
color:#333; | |
font-size: 50px; | |
} | |
footer { | |
text-align: center; | |
font-size:12px; | |
position: absolute; | |
bottom: 0; | |
} | |
a { | |
color:#009900; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='title'> | |
<h1>Ö-sprököt | |
</div> | |
<div id="input"> | |
<input type="text" name="user-input" id="user-input" autofocus="autofocus" onkeydown="if (event.keyCode == 13) document.getElementById('click').click()" /> | |
<input type="button" value="Övörsött" id='click' onclick="displayText('user-input')" /> | |
</div> | |
<div id="output"> | |
</div> | |
<script type="text/javascript"> | |
function displayText(input_field_id) { | |
input_field = document.getElementById(input_field_id); | |
output_div = document.getElementById("output"); | |
output_div.innerHTML += input_field.value.replace(/[aeiouåäæøy]/g, 'ö').replace(/[AEIOUÅÄØÆY]/g, 'Ö')+"<br>"; | |
} | |
</script> | |
<div id="footer"> | |
<footer> | |
<adress> | |
Höntvörk öv <a href="mailto:[email protected]">Mörtön Jösöfssön</a> dön fömtöndö jölö tjögöhöndrötölv | |
</adress> | |
</footer> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment