forked from caldenrodrigues/HealthCare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (32 loc) · 989 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
<!DOCTYPE html>
<html>
<head>
</head>
<script src="/socket.io/socket.io.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.js"></script>
<body>
<script>
//var socket = io();
var socket = io.connect('http:localhost');
// socket.on('start', function (data) {
// console.log(data);
// socket.emit('demo', {my: 'data'});
// });
// $(function() {
// $('form').submit(funtion(e) {
// e.preventDefault();
// socket.emit('chat message', $('#m').val());
// $('#m').val('');
// return false;
// });
// });
function click() {
console.log('button clicked');
}
</script>
<h1>Hi</h1>
<form action="" onsubmit="click()">
<input id='m' /><button>send</button>
</form>
</body>
</html>