Skip to content

Commit

Permalink
updated promo & moved to node-websocket-server
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Oct 19, 2010
1 parent 1e9460f commit a1510f9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
7 changes: 4 additions & 3 deletions css/html5demos.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ footer > * {
background: #0c0;
}

footer #built:hover:after {
/*footer #built:hover:after {
content: '...quickly';
}

*/
[contenteditable]:hover {
outline: 1px dotted #ccc;
}
Expand All @@ -85,7 +85,7 @@ li {

#ih5 {
font-size: 90%;
background: #442C0D url(http://introducinghtml5.com/book_m.jpg) no-repeat left center;
background: #442C0D url(/images/ih5.jpg) no-repeat left center;
display: block;
color: #F7FCE4;
text-decoration: none;
Expand Down Expand Up @@ -259,6 +259,7 @@ body.view-source #view-source {
}

/** Pretty printing styles. Used with prettify.js. */
pre { font-size: 14px; }
.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
Expand Down
4 changes: 2 additions & 2 deletions demos/web-socket.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
<p id="status">Not connected</p>
<p>Users connected: <span id="connected">0</span></p>
<p>To test, open two windows with Web Socket support, type a message above and press return.</p>
<p>The server side code is available here: <a href="/server/node.ws.js/">node.ws.js &amp; server</a> (note that it runs on <a href="http://nodejs.org/" title="node.js">nodejs</a>)</p>
<p>The server side code is available here: <a href="http://github.com/remy/html5demos/tree/master/server/">node-web-socket &amp; server</a> (note that it runs on <a href="http://nodejs.org/" title="node.js">nodejs</a>)</p>
<ul id="log"></ul>
</article>
<script>
function openConnection() {
// uses global 'conn' object
if (conn.readyState === undefined || conn.readyState > 1) {
conn = new WebSocket('ws://apps.leftlogic.com:8001');
conn = new WebSocket('ws://node.remysharp.com:8001');
conn.onopen = function () {
state.className = 'success';
state.innerHTML = 'Socket open';
Expand Down
Binary file added images/ih5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a1510f9

Please sign in to comment.