         [:div.input-4a3e3
           [:label.label-66a3b "MC password:"]
           [:input#password.input-48f1f {:type "password"}]]
-        [:button#submit.red-btn-2c9ab "OK"]]]])
+        [:button#submitPasswordBtn.red-btn-2c9ab "OK"]]]])
+
+(defn- click-login-as-mc [e]
+  (.preventDefault e)
+  (.emit @socket "request-mc" (.val ($ "#password"))))
 
 (defn on-grant-mc
   "Callback for handling the MC access grant."


(def $ js/$)

;;------------------------------------------------------------
;; Stop Game page
;;------------------------------------------------------------

  (.on @socket "time-left" on-time-left)
  (.on @socket "countdown" on-countdown)

  (.click ($ "#stopBtn")
          #(do (.emit @socket "stop-game")
               (cleanup-stop-page!)
               (init-start-page!))))
