diff --git a/www/assets/css/ytsync.css b/www/assets/css/ytsync.css index 5c768cb6..c2cc3159 100644 --- a/www/assets/css/ytsync.css +++ b/www/assets/css/ytsync.css @@ -1,289 +1,293 @@ -html, body { - height: 100%; -} - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -90px; -} - -#footer, .push { - margin: 90px 0 0 0; - height: 30px; - clear: both; -} - -#welcome { - font-size: 10pt; - color: #ffffff; -} - -#usercountwrap, #userlist, #messagebuffer, #videowrap { - background-color: #ffffff; -} - -#librarytoggle, #userpltoggle, #playlisttoggle { - background-color: #ffffff; -} - -#librarywrap, #userplaylistwrap, #playlist_controls { - display: none; -} - -.videolist { - list-style: none outside none; - margin-left: 0; - max-height: 500px; - overflow-y: scroll; -} - -.qe_btn { - height: 20px; - font-family: Monospace; - padding: 0 5px 0 5px; - margin: auto; - overflow: hidden; -} - -.qe_buttons { - float: left; -} - -.qe_title { - float: left; -} - -.qe_time { - font-family: Monospace; - float: right; -} - -.qe_clear { - clear: both; -} - -#userpl_list { - list-style: none outside none; - margin-left: 0; - max-height: 500px; - overflow-y: scroll; -} - -#userpl_list li { - clear: both; - margin: 2px 0 0 auto; - padding: 2px; - font-size: 8pt; -} - -#usercountwrap, #currenttitle { - border: 1px solid #aaaaaa; - border-bottom: none; - margin: 0; -} - -#usercount { - margin: 0; -} - -.pointer { - cursor: pointer; -} - -#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; - padding: 3px; - margin: 0; - font-size: 12pt; -} - -#plcount { - float: left; -} - -#pllength { - float: right; -} - -#userlist { - overflow-y: scroll; - overflow-x: hidden; - height: 347px; - float: left; - width: 150px; - border: 1px solid #aaaaaa; // [](/z13) - border-left: none; -} - -#messagebuffer { - overflow-y: scroll; - overflow-x: hidden; - height: 347px; - border: 1px solid #aaaaaa; // AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa - border-left: 0; -} - -#messagebuffer div, #messagebuffer code { - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ -} - -.userlist_siteadmin { - color: #cc0000; - font-weight: bold; -} - -.userlist_owner { - color: #0000cc; - font-weight: bold; -} - -.userlist_op { - color: #00aa00; -} - -.userlist_guest { - color: #888888; -} - -.action { - font-style: italic; - color: #888888; -} - -.spoiler { - color: #000000; - background-color: #000000; -} - -.spoiler:hover { - color: #ffffff; -} - -.greentext { - color: #789922; /* Color value directly from 4chan */ -} - -.shout { - color: #ff0000; - font-weight: bold; - font-size: 18pt; -} - -.mono { - font-family: Monospace; -} - -.server-msg-disconnect { - border: 1px solid #ff0000; - margin: 5px; - padding: 5px; - color: #ff0000; -} - -.server-msg-reconnect { - border: 1px solid #009900; - margin: 5px; - padding: 5px; - color: #009900; -} - -.poll-notify { - color: #0000aa; - font-weight: bold; - font-size: 14pt; -} - -.option button { - margin-right: 15px; -} - -.nick-highlight { - background-color: #ddffdd; -} - -.nick-hover { - background-color: #ffff99; -} - -.drink { - margin: 10px 10px; - padding: 10px 0px; - border: 2px solid #0000cc; -} - -#drinkbar { - margin-left: 0; - background-color: #000000; - color: #ffffff; - text-align: center; -} - -#motdtext, #csstext, #jstext { - width: 100%; -} - -#csstext, #jstext { - font-family: Monospace; -} - -#queue_next, #queue_end, #library_search, #youtube_search { - width: 50%; -} - -#footer { - background-color: #f5f5f5; - height: 30px; - width: 100%; - padding: 0; -} - -#footer p { - text-align: center; - width: 100%; -} - -.timestamp { - font-size: 8pt; -} - -.profile-box { - z-index: 9999; - position: absolute; - border: 1px solid #aaaaaa; - border-radius: 5px; - background-color: #ffffff; - max-width: 200px; - padding: 5px; -} - -.profile-image { - width: 80px; - height: 80px; - border: 1px solid #aaaaaa; - border-radius: 5px; -} +html, body { + height: 100%; +} + +.wrapper { + min-height: 100%; + height: auto !important; + height: 100%; + margin: 0 auto -90px; +} + +#footer, .push { + margin: 90px 0 0 0; + height: 30px; + clear: both; +} + +#welcome { + font-size: 10pt; + color: #ffffff; +} + +#usercountwrap, #userlist, #messagebuffer, #videowrap { + background-color: #ffffff; +} + +#librarytoggle, #userpltoggle, #playlisttoggle { + background-color: #ffffff; +} + +#librarywrap, #userplaylistwrap, #playlist_controls { + display: none; +} + +.videolist { + list-style: none outside none; + margin-left: 0; + max-height: 500px; + overflow-y: scroll; +} + +.qe_btn { + height: 20px; + font-family: Monospace; + padding: 0 5px 0 5px; + margin: auto; + overflow: hidden; +} + +.qe_buttons { + float: left; +} + +.qe_title { + float: left; +} + +.qe_time { + font-family: Monospace; + float: right; +} + +.qe_clear { + clear: both; +} + +#userpl_list { + list-style: none outside none; + margin-left: 0; + max-height: 500px; + overflow-y: scroll; +} + +#userpl_list li { + clear: both; + margin: 2px 0 0 auto; + padding: 2px; + font-size: 8pt; +} + +#usercountwrap, #currenttitle { + border: 1px solid #aaaaaa; + border-bottom: none; + margin: 0; +} + +#usercount { + margin: 0; +} + +.pointer { + cursor: pointer; +} + +#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) +} + +.queue_temp { + background-image: url(../img/stripe-diagonal.png); +} + +#plmeta { + border: 1px solid #aaaaaa; + background-color: #ffffff; + padding: 3px; + margin: 0; + font-size: 12pt; +} + +#plcount { + float: left; +} + +#pllength { + float: right; +} + +#userlist { + overflow-y: scroll; + overflow-x: hidden; + height: 347px; + float: left; + width: 150px; + border: 1px solid #aaaaaa; // [](/z13) + border-left: none; +} + +#messagebuffer { + overflow-y: scroll; + overflow-x: hidden; + height: 347px; + border: 1px solid #aaaaaa; // AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa + border-left: 0; +} + +#messagebuffer div, #messagebuffer code { + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ +} + +.userlist_siteadmin { + color: #cc0000; + font-weight: bold; +} + +.userlist_owner { + color: #0000cc; + font-weight: bold; +} + +.userlist_op { + color: #00aa00; +} + +.userlist_guest { + color: #888888; +} + +.action { + font-style: italic; + color: #888888; +} + +.spoiler { + color: #000000; + background-color: #000000; +} + +.spoiler:hover { + color: #ffffff; +} + +.greentext { + color: #789922; /* Color value directly from 4chan */ +} + +.shout { + color: #ff0000; + font-weight: bold; + font-size: 18pt; +} + +.mono { + font-family: Monospace; +} + +.server-msg-disconnect { + border: 1px solid #ff0000; + margin: 5px; + padding: 5px; + color: #ff0000; +} + +.server-msg-reconnect { + border: 1px solid #009900; + margin: 5px; + padding: 5px; + color: #009900; +} + +.poll-notify { + color: #0000aa; + font-weight: bold; + font-size: 14pt; +} + +.option button { + margin-right: 15px; +} + +.nick-highlight { + background-color: #ddffdd; +} + +.nick-hover { + background-color: #ffff99; +} + +.drink { + margin: 10px 10px; + padding: 10px 0px; + border: 2px solid #0000cc; +} + +#drinkbar { + margin-left: 0; + background-color: #000000; + color: #ffffff; + text-align: center; +} + +#motdtext, #csstext, #jstext { + width: 100%; +} + +#csstext, #jstext { + font-family: Monospace; +} + +#queue_next, #queue_end, #library_search, #youtube_search { + width: 50%; +} + +#footer { + background-color: #f5f5f5; + height: 30px; + width: 100%; + padding: 0; +} + +#footer p { + text-align: center; + width: 100%; +} + +.timestamp { + font-size: 8pt; +} + +.profile-box { + z-index: 9999; + position: absolute; + border: 1px solid #aaaaaa; + border-radius: 5px; + background-color: #ffffff; + max-width: 200px; + padding: 5px; +} + +.profile-image { + width: 80px; + height: 80px; + border: 1px solid #aaaaaa; + border-radius: 5px; +} diff --git a/www/assets/img/stripe-diagonal.png b/www/assets/img/stripe-diagonal.png new file mode 100644 index 00000000..ae44b914 Binary files /dev/null and b/www/assets/img/stripe-diagonal.png differ diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index 66fe6864..ef8702d2 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -1,824 +1,826 @@ -/* -The MIT License (MIT) -Copyright (c) 2013 Calvin Montgomery - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -Callbacks = { - - /* fired when socket connection completes */ - connect: function() { - socket.emit("joinChannel", { - name: CHANNEL.name - }); - if(uname && session) { - socket.emit("login", { - name: NAME, - session: SESSION - }); - } - $("
").addClass("server-msg-reconnect") - .text("Connected") - .appendTo($("#messagebuffer")); - $("#messagebuffer").scrollTop($("#messagebuffer").prop("scrollHeight")); - }, - - disconnect: function() { - if(KICKED) - return; - $("
") - .addClass("server-msg-disconnect") - .text("Disconnected from server. Attempting reconnection...") - .appendTo($("#messagebuffer")); - scrollChat(); - }, - - errorMsg: function(data) { - alert(data.msg); - }, - - announcement: function(data) { - $("#announcements").html(""); - makeAlert(data.title, data.text) - .appendTo($("#announcements")); - }, - - kick: function(data) { - KICKED = true; - $("
").addClass("server-msg-disconnect") - .text("Kicked: " + data.reason) - .appendTo($("#messagebuffer")); - scrollChat(); - }, - - noflood: function(data) { - $("
") - .addClass("server-msg-disconnect") - .text(data.action + ": " + data.msg) - .appendTo($("#messagebuffer")); - scrollChat(); - }, - - channelNotRegistered: function() { - var div = $("
").addClass("alert alert-info") - .attr("id", "chregnotice") - .insertBefore($("#main")); - $("