Browse Source

change domain; fix drag black knight

romanmatiasko 10 years ago
parent
commit
663fd95444
3 changed files with 9 additions and 9 deletions
  1. 1 1
      README.md
  2. 6 6
      public/javascripts/app.js
  3. 2 2
      views/play.jade

+ 1 - 1
README.md

@@ -3,7 +3,7 @@ Reti Chess
 
 Reti Chess is an open source chess app built in [Node.js](http://nodejs.org/) with use of [Express framework](http://expressjs.com/) and [Socket.IO](http://socket.io/). Reti Chess also uses [chess.js](https://github.com/jhlywa/chess.js) for move validation and check/mate/draw detection.
 
-You can check out demo on [retichess-rmn.rhcloud.com](http://retichess-rmn.rhcloud.com/)
+You can check out demo on [www.retichess.com](http://wwww.retichess.com/)
 
 Why Reti?
 ---------

+ 6 - 6
public/javascripts/app.js

@@ -1,16 +1,16 @@
 var $URL, $socket;
   
 $(function () {
-  //var ENVIRONMENT = 'openshift';
-  var ENVIRONMENT = 'dev';
+  //var ENV = 'openshift';
+  var ENV = 'dev';
   var $WS;
 
-  if (ENVIRONMENT === 'dev') {
+  if (ENV === 'dev') {
     $URL = 'http://localhost:3000';
     $WS = $URL;
-  } else if (ENVIRONMENT === 'openshift') {
-    $URL = 'http://retichess-rmn.rhcloud.com';
-    $WS = 'ws://retichess-rmn.rhcloud.com:8000/';
+  } else if (ENV === 'openshift') {
+    $URL = 'http://www.retichess.com';
+    $WS = 'ws://www.retichess.com:8000/';
   }
 
   $socket = io.connect($WS);

+ 2 - 2
views/play.jade

@@ -236,8 +236,8 @@ block content
         tr
           td.H8(data-id='H8', draggable='true')
             a.black.rook(draggable='true') ♜
-          td.G8(data-id='G8')
-            a.black.knight(href="#") ♞
+          td.G8(data-id='G8', draggable='true')
+            a.black.knight(draggable='true') ♞
           td.F8(data-id='F8', draggable='true')
             a.black.bishop(draggable='true') ♝
           td.E8(data-id='E8', draggable='true')