Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed simulated complexity numbers

  • Loading branch information...
commit 63cf68a74cf204e669052adf6ee57a4113393589 1 parent 9811d85
authored January 28, 2012

Showing 1 changed file with 4 additions and 8 deletions. Show diff stats Hide diff stats

  1. 12  main.opa
12  main.opa
@@ -35,10 +35,7 @@ client module Display {
35 35
 
36 36
   function install() {
37 37
     function mkcmd(m) {
38  
-      <td style="text-align: center">{WBootstrap.Button.make({button: Move.to_html(m), callback:function(_){CubeState.apply_move(m)}}, []) |> Xhtml.update_class("formula", _)}</td>
39  
-    }
40  
-    function mksimulatecmd(m) {
41  
-      <td style="text-align: center">{WBootstrap.Label.make("", {notice}) |> Xhtml.add_id(some("id_simu_{Move.to_string(m)}"), _)}</td>
  38
+      <span style="text-align: center">{WBootstrap.Button.make({button: Move.to_html(m), callback:function(_){CubeState.apply_move(m)}}, []) |> Xhtml.update_class("formula", _)}</span>
42 39
     }
43 40
     function mkface(f) {    // TODO use a table ?
44 41
       function fid(n) { facelet_id({~f, ~n}) }
@@ -50,10 +47,9 @@ client module Display {
50 47
         <tr>{list(xhtml) [td(7), td(8), td(9)]}</tr>
51 48
       </table>
52 49
     }
53  
-    #commands = <table>
54  
-       <tr>{List.map(mkcmd, Move.simple_moves)}</tr>
55  
-       <tr>{List.map(mksimulatecmd, Move.simple_moves)}</tr>
56  
-       </table>
  50
+    #commands = <div>
  51
+       {List.map(mkcmd, Move.simple_moves)}
  52
+       </div><p/>
57 53
     #facelets =
58 54
        <div>
59 55
   {WBootstrap.Grid.row([{span:3, offset:some(3), content:mkface({up})}])}

0 notes on commit 63cf68a

Please sign in to comment.
Something went wrong with that request. Please try again.