mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2024-12-04 19:27:37 +00:00
begin deck building/update title
This commit is contained in:
parent
3a59e39fb0
commit
2816077c19
@ -38,6 +38,7 @@ class Navigator extends HTMLElement {
|
||||
slide = parseInt(this._route) - 1;
|
||||
}
|
||||
this.jumpTo(slide);
|
||||
this._title = document.querySelectorAll("title")[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -72,6 +73,7 @@ class Navigator extends HTMLElement {
|
||||
this.appendChild(this.currentSlide.html);
|
||||
this._router.setRoute(slideIdx+1);
|
||||
this._route = this._router.getRoute();
|
||||
document.title = `${this.currentIndex+1}/${this.totalSlides}: ${this.currentSlide.title}`;
|
||||
this.dispatchEvent(this.slidesChangedEvent);
|
||||
if (this._animator.animationReady) {
|
||||
this._animator.endAnimation(this.querySelector("div"));
|
||||
|
@ -2,5 +2,5 @@
|
||||
<h1>Vanilla.js: Modern 1st Party JavaScript</h1>
|
||||
<h2>Jeremy Likness</h2>
|
||||
<h3>Cloud Advocate, Microsoft</h3>
|
||||
<nextslide>002-stuff</nextslide>
|
||||
<nextslide>002-experiment</nextslide>
|
||||
<transition>slide-left</transition>
|
Loading…
Reference in New Issue
Block a user