summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-07-06 18:16:36 -0300
committerSilvio <silvio@socioambiental.org>2012-07-06 18:16:36 -0300
commit033c3d884c3c26786c83e00c3ff4c348e1f7a3c6 (patch)
treeaad292fb4f4685ac735b1504da229e354cb5b59a
parent59e0cda3b4252b18fc5c78977051db520287f855 (diff)
downloadtimelinejs-033c3d884c3c26786c83e00c3ff4c348e1f7a3c6.tar.gz
timelinejs-033c3d884c3c26786c83e00c3ff4c348e1f7a3c6.tar.bz2
Adding js file
-rw-r--r--timelinejs.js23
1 files changed, 23 insertions, 0 deletions
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));