1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
DanielnetoDotCom 2020-10-19 17:13:22 -03:00
parent e6123f49ba
commit 44b5cdcd08

View file

@ -2,7 +2,7 @@
function compress(t) { function compress(t) {
console.log("compress"); console.log("compress");
$("#modeYoutubeTop").prependTo("#modeYoutubeBottomContent"); $("#modeYoutubeTop").prependTo("#modeYoutubeBottomContent");
if(t!=undefined){ if(typeof t !== 'undefined'){
t.removeClass('ypt-compress'); t.removeClass('ypt-compress');
t.addClass('ypt-expand'); t.addClass('ypt-expand');
} }
@ -10,13 +10,13 @@ function compress(t) {
function expand(t) { function expand(t) {
console.log("expand"); console.log("expand");
$("#modeYoutubeTop").prependTo("#modeYoutubePrincipal"); $("#modeYoutubeTop").prependTo("#modeYoutubePrincipal");
if(t!=undefined){ if(typeof t !== 'undefined'){
t.removeClass('ypt-expand'); t.removeClass('ypt-expand');
t.addClass('ypt-compress'); t.addClass('ypt-compress');
} }
} }
function toogleEC(t) { function toogleEC(t) {
if(t!=undefined){ if(typeof t !== 'undefined'){
if (t.hasClass('ypt-expand')) { if (t.hasClass('ypt-expand')) {
expand(t); expand(t);
Cookies.set('compress', false, { Cookies.set('compress', false, {