Difference between revisions of "Widget:Timeline"

From Leaving The Cradle Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="timeline" data-scale="<!--{if (isset($scale))}--><!--{$scale}--><!--{else}-->8<!--{/if}-->">
<includeonly>
<includeonly>
<script>
<script>
var timelineparent = document.getElementById('timeline');
 
if (timelineparent)
{
setTimeout( CreateTimeline, 500 );
setTimeout( CreateTimeline, 500 );
}
 
function CreateTimeline() {
function CreateTimeline() {
timelineparent = document.getElementById('timeline');
        var timelineparent = document.getElementById('timeline');
if (timelineparent)
{
var smallestTime = 0;
var smallestTime = 0;
var biggesttime=0;
var biggesttime=0;
Line 100: Line 97:
timelineparent.insertBefore(el, timelineparent.firstChild);
timelineparent.insertBefore(el, timelineparent.firstChild);
}
}
}
</script>
</script>
</includeonly>
</includeonly>

Latest revision as of 11:21, 7 June 2026