Widget:Zeitleiste: Unterschied zwischen den Versionen
Aus Altes Köln
Simon (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
Simon (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
||
Zeile 5: | Zeile 5: | ||
document.addEventListener("DOMContentLoaded", function(event) { | document.addEventListener("DOMContentLoaded", function(event) { | ||
var timelineContainerElements = document.getElementsByClassName("ak-timeline"); | var timelineContainerElements = document.getElementsByClassName("ak-timeline"); | ||
var akTimeline = new Histropedia.Timeline(timelineContainerElements.item(0), {}); | var akTimeline = new Histropedia.Timeline(timelineContainerElements.item(0), { | ||
initialDate: { | |||
year: 1800, | |||
month: 1, | |||
day: 1 | |||
} | |||
}); | |||
akTimeline.load([ | akTimeline.load([ | ||
{ | { | ||
Zeile 13: | Zeile 19: | ||
year: 1828 | year: 1828 | ||
}, | }, | ||
imageUrl: ' | imageUrl: '/images/thumb/6/6e/0028_0001_0001.jpg/320px-0028_0001_0001.jpg' | ||
} | } | ||
]); | ]); |
Version vom 7. November 2020, 19:22 Uhr
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> <script type="text/javascript" src="/alteskoeln/jquery.mousewheel-3.1.13.min.js"></script> <script type="text/javascript" src="https://cdn.histropedia.com/histropedia-1.2.0.min.js"></script> <script> document.addEventListener("DOMContentLoaded", function(event) { var timelineContainerElements = document.getElementsByClassName("ak-timeline"); var akTimeline = new Histropedia.Timeline(timelineContainerElements.item(0), {
initialDate: { year: 1800, month: 1, day: 1 } }); akTimeline.load([ { id: 1, title: 'Weyerstr Weidenbach Carthäuserwall', from: { year: 1828 }, imageUrl: '/images/thumb/6/6e/0028_0001_0001.jpg/320px-0028_0001_0001.jpg' } ]);
}); </script>