2011-03-28 06:33:16 +02:00
|
|
|
<!DOCTYPE HTML>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-10-18 14:29:29 +02:00
|
|
|
<!--[if lt IE 9]>
|
2011-10-17 02:42:02 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-17 02:42:02 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="../css/embedded.css"/>
|
|
|
|
|
2011-10-18 14:29:29 +02:00
|
|
|
<script type='text/javascript' src='../js/libraries/mootools/mootools-core-1.3.2-full-compress.js'></script>
|
2011-10-17 02:42:02 +02:00
|
|
|
<script type='text/javascript' src='../js/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type='text/javascript' src='../js/core.js'></script>
|
|
|
|
|
2011-10-17 02:42:02 +02:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var mapId = '${mindmap.id}';
|
|
|
|
var mapXml = '${mapXml}';
|
|
|
|
var mindReady = false;
|
|
|
|
$(document).addEvent('loadcomplete', function(resource) {
|
|
|
|
mindReady = resource == 'mind' ? true : mindReady;
|
|
|
|
if (mindReady) {
|
|
|
|
|
2011-10-18 14:29:29 +02:00
|
|
|
var editorProperties = {zoom:${zoom},saveOnLoad:true,collab:'standalone',readOnly:true};
|
|
|
|
designer = buildDesigner(editorProperties);
|
2011-10-17 02:42:02 +02:00
|
|
|
|
|
|
|
var domDocument = core.Utils.createDocumentFromText(mapXml);
|
|
|
|
var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument);
|
|
|
|
var mindmap = serializer.loadFromDom(domDocument, mapId);
|
|
|
|
|
|
|
|
// Now, load the map ...
|
|
|
|
designer.loadMap(mindmap);
|
|
|
|
|
|
|
|
// If not problem has arisen, close the dialog ...
|
|
|
|
if (!window.hasUnexpectedErrors) {
|
|
|
|
waitDialog.deactivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
$('zoomIn').addEvent('click', function() {
|
|
|
|
designer.zoomIn();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('zoomOut').addEvent('click', function() {
|
|
|
|
designer.zoomOut();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2009-06-07 20:59:43 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="waitDialog" style="display:none">
|
2011-10-17 02:42:02 +02:00
|
|
|
<div id="waitingContainer">
|
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
|
|
|
Loading ...
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="errorDialog" style="display:none">
|
|
|
|
<div id="errorContainer">
|
2009-06-07 20:59:43 +02:00
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
2011-10-17 02:42:02 +02:00
|
|
|
Unexpected error loading your map :(
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-17 02:42:02 +02:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type="text/javascript">
|
2009-06-11 19:43:45 +02:00
|
|
|
|
|
|
|
var waitDialog = new core.WaitDialog();
|
|
|
|
waitDialog.activate(true, $("waitDialog"));
|
|
|
|
$(window).addEvent("error", function(event) {
|
|
|
|
|
|
|
|
// Show error dialog ...
|
|
|
|
waitDialog.changeContent($("errorDialog"), false);
|
|
|
|
return false;
|
|
|
|
});
|
2009-06-07 20:59:43 +02:00
|
|
|
</script>
|
|
|
|
|
2011-10-17 02:42:02 +02:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<div id="mapContainer">
|
|
|
|
<div id="mindplot"></div>
|
|
|
|
<div id="embFooter">
|
|
|
|
<a href="${pageContext.request.contextPath}/c/home.htm" target="new">
|
|
|
|
<div id="logo"></div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div id="zoomIn" class="button"></div>
|
|
|
|
<div id="zoomOut" class="button"></div>
|
|
|
|
<div id="mapDetails">
|
2011-10-17 02:42:02 +02:00
|
|
|
<%--<span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator}</span>--%>
|
|
|
|
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span>
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-17 02:42:02 +02:00
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
</body>
|
|
|
|
</html>
|