2019-03-09 16:07:44 +00:00
|
|
|
import "../css/theme.css";
|
|
|
|
|
|
|
|
import Deck3000 from 'deck3000';
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener("load", function(_event) {
|
2019-03-09 16:46:03 +00:00
|
|
|
console.log("[main] Built on ", new Date("__BUILD_DATE__"));
|
2019-03-09 16:07:44 +00:00
|
|
|
|
|
|
|
const Slideshow = new Deck3000({
|
|
|
|
slideSelector: "article",
|
|
|
|
resetSlides: true,
|
|
|
|
keyboardEvents: true,
|
2019-03-12 21:38:23 +00:00
|
|
|
updateURL: false // FUTURE: Is there a way of doing this with #THING instead of /THING?
|
2019-03-09 16:07:44 +00:00
|
|
|
});
|
|
|
|
|
2019-03-09 16:46:03 +00:00
|
|
|
Slideshow.emitter.on("navigate", (event) => {
|
2019-03-09 16:07:44 +00:00
|
|
|
console.debug(event);
|
|
|
|
})
|
|
|
|
});
|