This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
morse-converter-web/index.html
2015-04-01 19:57:23 +02:00

40 lines
1.5 KiB
HTML

<html>
<head>
<title>Morse Converter</title>
<link rel="stylesheet" type="text/css" href="res/css/main.css" />
<script src="./res/js/jquery-2.1.3.min.js"></script>
</head>
<body>
<span class="actionbar">Morse Converter</span>
<div class="drawer">
<img src="res/img/drawergraphic.png" class="drawerimg"/>
<div class="draweritem">writtenMorse</div>
<div class="draweritem">Normal Morse</div>
<div class="drawerdivider"></div>
<div class="draweritem">About</div>
</div>
<div class="main">
<div class="card">
<textarea class="input" id="textarea">Enter your text.</textarea>
<div class="carddivider"></div>
<div class="cardbuttons">
<span class="cardbutton" onclick="getText()">ENCODE</span>
<span class="cardbutton">DECODE</span>
</div>
</div>
<div class="card" id="outputcard">
<div class="cardtext">
<span id="output"></span>
</div>
</div>
</div>
</body>
<script>
function getText(){
var input = $('#textarea').val()
console.log(input)
$('#output').text(input)
$('#outputcard').fadeIn(300)
}
</script>
</html>