I am trying to have multiple timelines on one page
I have tried following:
but was unsuccessful
I have also tried:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- BEGIN TimelineJS -->
<script type="text/javascript" src="TimelineJS-master/build/js/storyjs-embed.js"></script>
<script>
$(document).ready(
function() {
createStoryJS({
type: 'timeline',
width: '800',
height: '600',
source: 'exampleTimeLine.jsonp',
embed_id: 'my-timeline'
});
});
</script>
<script>
$(document).ready(
function() {
createStoryJS({
type: 'timeline',
width: '800',
height: '600',
source: 'exampleTimeLine2.jsonp',
embed_id: 'my-timeline2'
});
});
</script>
<div id="timeline-embed"></div>
<div id="my-timeline"></div>
<div id="timeline-embed"></div>
<div id="my-timeline2"></div>
with no success either (both work individually)
I thought of creating two pages then using iframes to embed them on another page, just seems a little messy
Is there a better way?
all help much appreciated
thanks