further improvements

This commit is contained in:
Ross
2025-05-31 11:24:20 +01:00
parent c90c280255
commit c7728bf1a2
2 changed files with 85 additions and 19 deletions
+15 -1
View File
@@ -7,7 +7,21 @@
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<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>