diff Samples/WebAssembly/SingleFrameViewer/index.html @ 1354:c0e4eb14c912 broker

SingleFrameViewer WASM working OK
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 15 Apr 2020 12:59:15 +0200
parents
children 240531afdd2d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Samples/WebAssembly/SingleFrameViewer/index.html	Wed Apr 15 12:59:15 2020 +0200
@@ -0,0 +1,71 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <title>Osimis' Web Viewer</title>
+    <meta charset="utf-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+    <link rel="icon" href="data:;base64,iVBORw0KGgo=">
+
+    <style>
+      canvas {
+      background-color: green;
+      width : 100%;
+      height : 512px;
+      }
+    </style>
+  </head>
+  <body>
+    <h1>Viewport</h1>
+
+    <canvas id="viewport" >
+    </canvas>
+
+    <h1>Load from Orthanc</h1>
+    <p>
+      Orthanc instance: <input type="text" id="orthancInstance" size="80"
+                               value="5eb2dd5f-3fca21a8-fa7565fd-63e112ae-344830a4">
+      <!-- Orthanc instance: <input type="text" id="orthancInstance" size="80"
+                               value="61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b"> -->
+      <!-- Orthanc instance: <input type="text" id="orthancInstance" size="80"
+                               value="8dddbd75-f4095768-6e66f851-22305751-18782bdd"> -->
+    </p>
+    <p>
+      Frame number: <input type="text" id="orthancFrame" value="0">
+    </p>
+    <p>
+      <button id="orthancLoad">Load</button>
+    </p>
+
+    <h1>Load from DICOMweb</h1>
+    <p>
+      Server name in Orthanc: <input type="text" id="dicomWebServer" value="self">
+    </p>
+    <p>
+      Study instance UID: <input type="text" id="dicomWebStudy" size="80"
+                                 value="1.2.840.113543.6.6.4.7.64067529866380271256212683512383713111129">
+    </p>
+    <p>
+      Series instance UID: <input type="text" id="dicomWebSeries" size="80"
+                                  value="1.2.840.113543.6.6.4.7.63556916880112768082712975118701689357177">
+    </p>
+    <p>
+      SOP instance UID: <input type="text" id="dicomWebInstance" size="80"
+                               value="1.2.840.113543.6.6.4.7.64234348190163144631511103849051737563212">
+    </p>
+    <p>
+      Frame number: <input type="text" id="dicomWebFrame" value="0">
+    </p>
+    <p>
+      <button id="dicomWebLoad">Load</button>
+    </p>
+
+    <script src="https://code.jquery.com/jquery-3.4.1.js"></script>
+    <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.js"></script>
+    
+    <script src="WasmWrapper.js"></script>
+    <script src="SingleFrameViewerApp.js"></script>
+  </body>
+</html>