So much work

This commit is contained in:
calzoneman 2013-06-11 19:51:00 -04:00
parent 1850f009ff
commit de2294d3ab
5 changed files with 1045 additions and 1039 deletions

View File

@ -466,9 +466,10 @@ Callbacks = {
},
drinkCount: function(count) {
console.log(count);
if(count != 0) {
var text = count + " drink";
if(data.count != 1) {
if(count != 1) {
text += "s";
}
$("#drinkcount").text(text);

View File

@ -501,6 +501,10 @@ Player.prototype.update = function(data) {
data.currentTime = 0;
}
this.load(data);
this.play();
}
if(CLIENT.leader) {
return;
}
if(!USEROPTS.synch) {
return;
@ -512,9 +516,6 @@ Player.prototype.update = function(data) {
else {
this.play();
}
if(CLIENT.leader) {
return;
}
this.getTime(function(seconds) {
var time = data.currentTime;
var diff = time - seconds || time;

View File

@ -24,6 +24,7 @@ generateToggle("#playlisttoggle", "#playlist_controls");
/* navbar stuff */
$("#optlink").click(showOptionsMenu);
$("#chatonly").click(chatOnly);
function guestLogin() {
socket.emit("login", {

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,7 @@
<li><a href="help.html">Help</a></li>
<li><a href="account.html">Account</a></li>
<li><a href="javascript:void(0)" id="optlink">Options</a></li>
<li><a href="javascript:void(0)" id="chatonly">Chat Only</a></li>
</ul>
<div class="navbar-form pull-right" id="loginform">
<input type="text" id="guestname" placeholder="Name">