visible.js 698 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @name visible.js
  3. * @author Philipp Maurer
  4. * @author Tobias Reich
  5. * @copyright 2013 by Philipp Maurer, Tobias Reich
  6. *
  7. * Visible Module
  8. * This module is used to check if elements are visible or not.
  9. */
  10. visible = {
  11. albums: function() {
  12. if ($("#tools_albums").css("display")=="block") return true;
  13. else return false;
  14. },
  15. imageview: function() {
  16. if ($("#image_view.fadeIn").length>0) return true;
  17. else return false;
  18. },
  19. infobox: function() {
  20. if (parseInt(lychee.infobox.css("right").replace("px", ""))==-320) return false;
  21. else return true;
  22. },
  23. controls: function() {
  24. if (lychee.loadingBar.css("opacity")>0) return true;
  25. else return false;
  26. }
  27. }