This is a sample of how to use jsmind in a simple HTML file.
Option 1: use CDN jsDeliver [sample]
<link type="text/css" rel="stylesheet" href="//cdn.jsdelivr.net/npm/jsmind@0.8.1/style/jsmind.css"/>
<script src="//cdn.jsdelivr.net/npm/jsmind@0.8.1/es6/jsmind.js"></script>
<script src="//cdn.jsdelivr.net/npm/jsmind@0.8.1/es6/jsmind.draggable-node.js"></script>
Option 2: use CDN UNPKG [sample]
<link type="text/css" rel="stylesheet" href="//unpkg.com/jsmind@0.8.1/style/jsmind.css"/>
<script src="//unpkg.com/jsmind@0.8.1/es6/jsmind.js"></script>
<script src="//unpkg.com/npm/jsmind@0.8.1/es6/jsmind.draggable-node.js"></script>
Option 3 for China: use China mirror of jsDeliver [sample]
<link type="text/css" rel="stylesheet" href="//jsd.onmicrosoft.cn/npm/jsmind@0.8.1/style/jsmind.css"/>
<script src="//jsd.onmicrosoft.cn/npm/jsmind@0.8.1/es6/jsmind.js"></script>
<script src="//jsd.onmicrosoft.cn/npm/jsmind@0.8.1/es6/jsmind.draggable-node.js"></script>
Option 4: download the files from CDN, and reference local resource
<link type="text/css" rel="stylesheet" href="<filePath>/jsmind@0.8.1/style/jsmind.css"/>
<script src="<filePath>/jsmind@0.8.1/es6/jsmind.js"></script>
<script src="<filePath>/jsmind@0.8.1/es6/jsmind.draggable-node.js"></script>
<script>
let options = {
container: 'jsmind_container',
editable: true,
theme: 'primary',
};
let jsmind_data = {
// 3 formats are supported, docs: https://hizzgdev.github.io/jsmind/docs/
};
let jm = new jsMind(options);
jm.show(jsmind_data);
</script>
jsMind project home: https://github.com/hizzgdev/jsmind