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

  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));