12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * @name Visible Module
- * @description This module is used to check if elements are visible or not.
- * @author Tobias Reich
- * @copyright 2014 by Tobias Reich
- */
- visible = {}
- visible.albums = function() {
- if ($('#tools_albums').css('display')==='block') return true;
- return false;
- }
- visible.album = function() {
- if ($('#tools_album').css('display')==='block') return true;
- return false;
- }
- visible.photo = function() {
- if ($('#imageview.fadeIn').length>0) return true;
- return false;
- }
- visible.search = function() {
- if (search.code!==null&&search.code!=='') return true;
- return false;
- }
- visible.infobox = function() {
- if ($('#infobox.active').length>0) return true;
- return false;
- }
- visible.infoboxbutton = function() {
- if (visible.albums()) return false;
- if (visible.photo()) return true;
- if (visible.album()&&$('#button_info_album:visible').length>0) return true;
- return false;
- }
- visible.controls = function() {
- if (lychee.loadingBar.css('opacity')<1) return false;
- return true;
- }
- visible.message = function() {
- if ($('.message').length>0) return true;
- return false;
- }
- visible.signin = function() {
- if ($('.message .sign_in').length>0) return true;
- return false;
- }
- visible.contextMenu = function() {
- return basicContext.visible();
- }
- visible.multiselect = function() {
- if ($('#multiselect').length>0) return true;
- return false;
- }
|