aboutsummaryrefslogtreecommitdiff
path: root/js/jquery_gallery_view.js
blob: e0faa8e90b1d38431841b749eb0ae03a7f54c67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// $Id$

Drupal.behaviors.jqueryGalleryViewBehavior = function (context) {
  var width    = 300;
  var height   = 200;
  var base_url = window.location.protocol + '//' + window.location.hostname;

  $('.jquery-gallery-view:not(.jquery-gallery-view-processed)', context).each(function () {
      $(this).addClass('jquery-gallery-view-processed');
      $('#jquery-gallery-view').load(base_url + '/jquery_gallery_view', function() {
      $('#jquery-gallery-view').galleryView({
          panel_width:  300,
          panel_height: 100,
          frame_width:   65,
          frame_height:  40,
          filmstrip_position: 'bottom',
          overlay_position: 'top',
          transition_interval: 0,
          });
      });
      });
}