I use the js-mindmap library for another use, I need to allow the selection to link to extrenal / internal pages to some links, but I need others to bubble into the list of markers (preferably with the same css form as the rest of the mindmap.) I initially looked at getting warning content from header or alt tags, but not sure if they will save the ul and li needed without default in mindmap format ...
I am looking for an easier way to accomplish this. I am sure css is most likely the best practice, and I need to pull the content from html to make it easier to create different mods.
here is JSFiddle MindMp
HTML:
<!DOCTYPE html>
<html>
<head>
<title>ALS Mindmap</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="mindmap/js-mindmap.css" />
<link href="mindmap/style.css" type="text/css" rel="stylesheet"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="mindmap/raphael-min.js"></script>
<script type="text/javascript" src="mindmap/js-mindmap.js"></script>
<script src="mindmap/script.js" type="text/javascript"></script>
<style>
.alert {
padding: 20px;
background-color: #f44336;
color: white;
}
.closebtn {
margin-left: 15px;
color: white;
font-weight: bold;
float: right;
font-size: 22px;
line-height: 20px;
cursor: pointer;
transition: 0.3s;
}
.closebtn:hover {
color: black;
}
</style>
</head>
<body>
<ul>
<li><a href="http://jeffbarcay.com/">ALS</a>
<ul>
<li><a href="#" target="_blank" class="alert" style="background:green !important;">Chest Pain</a></li>
<li><a href="#" target="_blank" class="icon linkedin" color="blue">Shortness of Breath</a></li>
<li><a href="#" target="_blank" class="icon facebook">Allergic Reaction</a></li>
<li><a href="http://www.google.com" target="_blank" class="icon twitter" title="goo">Diabetic</a></li>
<li><a href="#">STEMI</a>
<ul>
<li><a href="#" target="_blank" class="icon twitter" title="9">ACS</a></li>
<li><a href="#" target="_blank" class="closebtn" title="13">STEMI</a>
<ul>
<li><a href="#" title="A">Treatment</a></li>
<li><a href="#" title="C">Protocol</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="alert">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
</div>
</body>
</html>