From 9c3596b04a1a7a82139f9e4faca4287f3408e6d7 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 9 Jun 2013 14:03:41 -0400 Subject: [PATCH] Still working on things --- www/assets/css/ytsync.css | 27 ++-- www/assets/js/callbacks.js | 314 +++++++++++++++++-------------------- www/assets/js/data.js | 6 + www/assets/js/ui.js | 9 +- www/channel-new.html | 8 +- 5 files changed, 182 insertions(+), 182 deletions(-) diff --git a/www/assets/css/ytsync.css b/www/assets/css/ytsync.css index 204ed1b8..5c768cb6 100644 --- a/www/assets/css/ytsync.css +++ b/www/assets/css/ytsync.css @@ -39,13 +39,6 @@ html, body { overflow-y: scroll; } -.videolist li { - margin: 2px 0 0 auto; - padding: 2px; - font-size: 8pt; - border: 1px solid #aaaaaa; // [](/w21) -} - .qe_btn { height: 20px; font-family: Monospace; @@ -85,10 +78,6 @@ html, body { font-size: 8pt; } -#queue { - margin-bottom: 0; -} - #usercountwrap, #currenttitle { border: 1px solid #aaaaaa; border-bottom: none; @@ -103,10 +92,24 @@ html, body { cursor: pointer; } -#leftpane-inner div.span12, #rightpane-inner div.span12 { +#leftpane-inner div.span12, #rightpane-inner div.span12, +#leftpane-inner ul, #rightpane-inner ul { margin-left: 0; } +#queue { + margin-bottom: 0; +} + +.queue_entry { + cursor: row-resize; + background-color: #ffffff; + margin: 2px 0 0 auto; + padding: 2px; + font-size: 8pt; + border: 1px solid #aaaaaa; // [](/w21) +} + #plmeta { border: 1px solid #aaaaaa; background-color: #ffffff; diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index b560d72d..66fe6864 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -11,14 +11,15 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI Callbacks = { + /* fired when socket connection completes */ connect: function() { socket.emit("joinChannel", { - name: CHANNEL + name: CHANNEL.name }); if(uname && session) { socket.emit("login", { - name: uname, - session: session + name: NAME, + session: SESSION }); } $("
").addClass("server-msg-reconnect") @@ -34,7 +35,7 @@ Callbacks = { .addClass("server-msg-disconnect") .text("Disconnected from server. Attempting reconnection...") .appendTo($("#messagebuffer")); - $("#messagebuffer").scrollTop($("#messagebuffer").prop("scrollHeight")); + scrollChat(); }, errorMsg: function(data) { @@ -42,15 +43,9 @@ Callbacks = { }, announcement: function(data) { - $("#announcerow").html(""); - $("#announcerow").css("display", ""); - var div = $("
").addClass("alert") - .appendTo($("#announcerow")); - $("