Wire up homepage buttons
authorchapel <jacob.chapel@gmail.com>
Sun, 20 Nov 2011 05:01:11 +0000 (21:01 -0800)
committerchapel <jacob.chapel@gmail.com>
Sun, 20 Nov 2011 05:01:11 +0000 (21:01 -0800)
public/index.html
public/javascripts/main.js

index ecec4d674e78b56d778e3654cb10d318cc11775d..bb577bbf56564db6cee17daf513294055a1be2b5 100755 (executable)
@@ -92,8 +92,8 @@
 
                                <div class="grid-12">
                                        <div class="button-set vertical half-width centered-rt-parent half-width-buttons">
-                                               <button class="green">Sign Up</button>
-                                               <button class="blue">Learn Something</button>
+                                               <button id="signup" class="green">Sign Up</button>
+                                               <button id="learnsomething" class="blue">Learn Something</button>
                                        </div>
                                </div>
 
index a85d6878ee6b4a7ebab4fb979cea954461c23b6b..bae30c0c4525e39e1ed8dcf9c2585e5ff3b32cae 100644 (file)
@@ -102,6 +102,9 @@ router.add('home', false, function(cb) {
   $('#learnsomething').unbind();
   $('.nav').removeClass('active');
        cb("home");
+  $('#signup').click(function(e) {
+    goPage('/register');
+  });
   $('#learnsomething').click(function(e) {
     $.get('/learn/random', function(data) {
       if (data.status === 'ok') {