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.
lychee/src/scripts/visible.js

62 lines
1.3 KiB

/**
* @description This module is used to check if elements are visible or not.
10 years ago
* @copyright 2015 by Tobias Reich
*/
10 years ago
visible = {}
10 years ago
visible.albums = function() {
9 years ago
if ($('#tools_albums').css('display')==='block') return true
return false
10 years ago
}
10 years ago
visible.album = function() {
9 years ago
if ($('#tools_album').css('display')==='block') return true
return false
10 years ago
}
10 years ago
visible.photo = function() {
9 years ago
if ($('#imageview.fadeIn').length>0) return true
return false
10 years ago
}
11 years ago
10 years ago
visible.search = function() {
9 years ago
if (search.hash!==null) return true
return false
10 years ago
}
visible.sidebar = function() {
9 years ago
if (sidebar.dom().hasClass('active')===true) return true
return false
10 years ago
}
visible.sidebarbutton = function() {
9 years ago
if (visible.albums()) return false
if (visible.photo()) return true
if (visible.album() && $('#button_info_album:visible').length>0) return true
return false
10 years ago
}
visible.header = function() {
9 years ago
if (header.dom().hasClass('hidden')===true) return false
return true
10 years ago
}
10 years ago
visible.message = function() {
9 years ago
if ($('.message').length>0) return true
return false
10 years ago
}
10 years ago
visible.signin = function() {
9 years ago
if ($('.message .sign_in').length>0) return true
return false
10 years ago
}
10 years ago
visible.contextMenu = function() {
9 years ago
return basicContext.visible()
10 years ago
}
11 years ago
10 years ago
visible.multiselect = function() {
9 years ago
if ($('#multiselect').length>0) return true
return false
10 years ago
}