Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created August 12, 2011 23:54
Show Gist options
  • Save wesbos/1143294 to your computer and use it in GitHub Desktop.
Save wesbos/1143294 to your computer and use it in GitHub Desktop.
Socket.io / Canvas Markup
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.event.drag-2.0.js"></script>
<script src="http://localhost:4000/socket.io/socket.io.js"></script>
<script type="text/javascript" src="scripts.js"></script>
<link rel="stylesheet" href="style.css" />
<title>HTML5 Canvas + Node.JS Socket.io</title>
</head>
<body>
<article><!-- our canvas will be inserted here--></article>
<!-- Scripts required -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.event.drag-2.0.js"></script>
<script src="http://localhost:4000/socket.io/socket.io.js"></script>
<script type="text/javascript" src="scripts.js"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment