summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 01:36:57 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 01:36:57 +0100
commit987057dc0b8892e38cf39005f96c655ac76e19bf (patch)
treef25c0556750ddee45f644aa27899ca8781885246
parent1cf58beeafc9dd0db95609cd7c1ce7529cdb9842 (diff)
added the squeleton for the client
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--game.html12
-rw-r--r--game.js15
l---------index.html1
3 files changed, 28 insertions, 0 deletions
diff --git a/game.html b/game.html
new file mode 100644
index 0000000..1b90fab
--- /dev/null
+++ b/game.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cards Against Originality (Revisited)</title>
+ <link rel="stylesheet" href="style.css">
+ <script src="jquery.js"></script>
+ <script src="game.js"></script>
+ </head>
+ <body>
+ </body>
+</html>
diff --git a/game.js b/game.js
new file mode 100644
index 0000000..b0545af
--- /dev/null
+++ b/game.js
@@ -0,0 +1,15 @@
+$(document).ready(function() {
+ var ws = new WebSocket('ws://' + document.location.host + ':1236');
+
+ ws.onopen = function() {
+ };
+
+ ws.onclose = function() {
+ };
+
+ ws.onmessage = function(evt) {
+ };
+
+ ws.onerror = function(evt) {
+ };
+});
diff --git a/index.html b/index.html
new file mode 120000
index 0000000..92dc074
--- /dev/null
+++ b/index.html
@@ -0,0 +1 @@
+game.html \ No newline at end of file