28 lines
766 B
HTML
28 lines
766 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Vite + React + TS</title>
|
|
</head>
|
|
<body>
|
|
<div id="root" style="max-height:500px; height:500px; overflow:auto;"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
|
|
<input type="file" id="dicomInput" multiple />
|
|
<button onclick="sendToViewer()">Send to Viewer</button>
|
|
<script>
|
|
function sendToViewer() {
|
|
const files = document.getElementById('dicomInput').files;
|
|
if (window.loadDicomStackFromFiles) {
|
|
window.loadDicomStackFromFiles(files);
|
|
} else {
|
|
alert("Viewer API not ready");
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|