diff gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 710:5f29bfeb61bd

Improved the design and layout of the user interface. gnv/trunk@980 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Sun, 25 Apr 2010 21:05:44 +0000
parents cb1bae26e7ae
children a0e6566cd111
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Fri Apr 23 14:57:32 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Sun Apr 25 21:05:44 2010 +0000
@@ -20,11 +20,9 @@
         <meta http-equiv="pragma" content="no-cache"/>
         <meta http-equiv="cache-control" content="no-cache"/>
         <meta name="robots" content="noindex"/>
-        <link href="styles/default.css" rel="stylesheet" type="text/css"/>
+        <link href="styles/gnv.css" rel="stylesheet" type="text/css"/>
         <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
-        <script type="text/javascript" src="scripts/jquery-1.4.2.min.js"></script>
         <script type="text/javascript">
-            jQuery.noConflict();
             var lon  = 5;
             var lat  = 55;
             var zoom = 5;
@@ -64,8 +62,6 @@
                 map.addLayers([back1, layer]);
                 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
                 <%}%>
-
-                initHeight();
             }
 
             function toggle(element) {
@@ -79,23 +75,12 @@
                 }
             }
 
-            /**
-             * Calculate the content's height (content = window -header - footer).
-             */
-            function initHeight() {
-                var winHeight = window.innerHeight;
-                var headerHeight = jQuery("headerElement").innerHeight();
-                var footerHeight = jQuery("footerElement").innerHeight();
-                var height = winHeight - headerHeight - footerHeight;
-                jQuery("contentElement").innerHeight(height);
-                jQuery(window).resize(initHeight);
-            }
         </script>
     </head>
 
     <body id="gnviewerbody" onLoad="init()">
     <div id="overlay"></div>
-    <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute">
+    <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute;visibility:hidden;">
         <div id="overlayContent">
             <p>
                 <bean:message key="gnviewer.productselection.overlay.title"/>
@@ -108,27 +93,6 @@
         </div>
         <div id="contentElement" class="contentElement">
             <jsp:include page="index.jsp" />
-            <%if(request.getAttribute("wms_published") != null){ %>
-            <div class="outerMap">
-                <div id="wms">
-                    <table>
-                        <tr>
-                            <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td>
-                            <td class="wmsvalue"><%=serverPath%>?SERVICE=WMS&amp;REQUEST=GetCapabilities</td>
-                        </tr>
-                        <tr>
-                            <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td>
-                            <td class="wmsvalue"><%=layerName%></td>
-                        </tr>
-                        <tr>
-                            <td class="parameter"><bean:message key="gnviewer.wms.layer.ttl"/>:</td>
-                            <td class="wmsvalue"><%=timeToLive%></td>
-                        </tr>
-                    </table>
-                </div>
-                <div id="map"></div>
-            </div>
-            <%}%>
          </div>
          <br>
          <div id="footerElement">

http://dive4elements.wald.intevation.org