From 033c3d884c3c26786c83e00c3ff4c348e1f7a3c6 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 6 Jul 2012 18:16:36 -0300 Subject: Adding js file --- timelinejs.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 timelinejs.js (limited to 'timelinejs.js') diff --git a/timelinejs.js b/timelinejs.js new file mode 100644 index 0000000..5996104 --- /dev/null +++ b/timelinejs.js @@ -0,0 +1,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)); -- cgit v1.2.3