lychee/js/modules/visible.js
Tobias Reich 4e5c836b8d Lychee 1.2
- Share whole albums
- Public Mode
- Import images via URL
- New Share-Button
- Improved Toolbar
- Check for updates (see config.php)
- ASC or DESC sorting (see config.php)
- Download album fixed
- Code optimizations (thanks @tibounise)
- Changes and enhancements

Update from version 1.0 or 1.1:
1. Replace all files, excluding `uploads/`
2. Open php/config.php and reconfigure your installation (We added new settings)
3. Open php/update.php in your browser
2013-06-17 20:40:04 +02:00

33 lines
698 B
JavaScript
Executable File

/**
* @name visible.js
* @author Philipp Maurer
* @author Tobias Reich
* @copyright 2013 by Philipp Maurer, Tobias Reich
*
* Visible Module
* This module is used to check if elements are visible or not.
*/
visible = {
albums: function() {
if ($("#tools_albums").css("display")=="block") return true;
else return false;
},
imageview: function() {
if ($("#image_view.fadeIn").length>0) return true;
else return false;
},
infobox: function() {
if (parseInt(lychee.infobox.css("right").replace("px", ""))==-320) return false;
else return true;
},
controls: function() {
if (lychee.loadingBar.css("opacity")>0) return true;
else return false;
}
}