summaryrefslogtreecommitdiff
path: root/timelinejs.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-07-31 18:37:58 -0300
committerSilvio <silvio@socioambiental.org>2012-07-31 18:37:58 -0300
commit149097510754e175ab93fc9fa8844999713269fb (patch)
tree7bf00f5a64cf1a65c02fe8fcb55ae286781768a6 /timelinejs.tpl.php
parent033c3d884c3c26786c83e00c3ff4c348e1f7a3c6 (diff)
downloadtimelinejs-149097510754e175ab93fc9fa8844999713269fb.tar.gz
timelinejs-149097510754e175ab93fc9fa8844999713269fb.tar.bz2
Starting to code a dynamic timeline
Diffstat (limited to 'timelinejs.tpl.php')
-rw-r--r--timelinejs.tpl.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/timelinejs.tpl.php b/timelinejs.tpl.php
new file mode 100644
index 0000000..0c1004a
--- /dev/null
+++ b/timelinejs.tpl.php
@@ -0,0 +1,16 @@
+<!-- BEGIN Timeline Embed -->
+<div id="timeline-embed" style="width:960px; height: 500px;"></div>
+<script type="text/javascript">
+ var timeline_config = {
+ width: "960px",
+ height: "500px",
+ source: '/sites/boletim/files/timeline-saude-indigena_2.json',
+ start_at_end: false,
+ hash_bookmark: true,
+ css: '/sites/boletim/themes/boletimclean/timeline.css',
+ js: '/sites/all/libraries/timelinejs/compiled/js/timeline.js',
+ lang: '/sites/all/libraries/timelinejs/compiled/js/locale/pt-br.js'
+ }
+</script>
+<script type="text/javascript" src="/sites/all/libraries/timelinejs/compiled/js/timeline-embed.js"></script>
+<!-- END Timeline Embed -->