Add button to show/hide userlist

This commit is contained in:
calzoneman 2013-06-06 13:53:10 -04:00
parent 685358b0d8
commit 2c069c26b3
3 changed files with 26 additions and 2 deletions

View File

@ -77,12 +77,21 @@ html, body {
margin-bottom: 0;
}
#usercount, #currenttitle {
#usercountcontainer, #currenttitle {
border: 1px solid #aaaaaa;
border-bottom: none;
margin: 0;
}
#usercount {
margin: 0;
}
#ulistchevron {
cursor: pointer;
float: left;
}
#plmeta {
border: 1px solid #aaaaaa;
background-color: #ffffff;

View File

@ -149,6 +149,18 @@ if(!USEROPTS.hidevid) {
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
$("#ulistchevron").click(function() {
var state = $("#userlist").css("display");
if(state == "none") {
$("#userlist").show();
$("#ulistchevron").removeClass().addClass("icon-chevron-up");
}
else {
$("#userlist").hide();
$("#ulistchevron").removeClass().addClass("icon-chevron-down");
}
});
var sendVideoUpdate = function() { }
setInterval(function() {
sendVideoUpdate();

View File

@ -58,7 +58,10 @@
</div>
<div class="row" id="main" style="margin-top: 20px;">
<div class="span5" id="chatdiv">
<p id="usercount"></p>
<div id="usercountcontainer">
<i class="icon-chevron-up" id="ulistchevron" title="Show/Hide Userlist"></i>
<p id="usercount"></p>
</div>
<div id="userlist">
</div>
<div id="messagebuffer">