Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1353:af65bce18951 | 1354:c0e4eb14c912 |
---|---|
1 <!doctype html> | |
2 <html lang="en"> | |
3 <head> | |
4 <title>Osimis' Web Viewer</title> | |
5 <meta charset="utf-8" /> | |
6 <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> | |
7 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> | |
8 <meta name="apple-mobile-web-app-capable" content="yes" /> | |
9 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | |
10 <link rel="icon" href="data:;base64,iVBORw0KGgo="> | |
11 | |
12 <style> | |
13 canvas { | |
14 background-color: green; | |
15 width : 100%; | |
16 height : 512px; | |
17 } | |
18 </style> | |
19 </head> | |
20 <body> | |
21 <h1>Viewport</h1> | |
22 | |
23 <canvas id="viewport" > | |
24 </canvas> | |
25 | |
26 <h1>Load from Orthanc</h1> | |
27 <p> | |
28 Orthanc instance: <input type="text" id="orthancInstance" size="80" | |
29 value="5eb2dd5f-3fca21a8-fa7565fd-63e112ae-344830a4"> | |
30 <!-- Orthanc instance: <input type="text" id="orthancInstance" size="80" | |
31 value="61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b"> --> | |
32 <!-- Orthanc instance: <input type="text" id="orthancInstance" size="80" | |
33 value="8dddbd75-f4095768-6e66f851-22305751-18782bdd"> --> | |
34 </p> | |
35 <p> | |
36 Frame number: <input type="text" id="orthancFrame" value="0"> | |
37 </p> | |
38 <p> | |
39 <button id="orthancLoad">Load</button> | |
40 </p> | |
41 | |
42 <h1>Load from DICOMweb</h1> | |
43 <p> | |
44 Server name in Orthanc: <input type="text" id="dicomWebServer" value="self"> | |
45 </p> | |
46 <p> | |
47 Study instance UID: <input type="text" id="dicomWebStudy" size="80" | |
48 value="1.2.840.113543.6.6.4.7.64067529866380271256212683512383713111129"> | |
49 </p> | |
50 <p> | |
51 Series instance UID: <input type="text" id="dicomWebSeries" size="80" | |
52 value="1.2.840.113543.6.6.4.7.63556916880112768082712975118701689357177"> | |
53 </p> | |
54 <p> | |
55 SOP instance UID: <input type="text" id="dicomWebInstance" size="80" | |
56 value="1.2.840.113543.6.6.4.7.64234348190163144631511103849051737563212"> | |
57 </p> | |
58 <p> | |
59 Frame number: <input type="text" id="dicomWebFrame" value="0"> | |
60 </p> | |
61 <p> | |
62 <button id="dicomWebLoad">Load</button> | |
63 </p> | |
64 | |
65 <script src="https://code.jquery.com/jquery-3.4.1.js"></script> | |
66 <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.js"></script> | |
67 | |
68 <script src="WasmWrapper.js"></script> | |
69 <script src="SingleFrameViewerApp.js"></script> | |
70 </body> | |
71 </html> |