You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1007 B
50 lines
1007 B
12 years ago
|
/**
|
||
11 years ago
|
* @name Visible Module
|
||
|
* @description This module is used to check if elements are visible or not.
|
||
|
* @author Tobias Reich
|
||
|
* @copyright 2014 by Tobias Reich
|
||
12 years ago
|
*/
|
||
|
|
||
|
visible = {
|
||
|
|
||
|
albums: function() {
|
||
11 years ago
|
if ($("#tools_albums").css("display")==="block") return true;
|
||
12 years ago
|
else return false;
|
||
|
},
|
||
|
|
||
11 years ago
|
album: function() {
|
||
11 years ago
|
if ($("#tools_album").css("display")==="block") return true;
|
||
11 years ago
|
else return false;
|
||
|
},
|
||
|
|
||
|
photo: function() {
|
||
|
if ($("#imageview.fadeIn").length>0) return true;
|
||
12 years ago
|
else return false;
|
||
|
},
|
||
|
|
||
|
infobox: function() {
|
||
11 years ago
|
if ($("#infobox.active").length>0) return true;
|
||
|
else return false;
|
||
12 years ago
|
},
|
||
|
|
||
|
controls: function() {
|
||
11 years ago
|
if (lychee.loadingBar.css("opacity")<1) return false;
|
||
|
else return true;
|
||
|
},
|
||
|
|
||
|
message: function() {
|
||
|
if ($(".message").length>0) return true;
|
||
|
else return false;
|
||
|
},
|
||
|
|
||
11 years ago
|
signin: function() {
|
||
|
if ($(".message .sign_in").length>0) return true;
|
||
|
else return false;
|
||
|
},
|
||
|
|
||
11 years ago
|
contextMenu: function() {
|
||
|
if ($(".contextmenu").length>0) return true;
|
||
12 years ago
|
else return false;
|
||
|
}
|
||
|
|
||
|
}
|