-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (30 loc) · 811 Bytes
/
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
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTTP to OSC Quiz example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
$(document).ready( function()
{
var client_id = 'user1';
var server = 'http://localhost:8080/send-osc/';
$('#a').click(function () {
$.get(server, {'user1': 'A'});
});
$('#b').click(function () {
$.get(server, {'user1': 'B'});
});
$('#c').click(function () {
$.get(server, {'user1': 'C'});
});
});
</script>
</head>
<body>
<button id="a">A</button>
<button id="b">B</button>
<button id="c">C</button>
</body>
</html>