Improve announcements; remove debug console.log

This commit is contained in:
calzoneman 2013-05-16 22:48:37 -04:00
parent 8da604fd8a
commit 767cfdd76e
3 changed files with 6 additions and 2 deletions

View file

@ -27,8 +27,10 @@ Callbacks = {
},
announcement: function(data) {
$("#announcerow").html("");
$("#announcerow").css("display", "");
var div = $("<div/>").addClass("alert")
.insertAfter($(".row")[0]);
.appendTo($("#announcerow"));
$("<button/>").addClass("close pull-right").text("×")
.appendTo(div)
.click(function() { div.remove(); });

View file

@ -53,6 +53,8 @@
<h1 id="drinkcount"></h1>
</div>
</div>
<div class="row-fluid" id="announcerow" style="display: none">
</div>
<div class="row" id="main" style="margin-top: 20px;">
<div class="span5" id="chatdiv">
<p id="usercount"></p>