-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodeclient.html
32 lines (32 loc) · 1.24 KB
/
nodeclient.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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>reverse HTTP server using Node - experiment</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="nodestyles.css" />
</head>
<body>
<div id="wrapper">
<div class="full clear">
<div id="incoming" class="half left">
<h2>Incoming</h2>
<textarea>Nothing yet...</textarea>
</div>
<div id="response" class="half left">
<h2>Response</h2>
<textarea>"<h1>Hello world!</h1>";</textarea>
<p>Response is the output of the JavaScript above. Incoming data available as window.data</p>
</div>
</div>
<div class="full clear">
<h2>Log</h2>
<textarea id="log"></textarea>
</div>
</div>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<!-- NOTE: this next line does need to point to your socket.io client JS file -->
<script type="text/javascript" src="../Socket.IO-node/support/socket.io-client/socket.io.js"></script>
<script type="text/javascript">io.setPath("..Socket.IO-node/support/socket.io-client/");</script>
<script type="text/javascript" src="nodeclient.js"></script>
</body>
</html>