changes
This commit is contained in:
24
web/public/viewer/index.html
Normal file
24
web/public/viewer/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>PDF</title>
|
||||
<link rel="stylesheet" href="/viewer/viewer.css">
|
||||
<script type="module">
|
||||
// Vite serves public/ verbatim, so this page is unbundled in dev and prod alike.
|
||||
console.log("[BizMatch] PDF.js frontend build: legacy");
|
||||
import * as pdfjsLib from "/pdfjs/legacy/pdf.min.mjs";
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "/pdfjs/legacy/pdf.worker.min.mjs";
|
||||
globalThis.pdfjsLib = pdfjsLib;
|
||||
</script>
|
||||
<script type="module" src="/viewer/pdf_viewer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<section class="viewer">
|
||||
<div id="pdfViewer"></div>
|
||||
<div id="pdfMessage">Select a document</div>
|
||||
</section>
|
||||
<script type="module" src="/viewer/viewer.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user