From 277ff78fa74be86de86fdfa66af7f4ae2fb17980 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 30 Nov 2025 03:10:01 +0900 Subject: feat(slides): Update style of slide controller buttons --- services/nuldoc/static/slides/slide.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'services/nuldoc/static/slides/slide.js') diff --git a/services/nuldoc/static/slides/slide.js b/services/nuldoc/static/slides/slide.js index 4c7a0de..75a8d35 100644 --- a/services/nuldoc/static/slides/slide.js +++ b/services/nuldoc/static/slides/slide.js @@ -1,6 +1,6 @@ -import { GlobalWorkerOptions, getDocument } from "/pdf.min.mjs"; +import { getDocument, GlobalWorkerOptions } from "./pdf.min.mjs"; -document.addEventListener("DOMContentLoaded", async () => { +async function init() { GlobalWorkerOptions.workerSrc = "/pdf.worker.min.mjs"; const canvas = document.getElementById("slide"); @@ -57,4 +57,6 @@ document.addEventListener("DOMContentLoaded", async () => { // TODO: error handling doc = await getDocument(url).promise; queueRenderPage(pageNum); -}); +} + +document.addEventListener("DOMContentLoaded", init); -- cgit v1.2.3-70-g09d2