Skip to content

Commit 732105e

Browse files
author
hackermd
committed
Add example script in usage section of README
1 parent 27819ff commit 732105e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ We use [rollup](https://rollupjs.org/guide/en) for bundling and [mochify](https:
3030

3131
## Usage
3232

33+
```html
34+
<script type="text/javascript" src="https://unpkg.com/dicom-microscopy-viewer"></script>
35+
```
36+
3337
The viewer can be embedded in any website, one only needs to
3438

3539
* Create an instance of the `VLWholeSlideMicroscopyImageViewer`. The constructor requires an instance of `DICOMwebClient` for retrieving frames from the archive as well as the metadata for each DICOM image instance formatted according to the [
3640
DICOM JSON Model](http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.2.html).
3741

38-
* Call the `render()` method, passing it the HTML element or the name of the element, which shall contain the viewport.
42+
* Call the `render()` method, passing it the HTML element (or the name of the element), which shall contain the viewport.
3943

4044

4145
```js

0 commit comments

Comments
 (0)