Skip to content
Browse files

added room class

  • Loading branch information...
1 parent 8f4ff18 commit 50605a202c6d228d5c2cac1e6b8752c7aff7249c @cirsteve cirsteve committed Apr 28, 2012
Showing with 8 additions and 4 deletions.
  1. +1 −1 client.js
  2. +3 −3 templates/index.html
  3. +4 −0 templates/public.css
View
2 client.js
@@ -26,7 +26,7 @@ socket.on("roomCreated", function (data) {
$(".lobby").hide();
$(".room").fadeIn(1000);
$("#roomName").removeClass("hidden");
- $("#roomName").html("<h3>" + data.name + "</h3>");
+ $("#roomName").html("<h3>" + data.room + "</h3>");
});
socket.on("yo", function (data) {
View
6 templates/index.html
@@ -18,9 +18,9 @@
</p>
<input id="roomSubmit" type="submit" value="create room">
</form>
- <input id="start-drawing" type="button" value="start drawing" />
- <input id="clear-drawing" class="hidden" type="button" value="clear drawing" />
- <select class="hidden">
+ <input id="start-drawing" class="room" type="button" value="start drawing" />
+ <input id="clear-drawing" class="room" type="button" value="clear drawing" />
+ <select class="room">
<option value="black">black</option>
<option value="purple">purple</option>
<option value="blue">blue</option>
View
4 templates/public.css
@@ -10,3 +10,7 @@
#canvas {
border: green 1px solid;
}
+
+.room {
+ display: none;
+}

0 comments on commit 50605a2

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