mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
efe67c0617
commit
d29d5e0ae8
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ $(document).ready(function () {
|
|||
$("#buttonMyNavbar").click(function (event) {
|
||||
event.stopPropagation();
|
||||
if (isMyNMavbarOpen()) {
|
||||
console.log("buttonMyNavbar logged 1");
|
||||
closeRightMenu();
|
||||
} else {
|
||||
console.log("buttonMyNavbar logged 2");
|
||||
openRightMenu();
|
||||
}
|
||||
});
|
||||
|
@ -195,7 +197,7 @@ function isSearchOpen() {
|
|||
return $("#mysearch").is(":visible");
|
||||
}
|
||||
function isMyNMavbarOpen() {
|
||||
return $('#myNavbar').hasClass('animate__bounceInRight');
|
||||
return $('#myNavbar').is(':visible');
|
||||
}
|
||||
async function YPTSidebarToggle() {
|
||||
if (YPTSidebarIsOpen()) {
|
||||
|
@ -259,7 +261,7 @@ async function YPTSidebarCompress() {
|
|||
youTubeMenuIsCompressed = true;
|
||||
}
|
||||
async function YPTSidebarUncompress() {
|
||||
console.log('YPTSidebarUncompress');
|
||||
console.trace('YPTSidebarUncompress');
|
||||
Cookies.set("menuCompressed", false, { expires: 365, path: '/' });
|
||||
$('body').removeClass('compressedMenu');
|
||||
setTimeout(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue