Work on playlist items

This commit is contained in:
Calvin Montgomery 2013-06-09 18:18:27 -04:00
parent 38b2816e23
commit 161a116e59
5 changed files with 1977 additions and 1936 deletions

View File

@ -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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

File diff suppressed because it is too large Load Diff

View File

@ -1,103 +1,108 @@
var CLIENT = {
rank: -1,
leader: false,
name: "",
logged_in: false,
profile: {
image: "",
text: ""
}
};
var CHANNEL = {
opts: {},
openqueue: false,
perms: {},
name: false // TODO load name from URL
};
var PLAYER = false;
var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
var POSITION = -1;
var socket;
var IGNORED = [];
var CHATHIST = [];
var CHATHISTIDX = 0;
var SCROLLCHAT = true;
var LASTCHATNAME = "";
var LASTCHATTIME = 0;
var FOCUSED = true;
var PAGETITLE = "CyTube";
var TITLE_BLINK;
var KICKED = false;
var NAME = readCookie("cytube_uname");
var SESSION = readCookie("cytube_session");
var LEADTMR = false;
function getOrDefault(k, def) {
var v = localStorage.getItem(k);
if(v === null)
return def;
if(v === "true")
return true;
if(v === "false")
return false;
if(v.match(/[0-9]+/))
return parseInt(v);
if(v.match(/[0-9\.]+/))
return parseFloat(v);
return v;
}
var USEROPTS = {
theme : getOrDefault("theme", "default"),
css : getOrDefault("css", ""),
layout : getOrDefault("layout", "default"),
synch : getOrDefault("synch", true),
hidevid : getOrDefault("hidevid", false),
show_timestamps : getOrDefault("show_timestamps", true),
modhat : getOrDefault("modhat", false),
blink_title : getOrDefault("blink_title", false),
sync_accuracy : getOrDefault("sync_accuracy", 2),
chatbtn : getOrDefault("chatbtn", false),
altsocket : getOrDefault("altsocket", false)
};
var Rank = {
Guest: 0,
Member: 1,
Leader: 1.5,
Moderator: 2,
Admin: 3,
Owner: 10,
Siteadmin: 255
};
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(";");
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==" ") c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
/* to be implemented in callbacks.js */
function setupCallbacks() { }
var CLIENT = {
rank: -1,
leader: false,
name: "",
logged_in: false,
profile: {
image: "",
text: ""
}
};
var CHANNEL = {
opts: {},
openqueue: false,
perms: {},
name: false // TODO load name from URL
};
var PLAYER = false;
var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
var POSITION = -1;
var socket = {
emit: function() {
console.log("socket not initialized");
console.log(arguments);
}
};
var IGNORED = [];
var CHATHIST = [];
var CHATHISTIDX = 0;
var SCROLLCHAT = true;
var LASTCHATNAME = "";
var LASTCHATTIME = 0;
var FOCUSED = true;
var PAGETITLE = "CyTube";
var TITLE_BLINK;
var KICKED = false;
var NAME = readCookie("cytube_uname");
var SESSION = readCookie("cytube_session");
var LEADTMR = false;
function getOrDefault(k, def) {
var v = localStorage.getItem(k);
if(v === null)
return def;
if(v === "true")
return true;
if(v === "false")
return false;
if(v.match(/[0-9]+/))
return parseInt(v);
if(v.match(/[0-9\.]+/))
return parseFloat(v);
return v;
}
var USEROPTS = {
theme : getOrDefault("theme", "default"),
css : getOrDefault("css", ""),
layout : getOrDefault("layout", "default"),
synch : getOrDefault("synch", true),
hidevid : getOrDefault("hidevid", false),
show_timestamps : getOrDefault("show_timestamps", true),
modhat : getOrDefault("modhat", false),
blink_title : getOrDefault("blink_title", false),
sync_accuracy : getOrDefault("sync_accuracy", 2),
chatbtn : getOrDefault("chatbtn", false),
altsocket : getOrDefault("altsocket", false)
};
var Rank = {
Guest: 0,
Member: 1,
Leader: 1.5,
Moderator: 2,
Admin: 3,
Owner: 10,
Siteadmin: 255
};
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(";");
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==" ") c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
/* to be implemented in callbacks.js */
function setupCallbacks() { }

File diff suppressed because it is too large Load Diff