Browse Source

synrc.com

Maxim Sokhatsky 11 years ago
parent
commit
186e747924

+ 1 - 1
apps/face/priv/static/google_sdk.js

@@ -12,7 +12,7 @@ function render(){
   gapi.signin.render('plusloginbtn', {
   gapi.signin.render('plusloginbtn', {
     'callback':'plusoneCallback',
     'callback':'plusoneCallback',
     'clientid':'146782506820.apps.googleusercontent.com',
     'clientid':'146782506820.apps.googleusercontent.com',
-    'cookiepolicy': 'http://synrc.com',
+    'cookiepolicy': 'http://skyline.synrc.com',
     'requestvisibleactions':'http://schemas.google.com/AddActivity',
     'requestvisibleactions':'http://schemas.google.com/AddActivity',
     'scope':'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email '
     'scope':'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email '
   });
   });

+ 1 - 1
apps/face/priv/templates/index.html

@@ -10,7 +10,7 @@
 </head>
 </head>
 <body>
 <body>
 {{body}}
 {{body}}
-<script>var transition = {pid: '' };</script>
+<script>var transition = {pid: '', port: '8000' };</script>
 <script>function handle_web_socket(body) { console.log(String(bert.decodebuf(body))); } </script>
 <script>function handle_web_socket(body) { console.log(String(bert.decodebuf(body))); } </script>
 <script src='/static/nitrogen/bullet.js' type='text/javascript' charset='utf-8'></script>
 <script src='/static/nitrogen/bullet.js' type='text/javascript' charset='utf-8'></script>
 <script src='/static/nitrogen/n2o.js' type='text/javascript' charset='utf-8'></script>
 <script src='/static/nitrogen/n2o.js' type='text/javascript' charset='utf-8'></script>

+ 2 - 1
apps/face/src/index.erl

@@ -73,6 +73,7 @@ pause(GameId, Action) ->
        )
        )
      ).
      ).
 
 
+redraw_tiles(undefined) -> [];
 redraw_tiles([{Tile, _}| _ ] = TilesList) ->
 redraw_tiles([{Tile, _}| _ ] = TilesList) ->
     wf:update(discard_combo,
     wf:update(discard_combo,
         [#dropdown{id = discard_combo, postback = combo,
         [#dropdown{id = discard_combo, postback = combo,
@@ -116,7 +117,7 @@ body() ->
     ].
     ].
 
 
 event(terminate) -> wf:info("terminate");
 event(terminate) -> wf:info("terminate");
-event(init) -> event(attach), event(join);
+event(init) -> ok; %event(attach), event(join);
 
 
 event(combo)  -> wf:info("Combo: ~p",[wf:q(discard_combo)]);
 event(combo)  -> wf:info("Combo: ~p",[wf:q(discard_combo)]);
 event(join)   -> wf:wire(join("1000001"));
 event(join)   -> wf:wire(join("1000001"));