forked from hizzgdev/jsmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
580 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
[ | ||
{'nodeid':'root', 'isroot':true, 'topic':'jsMind'}, | ||
{ | ||
"meta":{ | ||
"name":"jsMind", | ||
"author":"hizzgdev@163.com", | ||
"version":"0.2", | ||
"format":"node_array" | ||
}, | ||
"nodes":[ | ||
{"id":"root", "isroot":true, "topic":"jsMind"}, | ||
|
||
{'nodeid':'easy', 'parentid':'root', 'topic':'Easy'}, | ||
{'nodeid':'easy1', 'parentid':'easy', 'topic':'Easy to show'}, | ||
{'nodeid':'easy2', 'parentid':'easy', 'topic':'Easy to edit'}, | ||
{'nodeid':'easy3', 'parentid':'easy', 'topic':'Easy to store'}, | ||
{'nodeid':'easy4', 'parentid':'easy', 'topic':'Easy to embed'}, | ||
{"id":"easy", "parentid":"root", "topic":"Easy"}, | ||
{"id":"easy1", "parentid":"easy", "topic":"Easy to show"}, | ||
{"id":"easy2", "parentid":"easy", "topic":"Easy to edit"}, | ||
{"id":"easy3", "parentid":"easy", "topic":"Easy to store"}, | ||
{"id":"easy4", "parentid":"easy", "topic":"Easy to embed"}, | ||
|
||
{'nodeid':'open', 'parentid':'root', 'topic':'Open Source'}, | ||
{'nodeid':'open1', 'parentid':'open', 'topic':'on GitHub'}, | ||
{'nodeid':'open2', 'parentid':'open', 'topic':'BSD License'}, | ||
{"id":"open", "parentid":"root", "topic":"Open Source"}, | ||
{"id":"open1", "parentid":"open", "topic":"on GitHub"}, | ||
{"id":"open2", "parentid":"open", "topic":"BSD License"}, | ||
|
||
{'nodeid':'powerful', 'parentid':'root', 'topic':'Powerful'}, | ||
{'nodeid':'powerful1', 'parentid':'powerful', 'topic':'Base on Javascript'}, | ||
{'nodeid':'powerful2', 'parentid':'powerful', 'topic':'Base on HTML5'}, | ||
{'nodeid':'powerful3', 'parentid':'powerful', 'topic':'Depends on you'}, | ||
{"id":"powerful", "parentid":"root", "topic":"Powerful"}, | ||
{"id":"powerful1", "parentid":"powerful", "topic":"Base on Javascript"}, | ||
{"id":"powerful2", "parentid":"powerful", "topic":"Base on HTML5"}, | ||
{"id":"powerful3", "parentid":"powerful", "topic":"Depends on you"}, | ||
|
||
{'nodeid':'other', 'parentid':'root', 'topic':'test node'}, | ||
{'nodeid':'other1', 'parentid':'other', 'topic':'I\'m from ajax'}, | ||
{'nodeid':'other2', 'parentid':'other', 'topic':'I can do everything'}, | ||
] | ||
{"id":"other", "parentid":"root", "topic":"test node"}, | ||
{"id":"other1", "parentid":"other", "topic":"I'm from ajax"}, | ||
{"id":"other2", "parentid":"other", "topic":"I can do everything"}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>jsMind</title> | ||
<link type="text/css" rel="stylesheet" href="../style/jsmind.css" /> | ||
<style type="text/css"> | ||
#jsmind_container{ | ||
width:800px; | ||
height:500px; | ||
border:solid 1px #ccc; | ||
/*background:#f4f4f4;*/ | ||
background:#f4f4f4; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="jsmind_container"></div> | ||
<script type="text/javascript" src="../js/jsmind.js"></script> | ||
<script type="text/javascript"> | ||
function load_jsmind(){ | ||
var mind = { | ||
meta:{ | ||
name:'demo', | ||
author:'hizzgdev@163.com', | ||
version:'0.2', | ||
format:'node_array' | ||
}, | ||
nodes:[ | ||
{"id":"root", "isroot":true, "topic":"jsMind"}, | ||
|
||
{"id":"sub1", "parentid":"root", "topic":"sub1"}, | ||
{"id":"sub11", "parentid":"sub1", "topic":"sub11"}, | ||
{"id":"sub12", "parentid":"sub1", "topic":"sub12"}, | ||
{"id":"sub13", "parentid":"sub1", "topic":"sub13"}, | ||
|
||
{"id":"sub2", "parentid":"root", "topic":"sub2"}, | ||
{"id":"sub21", "parentid":"sub2", "topic":"sub21"}, | ||
{"id":"sub22", "parentid":"sub2", "topic":"sub22"}, | ||
|
||
{"id":"sub3", "parentid":"root", "topic":"sub3"}, | ||
] | ||
}; | ||
var options = { | ||
container:'jsmind_container', | ||
readonly:false, | ||
theme:'primary' | ||
} | ||
var jm = jsMind.show(options,mind); | ||
// jm.set_readonly(true); | ||
// var mind_data = jm.get_data(); | ||
// alert(mind_data); | ||
} | ||
|
||
load_jsmind(); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.