summaryrefslogtreecommitdiff
path: root/timelinejs.js
blob: 59961046064194733b51a110c12ddd65b051083b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(function ($) {

  /**
   * TODO: Pass parameters.
   */
  Drupal.behaviors.timelinejs = {
    attach: function (context, settings) {
      $('#timeline-embed', context).each( function() {
          var timeline_config = {
      		width:         timelineWidth,
      		height:        timelineHeight,
          source:        timelineSource,
      		start_at_end:  false,
      		hash_bookmark: true,
      		css:           timelineCss,
      		js:            timelineJs,
          lang:          timelineLang,
      	}        
      });
    }
  };

}(jQuery));