Added schedule airtimes, fixed layout issues, locked down fore,st(guest disable), contrast fixes (css)
This commit is contained in:
parent
b0570f2c15
commit
55a9fcf465
20 changed files with 279 additions and 1238 deletions
|
|
@ -103,14 +103,14 @@ UI_FontsBtn = 0; // button displaying box with clickable chat fonts
|
|||
// [ REQUIRE: INSTALLATION (see above) ]
|
||||
UI_UnicodeChars = 0; // [&] additional buttons in the fonts panel with unicode characters
|
||||
// [ REQUIRE: UI_FontsBtn enabled ]
|
||||
UI_EmotesBtn = 1; // button displaying box with clickable chat emotes
|
||||
UI_EmotesBtn = 0; // button displaying box with clickable chat emotes
|
||||
UI_GroupEmotes = 1; // [&] emotes panel pagination, display limited number of emotes at one time
|
||||
// [ REQUIRE: UI_EmotesBtn enabled ]
|
||||
UI_CommandsBtn = 1; // button displaying modal window with chat commands help
|
||||
UI_CommandsBtn = 0; // button displaying modal window with chat commands help
|
||||
UI_ModPanel = 0; // [&] panel with messages and help for moderators
|
||||
UI_CustomCaptions = 0; // [&] custom captions for add, refresh, voteskip buttons, and welcome text
|
||||
UI_PlayerOptions = 1; // [&] additional player options
|
||||
UI_TransformationBtns = 1; // player transformation buttons
|
||||
UI_PlayerOptions = 0; // [&] additional player options
|
||||
UI_TransformationBtns = 0; // player transformation buttons
|
||||
UI_ChannelDatabase = 1; // [&] box with embed additional media database
|
||||
UI_ChannelGalleries = 0; // [&] box with embed galleries
|
||||
UI_DisplayModeSel = 1; // selector with player display modes
|
||||
|
|
@ -662,48 +662,49 @@ function setLayout() {
|
|||
refreshPlayer();
|
||||
}
|
||||
|
||||
//-----STOP BREAKIN SHIT!
|
||||
// fit player height
|
||||
|
||||
function fitPlayer() {
|
||||
VW=$("#videowrap").width()+'';
|
||||
VH=Math.floor(parseInt(VW)*9/16+1)+'';
|
||||
$("#ytapiplayer").width(VW).height(VH);
|
||||
//VW=$("#videowrap").width()+'';
|
||||
//VH=Math.floor(parseInt(VW)*9/16+1)+'';
|
||||
//$("#ytapiplayer").width(VW).height(VH);
|
||||
}
|
||||
|
||||
// fit chat height
|
||||
|
||||
function fitChat(a) {
|
||||
if (a=="auto") {
|
||||
/*if (a=="auto") {
|
||||
VW=$("#messagebuffer").width();
|
||||
VH=Math.floor(parseInt(VW)*9/16+1);
|
||||
} else {
|
||||
VH=a;
|
||||
}
|
||||
$("#messagebuffer").height(VH);
|
||||
$("#userlist").height(VH);
|
||||
$("#userlist").height(VH);*/
|
||||
}
|
||||
|
||||
// display mode helper functions
|
||||
|
||||
function bigPlayer() {
|
||||
$("#videowrap").removeClass().addClass("col-lg-12 col-md-12");
|
||||
fitPlayer();
|
||||
//$("#videowrap").removeClass().addClass("col-lg-12 col-md-12");
|
||||
//fitPlayer();
|
||||
}
|
||||
|
||||
function bigChat() {
|
||||
$("#chatwrap").removeClass().addClass('col-lg-12 col-md-12');
|
||||
fitChat("auto");
|
||||
//$("#chatwrap").removeClass().addClass('col-lg-12 col-md-12');
|
||||
//fitChat("auto");
|
||||
}
|
||||
|
||||
function normalPlayer() {
|
||||
$("#videowrap").removeClass().addClass("col-lg-7 col-md-7");
|
||||
fitPlayer();
|
||||
//$("#videowrap").removeClass().addClass("col-lg-7 col-md-7");
|
||||
//fitPlayer();
|
||||
}
|
||||
|
||||
function normalChat() {
|
||||
c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5';
|
||||
/*c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5';
|
||||
$("#chatwrap").removeClass().addClass(c);
|
||||
fitChat(338);
|
||||
fitChat(338);*/
|
||||
}
|
||||
|
||||
// set display mode
|
||||
|
|
@ -731,10 +732,10 @@ function setMode(a) {
|
|||
normalPlayer();
|
||||
|
||||
c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5';
|
||||
$("#chatwrap").removeClass().addClass(c);
|
||||
H=parseInt(VH)-$("#chatline").outerHeight()-1;
|
||||
$("#messagebuffer").height(H);
|
||||
$("#userlist").height(H);
|
||||
//$("#chatwrap").removeClass().addClass(c);
|
||||
//H=parseInt(VH)-$("#chatline").outerHeight()-1;
|
||||
//$("#messagebuffer").height(H);
|
||||
//$("#userlist").height(H);
|
||||
|
||||
USERCONFIG.player=="center" ? playerLocation("center") : '';
|
||||
PINNED ? pinUp() : '';
|
||||
|
|
@ -2147,15 +2148,15 @@ function pinUp() {
|
|||
$("#videowrap").before($("#rightpane").detach());
|
||||
}
|
||||
if (USERCONFIG.queue=="left") {
|
||||
$("#leftpane").before($("#chatwrap").detach());
|
||||
//$("#leftpane").before($("#chatwrap").detach());
|
||||
} else if (USERCONFIG.queue=="right") {
|
||||
$("#leftpane").after($("#chatwrap").detach());
|
||||
//$("#leftpane").after($("#chatwrap").detach());
|
||||
}
|
||||
$("#rightpane").removeClass().addClass('col-lg-5 col-md-5');
|
||||
if (USERCONFIG.qsize=="wide") {
|
||||
$("#chatwrap").removeClass().addClass('col-lg-7 col-md-7');
|
||||
//$("#chatwrap").removeClass().addClass('col-lg-7 col-md-7');
|
||||
} else {
|
||||
$("#chatwrap").removeClass().addClass('col-lg-5 col-md-5');
|
||||
//$("#chatwrap").removeClass().addClass('col-lg-5 col-md-5');
|
||||
}
|
||||
$("#pinup-btn").attr('title', 'Unpin playlist');
|
||||
$("#config-btn, #configbtnwrap br").hide();
|
||||
|
|
@ -3580,9 +3581,13 @@ $("#chatbtn").on("click", function() {
|
|||
|
||||
// fix layout behaviour after resizing
|
||||
// DEV NOTE: this is extended function from CyTube "util.js" file
|
||||
//
|
||||
|
||||
|
||||
|
||||
function resizeStuff() {
|
||||
VWIDTH = $("#videowrap").width() + "";
|
||||
console.log("resize stuff called");
|
||||
VHEIGHT = Math.floor(parseInt(VWIDTH) * 9 / 16 + 1) + "";
|
||||
$("#ytapiplayer").width(VWIDTH).height(VHEIGHT);
|
||||
|
||||
|
|
@ -3591,8 +3596,8 @@ function resizeStuff() {
|
|||
}
|
||||
|
||||
var h = parseInt(VHEIGHT) - $("#chatline").outerHeight() - 1;
|
||||
$("#messagebuffer").height(h);
|
||||
$("#userlist").height(h);
|
||||
//$("#messagebuffer").height(h);//fixin shit
|
||||
//$("#userlist").height(h);
|
||||
|
||||
if (UI_DisplayModeSel=="1") {
|
||||
m=modesel.val();
|
||||
|
|
@ -3605,23 +3610,23 @@ function resizeStuff() {
|
|||
$("#videowrap div, #videowrap p").hide();
|
||||
$("#ytapiplayer").width(1).height(1);
|
||||
}
|
||||
fitChat("auto");
|
||||
// fitChat("auto");
|
||||
} else if (m=="syMode" && USERCONFIG.player=="center") {
|
||||
fitChat(200);
|
||||
// fitChat(200);
|
||||
} else if (m=="sMode") {
|
||||
// DEV NOTE: current function is called in "changeMedia" callback (condition race)
|
||||
|
||||
VW=$("#messagebuffer").width();
|
||||
VH=Math.floor(parseInt(VW)*9/16+1);
|
||||
$("#messagebuffer, #userlist").height(VH);
|
||||
//$("#messagebuffer, #userlist").height(VH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// bind new resizing function
|
||||
|
||||
$(window).unbind("resize");
|
||||
$(window).resize(resizeStuff);
|
||||
//$(window).unbind("resize");
|
||||
//$(window).resize(resizem);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
@ -3646,6 +3651,7 @@ if (FLUID) {
|
|||
$("#fontspanel, #emotespanel").addClass('fluidpanel');
|
||||
}
|
||||
|
||||
console.log("WTF");
|
||||
// finishing variable
|
||||
|
||||
LOADED=true;
|
||||
|
|
@ -3666,3 +3672,5 @@ if (UI_ExternalScript=="1" && ExternalScript_URL!="") {
|
|||
}
|
||||
|
||||
/* ----- END OF LIBRARY ----- */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -446,7 +446,7 @@ var USERCONFIG = {
|
|||
"modhash":getOrDefault(CHANNEL.name+"_modhash", ""),
|
||||
}
|
||||
var USERTHEME = getOrDefault(CHANNEL.name+"_theme", DEFTHEME);
|
||||
var FLUID = getOrDefault(CHANNEL.name+"_fluid", false);
|
||||
var FLUID = getOrDefault(CHANNEL.name+"_fluid", true);
|
||||
var LAYOUTBOX = getOrDefault(CHANNEL.name+"_layoutbox", true);
|
||||
var SOUNDSLVL = getOrDefault(CHANNEL.name+"_soundslvl", 3);
|
||||
var EMBEDIMG = getOrDefault(CHANNEL.name+"_embedimg", true);
|
||||
|
|
@ -659,6 +659,7 @@ function setLayout() {
|
|||
logoInsert(USERCONFIG.logo);
|
||||
headerMode(USERCONFIG.header);
|
||||
customCSS(USERCONFIG.css);
|
||||
refreshPlayer();
|
||||
}
|
||||
|
||||
// fit player height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue