2011-11-11 18:51:44 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
|
|
<title>jOrgChart - A jQuery OrgChart Plugin</title>
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.min.css"/>
|
|
|
|
<link rel="stylesheet" href="css/jquery.jOrgChart.css"/>
|
|
|
|
<link rel="stylesheet" href="css/custom.css"/>
|
|
|
|
<link href="css/prettify.css" type="text/css" rel="stylesheet" />
|
|
|
|
|
|
|
|
<script type="text/javascript" src="prettify.js"></script>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
|
|
|
|
<script src="jquery.jOrgChart.js"></script>
|
|
|
|
<script>
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
$("#org").jOrgChart({
|
|
|
|
chartElement : '#chart'
|
|
|
|
});
|
|
|
|
|
|
|
|
/* Extra Code */
|
|
|
|
$("#show-list").click(function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
$('#list-html').toggle('fast', function(){
|
|
|
|
if($(this).is(':visible')){
|
|
|
|
$('#show-list').text('Hide underlying list.');
|
2011-11-11 19:21:00 +01:00
|
|
|
$(".topbar").fadeTo('fast',0.9);
|
2011-11-11 18:51:44 +01:00
|
|
|
}else{
|
2011-11-11 19:21:00 +01:00
|
|
|
$('#show-list').text('Show underlying list.');
|
2011-11-11 18:51:44 +01:00
|
|
|
$(".topbar").fadeTo('fast',1);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="prettyPrint();">
|
|
|
|
<div class="topbar">
|
|
|
|
<div class="topbar-inner">
|
|
|
|
<div class="container">
|
|
|
|
<a class="brand" href="#">jQuery Organisation Chart</a>
|
|
|
|
<ul class="nav">
|
2011-11-11 19:21:00 +01:00
|
|
|
<li><a href="http://github.com/wesnolte">Github</a></li>
|
|
|
|
<li><a href="http://twitter.com/wesnolte">Twitter</a></li>
|
|
|
|
<li><a href="http://th3silverlining.com">Blog</a></li>
|
2011-11-11 18:51:44 +01:00
|
|
|
</ul>
|
|
|
|
<div class="pull-right">
|
2011-11-11 19:21:00 +01:00
|
|
|
<div class="alert-message info" id="show-list">Show underlying list.</div>
|
2011-11-11 18:51:44 +01:00
|
|
|
|
|
|
|
<pre class="prettyprint lang-html" id="list-html" style="display:none"><ul id="org">
|
|
|
|
<li>
|
|
|
|
Food
|
|
|
|
<ul>
|
|
|
|
<li>Beer</li>
|
|
|
|
<li>Vegetables
|
|
|
|
<ul>
|
|
|
|
<li>Pumpkin</li>
|
2011-11-11 19:21:00 +01:00
|
|
|
<li><a href="http://tquila.com" target="_blank">Aubergine</a></li>
|
2011-11-11 18:51:44 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Fruit
|
|
|
|
<ul>
|
|
|
|
<li>Apple
|
|
|
|
<ul>
|
|
|
|
<li>Granny Smith</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Berries
|
|
|
|
<ul>
|
|
|
|
<li>Blueberry</li>
|
|
|
|
<li>Rasberry</li>
|
|
|
|
<li>Cucumber</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Bread</li>
|
|
|
|
<li>Chocolate
|
|
|
|
<ul>
|
|
|
|
<li>Topdeck</li>
|
|
|
|
<li>Reese's Cups</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul id="org" style="display:none">
|
|
|
|
<li>
|
|
|
|
Food
|
|
|
|
<ul>
|
|
|
|
<li>Beer</li>
|
|
|
|
<li>Vegetables
|
|
|
|
<ul>
|
|
|
|
<li>Pumpkin</li>
|
|
|
|
<li><a href="http://tquila.com" target="_blank">Aubergine</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Fruit
|
|
|
|
<ul>
|
|
|
|
<li>Apple
|
|
|
|
<ul>
|
|
|
|
<li>Granny Smith</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Berries
|
|
|
|
<ul>
|
|
|
|
<li>Blueberry</li>
|
|
|
|
<li>Rasberry</li>
|
|
|
|
<li>Cucumber</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Bread</li>
|
|
|
|
<li>Chocolate
|
|
|
|
<ul>
|
|
|
|
<li>Topdeck</li>
|
|
|
|
<li>Reese's Cups</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="chart" class="orgChart"></div>
|
|
|
|
|
|
|
|
</body></html>
|