Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
7aba8b6a
Commit
7aba8b6a
authored
Jul 25, 2019
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add org chart demo -- frank
parent
98affeeb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
113 deletions
+57
-113
jquery.orgchart.css
...-web/src/main/webapp/Content/orgChart/jquery.orgchart.css
+45
-111
jquery.orgchart.js
atms-web/src/main/webapp/Scripts/orgChart/jquery.orgchart.js
+0
-0
index.html
atms-web/src/main/webapp/dist/index.html
+3
-2
index.html
atms-web/src/main/webapp/dist2/index.html
+9
-0
script.js
atms-web/src/main/webapp/dist2/script.js
+0
-0
No files found.
atms-web/src/main/webapp/Content/orgChart/jquery.orgchart.css
View file @
7aba8b6a
...
...
@@ -2,22 +2,15 @@
* jQuery OrgChart Plugin
* https://github.com/dabeng/OrgChart
*
* Demos of jQuery OrgChart Plugin
* http://dabeng.github.io/OrgChart/local-datasource/
* http://dabeng.github.io/OrgChart/ajax-datasource/
* http://dabeng.github.io/OrgChart/ondemand-loading-data/
* http://dabeng.github.io/OrgChart/option-createNode/
* http://dabeng.github.io/OrgChart/export-orgchart/
* http://dabeng.github.io/OrgChart/integrate-map/
*
* Copyright 2016, dabeng
* http
://dabeng.github.io/
* http
s://github.com/dabeng
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.orgchart
{
box-sizing
:
border-box
;
display
:
inline-block
;
min-height
:
202px
;
min-width
:
202px
;
...
...
@@ -27,45 +20,29 @@
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
/*background-image: linear-gradient(90deg, rgba(200, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0) 10%), linear-gradient(rgba(200, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0) 10%);*/
background-color
:
rgba
(
234
,
237
,
238
,
0.39
);
background-image
:
linear-gradient
(
90deg
,
rgba
(
200
,
0
,
0
,
0.15
)
10%
,
rgba
(
0
,
0
,
0
,
0
)
10%
),
linear-gradient
(
rgba
(
200
,
0
,
0
,
0.15
)
10%
,
rgba
(
0
,
0
,
0
,
0
)
10%
);
background-size
:
10px
10px
;
border
:
1px
dashed
rgba
(
0
,
0
,
0
,
0
);
padding
:
20px
;
}
.orgchart
.hidden
,
.orgchart
~
.hidden
{
display
:
none
!important
;
}
.orgchart
*,
.orgchart
*
:before
,
.orgchart
*
:after
{
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
none
;
}
.orgchart.b2t
{
transform
:
rotate
(
180deg
);
-ms-transform
:
rotate
(
180deg
);
-moz-transform
:
rotate
(
180deg
);
-webkit-transform
:
rotate
(
180deg
);
}
.orgchart.l2r
{
position
:
absolute
;
transform
:
rotate
(
-90deg
)
rotateY
(
180deg
);
-ms-transform
:
rotate
(
-90deg
)
rotateY
(
180deg
);
-moz-transform
:
rotate
(
-90deg
)
rotateY
(
180deg
);
-webkit-transform
:
rotate
(
-90deg
)
rotateY
(
180deg
);
transform-origin
:
left
top
;
-ms-transform-origin
:
left
top
;
-moz-transform-origin
:
left
top
;
-webkit-transform-origin
:
left
top
;
}
.orgchart
.verticalNodes
ul
{
list-style
:
none
;
margin
:
0px
;
margin
:
0
;
padding-left
:
18px
;
text-align
:
left
;
}
...
...
@@ -77,6 +54,7 @@
border
:
1px
solid
rgba
(
217
,
83
,
79
,
0.8
);
}
.orgchart
.verticalNodes
>
td
>
ul
>
li
:first-child::before
{
box-sizing
:
border-box
;
top
:
-4px
;
height
:
30px
;
width
:
calc
(
50%
-
2px
);
...
...
@@ -87,6 +65,7 @@
}
.orgchart
.verticalNodes
ul
>
li
::before
,
.orgchart
.verticalNodes
ul
>
li
::after
{
box-sizing
:
border-box
;
content
:
''
;
position
:
absolute
;
left
:
-6px
;
...
...
@@ -104,24 +83,20 @@
height
:
100%
;
}
.orgchart
.verticalNodes
ul
>
li
:first-child::after
{
box-sizing
:
border-box
;
top
:
24px
;
width
:
11px
;
border-width
:
2px
0
0
2px
;
}
.orgchart
.verticalNodes
ul
>
li
:last-child::after
{
box-sizing
:
border-box
;
border-width
:
2px
0
0
;
}
.orgchart.r2l
{
position
:
absolute
;
transform
:
rotate
(
90deg
);
-ms-transform
:
rotate
(
90deg
);
-moz-transform
:
rotate
(
90deg
);
-webkit-transform
:
rotate
(
90deg
);
transform-origin
:
left
top
;
-ms-transform-origin
:
left
top
;
-moz-transform-origin
:
left
top
;
-webkit-transform-origin
:
left
top
;
}
.orgchart
>
.spinner
{
...
...
@@ -131,8 +106,8 @@
}
.orgchart
table
{
border-spacing
:
0
!important
;
border-collapse
:
separate
!important
;
border-spacing
:
0
;
border-collapse
:
separate
;
}
.orgchart
>
table
:first-child
{
...
...
@@ -145,25 +120,30 @@
padding
:
0
;
}
.orgchart
tr
.lines
td
.topLine
{
.orgchart
.lines
:nth-child
(
3
)
td
{
box-sizing
:
border-box
;
height
:
20px
;
}
.orgchart
.lines
.topLine
{
border-top
:
2px
solid
rgba
(
217
,
83
,
79
,
0.8
);
}
.orgchart
tr
.lines
td
.rightLine
{
.orgchart
.lines
.rightLine
{
border-right
:
1px
solid
rgba
(
217
,
83
,
79
,
0.8
);
float
:
none
;
border-radius
:
0
px
;
border-radius
:
0
;
}
.orgchart
tr
.lines
td
.leftLine
{
.orgchart
.lines
.leftLine
{
border-left
:
1px
solid
rgba
(
217
,
83
,
79
,
0.8
);
float
:
none
;
border-radius
:
0
px
;
border-radius
:
0
;
}
.orgchart
tr
.lines
.downLine
{
.orgchart
.lines
.downLine
{
background-color
:
rgba
(
217
,
83
,
79
,
0.8
);
margin
:
0
px
auto
;
margin
:
0
auto
;
height
:
20px
;
width
:
2px
;
float
:
none
;
...
...
@@ -171,6 +151,7 @@
/* node styling */
.orgchart
.node
{
box-sizing
:
border-box
;
display
:
inline-block
;
position
:
relative
;
margin
:
0
;
...
...
@@ -211,7 +192,7 @@
top
:
-10000px
;
}
.orgchart
.ghost-node
>*
{
.orgchart
.ghost-node
rect
{
fill
:
#ffffff
;
stroke
:
#bf0000
;
}
...
...
@@ -231,41 +212,23 @@
white-space
:
nowrap
;
background-color
:
rgba
(
217
,
83
,
79
,
0.8
);
color
:
#fff
;
border-radius
:
4px
4px
0
0
;
border-radius
:
4px
4px
0
0
;
}
.orgchart.b2t
.node
.title
{
transform
:
rotate
(
-180deg
);
-ms-transform
:
rotate
(
-180deg
);
-moz-transform
:
rotate
(
-180deg
);
-webkit-transform
:
rotate
(
-180deg
);
transform-origin
:
center
bottom
;
-ms-transform-origin
:
center
bottom
;
-moz-transform-origin
:
center
bottom
;
-webkit-transform-origin
:
center
bottom
;
}
.orgchart.l2r
.node
.title
{
transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-ms-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-moz-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-webkit-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
transform-origin
:
bottom
center
;
-ms-transform-origin
:
bottom
center
;
-moz-transform-origin
:
bottom
center
;
-webkit-transform-origin
:
bottom
center
;
width
:
120px
;
}
.orgchart.r2l
.node
.title
{
transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-ms-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-moz-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-webkit-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
transform-origin
:
bottom
center
;
-ms-transform-origin
:
bottom
center
;
-moz-transform-origin
:
bottom
center
;
-webkit-transform-origin
:
bottom
center
;
width
:
120px
;
}
...
...
@@ -276,6 +239,7 @@
}
.orgchart
.node
.content
{
box-sizing
:
border-box
;
width
:
100%
;
height
:
20px
;
font-size
:
11px
;
...
...
@@ -292,36 +256,18 @@
.orgchart.b2t
.node
.content
{
transform
:
rotate
(
180deg
);
-ms-transform
:
rotate
(
180deg
);
-moz-transform
:
rotate
(
180deg
);
-webkit-transform
:
rotate
(
180deg
);
transform-origin
:
center
top
;
-ms-transform-origin
:
center
top
;
-moz-transform-origin
:
center
top
;
-webkit-transform-origin
:
center
top
;
}
.orgchart.l2r
.node
.content
{
transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-ms-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-moz-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
-webkit-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
)
rotateY
(
180deg
);
transform-origin
:
top
center
;
-ms-transform-origin
:
top
center
;
-moz-transform-origin
:
top
center
;
-webkit-transform-origin
:
top
center
;
width
:
120px
;
}
.orgchart.r2l
.node
.content
{
transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-ms-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-moz-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
-webkit-transform
:
rotate
(
-90deg
)
translate
(
-40px
,
-40px
);
transform-origin
:
top
center
;
-ms-transform-origin
:
top
center
;
-moz-transform-origin
:
top
center
;
-webkit-transform-origin
:
top
center
;
width
:
120px
;
}
...
...
@@ -331,7 +277,6 @@
color
:
rgba
(
68
,
157
,
68
,
0.5
);
cursor
:
default
;
transition
:
.2s
;
-webkit-transition
:
.2s
;
}
.orgchart.noncollapsable
.node
.edge
{
...
...
@@ -377,8 +322,6 @@
.orgchart
.node
.horizontalEdge
::before
{
position
:
absolute
;
top
:
calc
(
50%
-
7px
);
top
:
-webkit-calc
(
50%
-
7px
);
top
:
-moz-calc
(
50%
-
7px
);
}
.orgchart
.node
.rightEdge
::before
{
...
...
@@ -413,39 +356,33 @@
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
-ms-touch-action
:
manipulation
;
touch-action
:
manipulation
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
color
:
#fff
;
background-color
:
#
ca5931
;
background-color
:
#
5cb85c
;
border
:
1px
solid
transparent
;
border-color
:
#ca5931
;
border-color
:
#4cae4c
;
border-radius
:
4px
;
}
.oc-export-btn
[
disabled
]
{
cursor
:
not-allowed
;
filter
:
alpha
(
opacity
=
30
);
-webkit-box-shadow
:
none
;
box-shadow
:
none
;
opacity
:
0.3
;
}
.oc-export-btn
:hover
,
.oc-export-btn
:focus
,
.oc-export-btn
:active
{
background-color
:
#
ca5931
;
border-color
:
#
ca5931
;
background-color
:
#
449d44
;
border-color
:
#
347a34
;
}
.orgchart
~
.mask
{
position
:
absolute
;
top
:
0
px
;
right
:
0
px
;
bottom
:
0
px
;
left
:
0
px
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
999
;
text-align
:
center
;
background-color
:
rgba
(
0
,
0
,
0
,
0.3
);
...
...
@@ -460,45 +397,41 @@
}
.orgchart
.node
{
transition
:
all
0.3s
;
webkit-transition
:
all
0.3s
;
opacity
:
1
;
top
:
0
;
left
:
0
;
transition
:
transform
0.3s
,
opacity
0.3s
;
}
.orgchart
.slide-down
{
opacity
:
0
;
t
op
:
40px
;
t
ransform
:
translateY
(
40px
)
;
}
.orgchart.l2r
.node.slide-down
,
.orgchart.r2l
.node.slide-down
{
t
op
:
130px
;
t
ransform
:
translateY
(
130px
)
;
}
.orgchart
.slide-up
{
opacity
:
0
;
t
op
:
-40px
;
t
ransform
:
translateY
(
-40px
)
;
}
.orgchart.l2r
.node.slide-up
,
.orgchart.r2l
.node.slide-up
{
t
op
:
-130px
;
t
ransform
:
translateY
(
-130px
)
;
}
.orgchart
.slide-right
{
opacity
:
0
;
left
:
130px
;
transform
:
translateX
(
130px
)
;
}
.orgchart.l2r
.node.slide-right
,
.orgchart.r2l
.node.slide-right
{
left
:
40px
;
transform
:
translateX
(
40px
)
;
}
.orgchart
.slide-left
{
opacity
:
0
;
left
:
-130px
;
transform
:
translateX
(
-130px
)
;
}
.orgchart.l2r
.node.slide-left
,
.orgchart.r2l
.node.slide-left
{
left
:
-40px
;
transform
:
translateX
(
-40px
)
;
}
\ No newline at end of file
atms-web/src/main/webapp/Scripts/orgChart/jquery.orgchart.js
View file @
7aba8b6a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
atms-web/src/main/webapp/dist/index.html
View file @
7aba8b6a
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<title>
2016 NBA Playoff Picture
</title>
<link
rel=
'stylesheet'
href=
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'
>
<link
rel=
'stylesheet'
href=
'
https://cdnjs.cloudflare.com/ajax/libs/orgchart/2.1.3/css/jquery.orgchart.min
.css'
>
<link
rel=
'stylesheet'
href=
'
../Content/orgChart/jquery.orgchart
.css'
>
<link
rel=
"stylesheet"
href=
"./style.css"
>
</head>
<body>
...
...
@@ -12,7 +12,7 @@
<div
id=
"chart-eastern"
class=
"chart-container"
style=
"text-align: left;"
></div>
<!-- <a id="github-link" href="https://github.com/dabeng/OrgChart" target="_blank"><i class="fa fa-github-square"></i></a> -->
<script
src=
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'
></script>
<script
src=
'
https://cdnjs.cloudflare.com/ajax/libs/orgchart/2.1.3/js/jquery.orgchart.min
.js'
></script>
<script
src=
'
../Scripts/orgChart/jquery.orgchart
.js'
></script>
<script
src=
"./script.js"
></script>
</body>
</html>
\ No newline at end of file
atms-web/src/main/webapp/dist2/index.html
View file @
7aba8b6a
...
...
@@ -8,6 +8,15 @@
</head>
<body>
<div
id=
"tree"
></div>
<canvas
id=
"canvas"
width=
"1000px"
height=
"600px"
></canvas>
<script
src=
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'
></script>
<!-- Required to convert named colors to RGB -->
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/canvg/1.4/rgbcolor.min.js"
></script>
<!-- Optional if you want blur -->
<script
src=
"https://cdn.jsdelivr.net/npm/stackblur-canvas@^1/dist/stackblur.min.js"
></script>
<!-- Main canvg code -->
<script
src=
"https://cdn.jsdelivr.net/npm/canvg/dist/browser/canvg.min.js"
></script>
<script
src=
"./d3.min.js"
></script>
<script
src=
"./orgchart.js"
></script>
<script
src=
"./script.js"
></script>
</body>
...
...
atms-web/src/main/webapp/dist2/script.js
View file @
7aba8b6a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment