dd2f6ebc77
- All new redefined interface - Faster animations and transitions - Import from Dropbox - Import from Server - Download public albums - Several sorting options - Installation assistent - Infobox and description for albums - Faster loading and improved performance - Better file handling and upload - Album covers are chosen intelligent - Prettier URLs - Massive changes under the hood - IPTC support (Headline and Caption) - EXIF Orientation support How to update: 1. Replace all files, excluding `uploads/` 2. Open Lychee and enter your database details
50 lines
1007 B
JavaScript
Executable File
50 lines
1007 B
JavaScript
Executable File
/**
|
|
* @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 = {
|
|
|
|
albums: function() {
|
|
if ($("#tools_albums").css("display")==="block") return true;
|
|
else return false;
|
|
},
|
|
|
|
album: function() {
|
|
if ($("#tools_album").css("display")==="block") return true;
|
|
else return false;
|
|
},
|
|
|
|
photo: function() {
|
|
if ($("#imageview.fadeIn").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
infobox: function() {
|
|
if ($("#infobox.active").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
controls: function() {
|
|
if (lychee.loadingBar.css("opacity")<1) return false;
|
|
else return true;
|
|
},
|
|
|
|
message: function() {
|
|
if ($(".message").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
signin: function() {
|
|
if ($(".message .sign_in").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
contextMenu: function() {
|
|
if ($(".contextmenu").length>0) return true;
|
|
else return false;
|
|
}
|
|
|
|
} |