Template:MQgallery

From 2012.igem.org

(Difference between revisions)
Line 41: Line 41:
     extend: function(options) {
     extend: function(options) {
-
        Galleria.log(this) // the gallery instance
+
      $("#gallery").galleria({
-
        Galleria.log(options) // the gallery options
+
    width: 661,
-
 
+
    height: 661,
-
        // listen to when an image is shown
+
    extend: function(options) {
-
        this.bind('image', function(e) {
+
        Galleria.get(0).$('info-link').click();
-
 
+
-
            Galleria.log(e) // the event object may contain custom objects, in this case the main image
+
-
            Galleria.log(e.imageTarget) // the current image
+
-
 
+
-
            // lets make galleria open a lightbox when clicking the main image:
+
-
            $(e.imageTarget).click(this.proxy(function() {
+
-
              this.openLightbox();
+
-
            }));
+
-
        });
+
     }
     }
});
});

Revision as of 07:28, 13 August 2012