mirror of https://github.com/calzoneman/sync.git
Add button to show/hide userlist
This commit is contained in:
parent
685358b0d8
commit
2c069c26b3
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue