Skip to content
Snippets Groups Projects
Commit 8104223c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

index file adapted for a new javascript

parent b5339c6f
No related branches found
No related tags found
1 merge request!5Frontend refactor
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
//<![CDATA[ //<![CDATA[
function initMap(){ function initMap(){
var mapDiv = document.getElementById('mapElement'); var element = document.getElementById('minervaAppDiv');
minerva.GuiConnector.init(); minerva.GuiConnector.init();
minerva.ServerConnector.getProject(minerva.GuiConnector.getParams['id']).then(function(project){ minerva.ServerConnector.getProject(minerva.GuiConnector.getParams['id']).then(function(project){
var windowsTouchInterface = ((navigator.appVersion.indexOf("Win")!=-1) && ('ontouchstart' in document.documentElement)); var windowsTouchInterface = ((navigator.appVersion.indexOf("Win")!=-1) && ('ontouchstart' in document.documentElement));
return minerva.create({ return minerva.create({
mapDiv : mapDiv, element : element,
project : project, project : project,
markerOptimization : !windowsTouchInterface, markerOptimization : !windowsTouchInterface,
bigLogo : windowsTouchInterface, bigLogo : windowsTouchInterface,
...@@ -60,18 +60,7 @@ function initMap(){ ...@@ -60,18 +60,7 @@ function initMap(){
<h:outputStylesheet library="css" name="bootstrap.min.css"/> <h:outputStylesheet library="css" name="bootstrap.min.css"/>
<h:outputScript library="primefaces" name="jquery/jquery.js" target="head" /> <h:outputScript library="primefaces" name="jquery/jquery.js" target="head" />
<div class = "containerClass"> <div id="minervaAppDiv" style="height: 100%;width: 100%;margin: 0;"/>
<div id="leftPanel" class ="leftPanelClass"/>
<div style="display: table-cell;height:100%;width:100%;">
<div style="height:100%;width:100%;position:relative">
<div id="menuBelt" class="menuBelt"/>
<div id="mapElement" class="mapClass"/>
<div id="legend" class="legendBox" style="display:none" />
</div>
</div>
<ul id="contextMenu" />
<ul id="selectionContextMenu" />
</div>
</h:body> </h:body>
</f:view> </f:view>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment