-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (38 loc) · 1.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<meta charset="utf-8"/>
<title>BBControl v0.1:</title>
<script src = "/socket.io/socket.io.js" > </script>
<link rel="stylesheet" href="themes/BBControl.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile.structure-1.4.2.min.css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<script>
var socket = io.connect();
socket.on('datastatus', function (data) {
document.getelementById("result").innerhtml=data;
});
</script>
<script>
function submitForm(){
socket.emit('sendval', document.getElementById('txtmorse').value);
}
</script>
</head>
<body>
<div data-role="page" data-theme="a">
<div data-role="header" data-position="inline">
<h1>BBControl v0.1</h1>
</div>
<div data-role="content" data-theme="a">
<pre>Enter your text into the text field<br/>Slider will change the light frequency.</pre>
<p>For any questions contact <a href="#" class="ui-link">mail</a>.</p>
<label for="txtmorse">Text to morsify:</label>
<input type="text" name="morsetext" id="txtmorse"/>
<input type="frequency" name="slider1" id="slider1" value="50" min="200" max="100" data-theme="a" />
<input type="button" name="on" id="btn_send" value="Gönder" class="btn btn-default" onClick="submitForm();">
<pre id="result"></pre>
</div>
</div>
</body>
</html>