Skip to content

Commit ca0d899

Browse files
authored
Update README.md
1 parent 108bb9d commit ca0d899

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,35 @@ $ npm install orgchart
4040
```
4141
require('orgchart') will load orgchart plugin onto the jQuery object. The orgchart module itself does not export anything.
4242

43-
## [Demos on github](https://rawgit.com/dabeng/OrgChart/master/demo/index.html)      [Demos on codepen.io](https://codepen.io/collection/AWxGVb/)
43+
## [Demos on github pages](https://dabeng.github.io/OrgChart/)      [Demos on codepen.io](https://codepen.io/collection/AWxGVb/)
4444
### online demos
45-
- [using ul datasource](https://rawgit.com/dabeng/OrgChart/master/demo/ul-datasource.html)(this feature comes from [Tobyee's good idea:blush:](https://github.com/dabeng/OrgChart/issues/1))
45+
- [using ul datasource](https://dabeng.github.io/OrgChart/ul-datasource.html)(this feature comes from [Tobyee's good idea:blush:](https://github.com/dabeng/OrgChart/issues/1))
4646

47-
- [using local datasource](https://rawgit.com/dabeng/OrgChart/master/demo/local-datasource.html)
47+
- [using local datasource](https://dabeng.github.io/OrgChart/local-datasource.html)
4848

49-
- [I wanna pan&zoom the orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/pan-zoom.html)
49+
- [I wanna pan&zoom the orgchart](https://dabeng.github.io/OrgChart/pan-zoom.html)
5050

5151
- I wanna align orgchart with different orientation**(this feature comes from [the good idea of fvlima and badulesia :blush:](https://github.com/dabeng/OrgChart/issues/5))
5252

5353
Top to Bottom -- default direction, as you can see all other examples on this page.
5454

55-
[Bottom to Top](https://rawgit.com/dabeng/OrgChart/master/demo/bottom2top.html)
55+
[Bottom to Top](https://dabeng.github.io/OrgChart/bottom2top.html)
5656

57-
[Left to Right](https://rawgit.com/dabeng/OrgChart/master/demo/left2right.html)
57+
[Left to Right](https://dabeng.github.io/OrgChart/left2right.html)
5858

59-
[Right to Left](https://rawgit.com/dabeng/OrgChart/master/demo/right2left.html)
59+
[Right to Left](https://dabeng.github.io/OrgChart/right2left.html)
6060

61-
- [I wanna show/hide left/right sibling nodes respectively by clicking left/right arrow](https://rawgit.com/dabeng/OrgChart/master/demo/toggle-sibs-resp.html)
61+
- [I wanna show/hide left/right sibling nodes respectively by clicking left/right arrow](https://dabeng.github.io/OrgChart/toggle-sibs-resp.html)
6262

63-
- [I wanna load datasource through ajax](https://rawgit.com/dabeng/OrgChart/master/demo/ajax-datasource.html)
63+
- [I wanna load datasource through ajax](https://dabeng.github.io/OrgChart/ajax-datasource.html)
6464

65-
- [I wanna load data on-demand](https://rawgit.com/dabeng/OrgChart/master/demo/ondemand-loading-data.html)
65+
- [I wanna load data on-demand](https://dabeng.github.io/OrgChart/ondemand-loading-data.html)
6666

6767
Note: when users use ajaxURL option to build orghchart, they must use json datasource(both local and remote are OK) and set the relationship property of datasource by themselves. All of these staff are used to generate the correct expanding/collapsing arrows for nodes.
6868

69-
- [I wanna customize the structure of node](https://rawgit.com/dabeng/OrgChart/master/demo/option-createNode.html)
69+
- [I wanna customize the structure of node](https://dabeng.github.io/OrgChart/option-createNode.html)
7070

71-
- [I wanna export the organization chart as a picture](https://rawgit.com/dabeng/OrgChart/master/demo/export-chart.html)
71+
- [I wanna export the organization chart as a picture](https://dabeng.github.io/OrgChart/export-chart.html)
7272

7373
Here, we need the help from [html2canvas](https://github.com/niklasvh/html2canvas).
7474

@@ -80,49 +80,49 @@ Here, we need the help from [html2canvas](https://github.com/niklasvh/html2canva
8080

8181
(3) Besides, if you wanna export a pdf format or your orgchart includes picture, you have to introduce [jspdf](https://github.com/MrRio/jsPDF) and set "exportFileextension" option to "pdf".
8282

83-
- [I wanna itegrate organization chart with geographic information](https://rawgit.com/dabeng/OrgChart/master/demo/integrate-map.html)
83+
- [I wanna itegrate organization chart with geographic information](https://dabeng.github.io/OrgChart/integrate-map.html)
8484

8585
Here, we fall back on [OpenLayers](https://github.com/openlayers/ol3). It's the most aewsome open-source js library for Web GIS you sholdn't miss.
8686

87-
- [I wanna edit orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/edit-chart.html)
87+
- [I wanna edit orgchart](https://dabeng.github.io/OrgChart/edit-chart.html)
8888

8989
With the help of exposed core methods(addParent(), addSiblings(), addChildren(), removeNodes()) of orgchart plugin, we can finish this task easily.
9090

91-
- [I wanna drag & drop the nodes of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/drag-drop.html)
91+
- [I wanna drag & drop the nodes of orgchart](https://dabeng.github.io/OrgChart/drag-drop.html)
9292

9393
Users are allowed to drag & drop the nodes of orgchart when option "draggable" is assigned to true(**Note**: this feature doesn't work on IE due to its poor support for HTML5 drag & drop API).
9494

9595
Furthermore, users can make use of option dropCriteria to inject their custom limitations on drag & drop. As shown below, we don't want an manager employee to be under a engineer under no circumstance.
9696

97-
- [I want a method that can describe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html)
97+
- [I want a method that can describe the hierarchy of orgchart](https://dabeng.github.io/OrgChart/get-hierarchy.html)
9898

9999
That's where getHierarchy() comes in.
100100

101-
- [I want a color-coded chart](https://rawgit.com/dabeng/OrgChart/master/demo/color-coded.html)
101+
- [I want a color-coded chart](https://dabeng.github.io/OrgChart/color-coded.html)
102102

103103
It's a so easy task, we just need to append id or className property to node data.
104104

105-
- [I want a multiple-layers chart](https://rawgit.com/dabeng/OrgChart/master/demo/multiple-layers.html)
105+
- [I want a multiple-layers chart](https://dabeng.github.io/OrgChart/multiple-layers.html)
106106

107107
In fact, this is a wonderful solution to display a orgchart which includes a huge number of node data.
108108

109-
- [I want a hybrid(horizontal + vertical) chart](https://rawgit.com/dabeng/OrgChart/master/demo/vertical-level.html)
109+
- [I want a hybrid(horizontal + vertical) chart](https://dabeng.github.io/OrgChart/vertical-level.html)
110110

111111
This feature is inspired by the issues([Aligning Children Vertical](https://github.com/dabeng/OrgChart/issues/46), [Hybrid(horizontal + vertical) OrgChart](https://github.com/dabeng/OrgChart/issues/61)). Thank [mfahadi](https://github.com/mfahadi) and [Destructrix](https://github.com/Destructrix) for their constructive suggestions:blush: Special thanks to [tedliang](https://github.com/tedliang) for his wonderful hybrid mode solution.
112112

113113
From now on, users never have to worry about how to align a huge of nodes in one screen of browser. The option "verticalLevel" allows users to align child nodes vertically from the given level.
114114

115115
**Note**: currently, this option is incompatible with many other options or methods, like direction, drag&drop, addChildren(), removeNodes(), getHierarchy() and so on. These conflicts will be solved one by one in the later versions.
116116

117-
- [I want to collapse some nodes by default](https://rawgit.com/dabeng/OrgChart/master/demo/default-collapsed.html)
117+
- [I want to collapse some nodes by default](https://dabeng.github.io/OrgChart/default-collapsed.html)
118118

119119
No problem. You just need to adjust a little detail of datasource with the help of option "collapse" and className "slide-up".
120120

121-
- [I want to refresh orgchart base on new options or datasource](https://rawgit.com/dabeng/OrgChart/master/demo/reload-data.html)
121+
- [I want to refresh orgchart base on new options or datasource](https://dabeng.github.io/OrgChart/reload-data.html)
122122

123123
It's not a big deal. You just turn to the method init().
124124

125-
- [I want to use complex template to customize the internal structure of every node](https://rawgit.com/dabeng/OrgChart/master/demo/custom-template.html)
125+
- [I want to use complex template to customize the internal structure of every node](https://dabeng.github.io/OrgChart/custom-template.html)
126126

127127
No problem. With the help of ES6 Template literals, we can customize the any complex node structure rather than the common title and content sections.
128128

0 commit comments

Comments
 (0)