2012-06-30 07:26:21 +02:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
|
|
|
<%@include file="/jsp/init.jsp" %>
|
|
|
|
|
2012-06-04 01:23:31 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
|
2012-08-16 02:28:51 +02:00
|
|
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
2012-06-04 01:23:31 +02:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
|
|
<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%>
|
|
|
|
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2012-06-25 01:03:25 +02:00
|
|
|
<base href="${baseURL}/">
|
2012-06-04 01:23:31 +02:00
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
|
|
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
<link rel="stylesheet/less" type="text/css" href="css/embedded.less"/>
|
|
|
|
<script type='text/javascript' src='js/mootools-core.js'></script>
|
|
|
|
<script type='text/javascript' src='js/mootools-more.js'></script>
|
|
|
|
<script type='text/javascript' src='js/core.js'></script>
|
|
|
|
<script type='text/javascript' src='js/less.js'></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var mapId = '${mindmap.id}';
|
|
|
|
var mapXml = '${mindmap.xmlAsJsLiteral}';
|
2012-06-30 07:26:21 +02:00
|
|
|
$(document).addEvent('loadcomplete', function (resource) {
|
2012-06-04 01:23:31 +02:00
|
|
|
|
|
|
|
// Configure designer options ...
|
|
|
|
var options = loadDesignerOptions();
|
|
|
|
options.size.height = options.size.height + 50;
|
2012-07-06 05:46:54 +02:00
|
|
|
options.locale = '${locale}';
|
|
|
|
|
2012-06-04 01:23:31 +02:00
|
|
|
|
|
|
|
var userOptions = ${mindmap.properties};
|
|
|
|
options.zoom = ${zoom};
|
|
|
|
|
|
|
|
// Set map id ...
|
|
|
|
options.mapId = mapId;
|
|
|
|
|
|
|
|
// Print is read only ...
|
|
|
|
options.readOnly = true;
|
|
|
|
|
|
|
|
// Build designer ...
|
|
|
|
var designer = buildDesigner(options);
|
|
|
|
|
|
|
|
// Load map from XML ...
|
|
|
|
var parser = new DOMParser();
|
|
|
|
var domDocument = parser.parseFromString(mapXml, "text/xml");
|
|
|
|
|
2012-07-06 05:46:54 +02:00
|
|
|
var mindmap = mindplot.PersistenceManager.loadFromDom(mapId, domDocument);
|
2012-06-04 01:23:31 +02:00
|
|
|
designer.loadMap(mindmap);
|
|
|
|
|
2012-06-30 07:26:21 +02:00
|
|
|
$('zoomIn').addEvent('click', function () {
|
2012-06-04 01:23:31 +02:00
|
|
|
designer.zoomIn();
|
|
|
|
});
|
|
|
|
|
2012-06-30 07:26:21 +02:00
|
|
|
$('zoomOut').addEvent('click', function () {
|
2012-06-04 01:23:31 +02:00
|
|
|
designer.zoomOut();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="mapContainer">
|
2012-06-25 02:51:04 +02:00
|
|
|
<div id="mindplot" onselectstart="return false;"></div>
|
2012-06-04 01:23:31 +02:00
|
|
|
|
|
|
|
<div id="embFooter">
|
2012-07-02 03:42:18 +02:00
|
|
|
<a href="c/home" target="new">
|
2012-06-04 01:23:31 +02:00
|
|
|
<div id="footerLogo"></div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div id="zoomIn" class="button"></div>
|
|
|
|
<div id="zoomOut" class="button"></div>
|
|
|
|
|
|
|
|
<div id="mapDetails">
|
2012-06-12 16:23:47 +02:00
|
|
|
<span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator.username}</span>
|
2012-06-04 01:23:31 +02:00
|
|
|
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
2012-07-04 07:15:55 +02:00
|
|
|
<c:if test="${requestScope['google.analytics.enabled']}">
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', '${requestScope['google.analytics.account']}']);
|
|
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
var ga = document.createElement('script');
|
|
|
|
ga.type = 'text/javascript';
|
|
|
|
ga.async = true;
|
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
|
|
var s = document.getElementsByTagName('script')[0];
|
|
|
|
s.parentNode.insertBefore(ga, s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</c:if>
|
2012-06-04 01:23:31 +02:00
|
|
|
</body>
|
|
|
|
</html>
|