Guest User

Untitled

a guest
Feb 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var multiGallery = {
  2. init: function() {
  3.  
  4. this.overlay = new Element('div', { 'id':'lbOverlay' })
  5. .addEvent('click', this.close.bind(this))
  6. .hide().inject(document.body);
  7.  
  8. this.gallery = new Element('div', { 'id':'gallery' })
  9. .inject(document.body);
  10.  
  11. this.fx = {
  12. overlay: this.overlay.effect('opacity', { duration:250 })
  13. };
  14. },
  15.  
  16. close: function() {
  17. //...
  18. }
  19. };
  20.  
  21. // init gallery when dom is loaded
  22. window.addEvent('domready', function() {
  23. multiGallery.init();
  24. });
Add Comment
Please, Sign In to add comment