From 8104223c9841949c36f05cf585b6e7803e8de4dd Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 18 May 2017 18:21:11 +0200
Subject: [PATCH] index file adapted for a new javascript

---
 web/src/main/webapp/index.xhtml | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/web/src/main/webapp/index.xhtml b/web/src/main/webapp/index.xhtml
index 3528dc69a0..206c23961a 100644
--- a/web/src/main/webapp/index.xhtml
+++ b/web/src/main/webapp/index.xhtml
@@ -31,12 +31,12 @@
 //<![CDATA[
 
 function initMap(){
-	var mapDiv = document.getElementById('mapElement');
+	var element = document.getElementById('minervaAppDiv');
 	minerva.GuiConnector.init();
 	minerva.ServerConnector.getProject(minerva.GuiConnector.getParams['id']).then(function(project){
 		var windowsTouchInterface = ((navigator.appVersion.indexOf("Win")!=-1) && ('ontouchstart' in document.documentElement)); 
 	  return minerva.create({
-		    mapDiv : mapDiv, 
+				element : element, 
 		    project : project, 
 		    markerOptimization : !windowsTouchInterface, 
 				bigLogo : windowsTouchInterface, 
@@ -60,18 +60,7 @@ function initMap(){
 <h:outputStylesheet library="css" name="bootstrap.min.css"/>
 
 	<h:outputScript library="primefaces" name="jquery/jquery.js" target="head"	/>
-	<div class = "containerClass">
-		<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>
+	<div id="minervaAppDiv" style="height: 100%;width: 100%;margin: 0;"/>
 
 </h:body>
 </f:view>
-- 
GitLab