Skip to content

Commit

Permalink
Update README.md #34
Browse files Browse the repository at this point in the history
Improve explanation for the usage with plain HTML/JS
  • Loading branch information
hasanbalci authored Oct 14, 2021
1 parent 654eb38 commit 445a000
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ require(['cytoscape', 'cytoscape-cise'], function( cytoscape, cise ){
});
```
Plain HTML/JS has the extension registered for you automatically, because no `require()` is needed.
Plain HTML/JS has the extension registered for you automatically, because no `require()` is needed. Just add the following files:
```
<script src="https://unpkg.com/layout-base/layout-base.js"></script>
<script src="https://unpkg.com/avsdf-base/avsdf-base.js"></script>
<script src="https://unpkg.com/cose-base/cose-base.js"></script>
<script src="https://unpkg.com/cytoscape-cise/cytoscape-cise.js"></script>
```
## API
Expand Down

0 comments on commit 445a000

Please sign in to comment.