Linux-101/js/index.mjs

20 lines
461 B
JavaScript
Raw Normal View History

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,
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);
})
});