diff options
Diffstat (limited to 'nuldoc-src/pages')
| -rw-r--r-- | nuldoc-src/pages/slide.ts | 21 | ||||
| -rw-r--r-- | nuldoc-src/pages/tag.ts | 10 |
2 files changed, 30 insertions, 1 deletions
diff --git a/nuldoc-src/pages/slide.ts b/nuldoc-src/pages/slide.ts index fdfe868..2b7e202 100644 --- a/nuldoc-src/pages/slide.ts +++ b/nuldoc-src/pages/slide.ts @@ -90,6 +90,27 @@ export async function generateSlidePage( ), ), ), + el( + "canvas", + [["id", "slide"], ["data-slide-link", slide.slideLink]], + ), + el( + "div", + [], + el("button", [["id", "prev"]], text("Prev")), + el("button", [["id", "next"]], text("Next")), + ), + el( + "script", + [[ + "src", + "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.min.js", + ]], + ), + el( + "script", + [["src", "/slide.js"], ["type", "module"]], + ), ), ), ), diff --git a/nuldoc-src/pages/tag.ts b/nuldoc-src/pages/tag.ts index dd7a5c0..3c1421f 100644 --- a/nuldoc-src/pages/tag.ts +++ b/nuldoc-src/pages/tag.ts @@ -39,7 +39,15 @@ export async function generateTagPage( el( "header", [["class", "entry-header"]], - el("h2", [], text("event" in page ? `登壇: ${page.event} (${page.talkType})` : page.title)), + el( + "h2", + [], + text( + "event" in page + ? `登壇: ${page.event} (${page.talkType})` + : page.title, + ), + ), ), el( "section", |
