summaryrefslogtreecommitdiff
path: root/timelinejs.js
blob: 33e96ced9a36fc1ff8948da0b44bb8214a3765a5 (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));