Permalink
Browse files

Working on voting room client code.

  • Loading branch information...
1 parent 6ec1c18 commit 068a2000d586e8578c71dd4c45423879d7bac06c Jonas Galvez committed Aug 29, 2010
Showing with 1,764 additions and 1 deletion.
  1. +4 −1 client/index.html
  2. +29 −0 client/voting-room.html
  3. +9 −0 static/js/index.js
  4. +1,707 −0 static/js/socket.io.js
  5. +15 −0 static/js/voting-room.js
View
@@ -5,8 +5,11 @@
<link type="text/css" href="/css/index.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.custom.min.js"></script>
+<script type="text/javascript" src="/js/index.js"></script>
</head>
<body>
+<form id="voting-room-form" style="display: none;" action="/voting-room" method="post">
+</form>
<div id="column-b">
<div class="bar" style="height: 50px; background-color: #545454;"></div>
<div class="bar" style="height: 30px; background-color: #c2c2c2;"></div>
@@ -20,7 +23,7 @@
<p>lets you capture an anonymous "show of hands" during a presentation.</p>
<p style="margin-top: 25px;">create as many voting<br>options as you want, <br>hit 'create' and<br> that's it.</p>
</div>
-<div class="side-button" style="margin-top: 25px;">create!</div>
+<div id="create" class="side-button" style="margin-top: 25px;">create<div>
</div>
</div>
</body>
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+<head>
+<link type="text/css" href="/css/smoothness/jquery-ui-1.8.custom.css" rel="stylesheet" />
+<link type="text/css" href="/css/index.css" rel="stylesheet" />
+<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="/js/jquery-ui-1.8.custom.min.js"></script>
+<script type="text/javascript" src="/js/voting-room.js"></script>
+<script type="text/javascript">nodevote.voting_room_id = <%= voting_room_id %>;</script>
+</head>
+<body>
+<div id="column-b">
+ <div class="bar" style="height: 50px; background-color: #545454;"></div>
+ <div class="bar" style="height: 30px; background-color: #c2c2c2;"></div>
+ <div class="bar" style="height: 80px; background-color: #545454;"></div>
+ <div class="bar" style="height: 120px; background-color: #c2c2c2;"></div>
+</div>
+<div id="column-a">
+<div id="column-a-container">
+<div id="logo-box" class="">no•de•vote</div>
+<div class="info-box" style="margin-top: 30px;">
+ <p>lets you capture an anonymous "show of hands" during a presentation.</p>
+ <p style="margin-top: 25px;">you are currently in a voting room, vote by clicking on any of the bars, which will flash quickly to let you know your vote has been cast.</p>
+</div>
+<div class="side-button" style="margin-top: 25px;">freeze</div>
+</div>
+</div>
+</body>
+</html>
View
@@ -0,0 +1,9 @@
+nodevote = {'ui': {'handlers': {}}};
+nodevote.ui.handlers['create'] = {
+ 'click': function() {
+ $('#voting-room-form').submit();
+ }
+}
+$(document).ready(function() {
+ $('#create').click(nodevote.ui.handlers['create'].click);
+});
Oops, something went wrong.

0 comments on commit 068a200

Please sign in to comment.