comparison gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp @ 697:d2582f75b144

Improved design and added new wms layers as background for 'Horizontalschnitte'. gnv/trunk@928 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 14 Apr 2010 16:05:32 +0000
parents 883b366e3b15
children 5f29bfeb61bd
comparison
equal deleted inserted replaced
696:ae1e616ecf94 697:d2582f75b144
13 <meta http-equiv="pragma" content="no-cache"/> 13 <meta http-equiv="pragma" content="no-cache"/>
14 <meta http-equiv="cache-control" content="no-cache"/> 14 <meta http-equiv="cache-control" content="no-cache"/>
15 <meta name="robots" content="noindex"/> 15 <meta name="robots" content="noindex"/>
16 <link href="styles/default.css" rel="stylesheet" type="text/css"/> 16 <link href="styles/default.css" rel="stylesheet" type="text/css"/>
17 <script type="text/javascript" src="scripts/gnviewer.js"></script> 17 <script type="text/javascript" src="scripts/gnviewer.js"></script>
18 <script type="text/javascript" src="scripts/jquery-1.4.2.min.js"></script>
18 <script type="text/javascript"> 19 <script type="text/javascript">
20 jQuery.noConflict();
19 function copy_demo_wkt_line() { 21 function copy_demo_wkt_line() {
20 document.getElementById('mesh_linestring').value = 22 document.getElementById('mesh_linestring').value =
21 "LINESTRING (" + 23 "LINESTRING (" +
22 "0.4911 56.2489, " + 24 "0.4911 56.2489, " +
23 "10.4464 58.1608, " + 25 "10.4464 58.1608, " +
49 if (ele != null) { 51 if (ele != null) {
50 ele.checked = false; 52 ele.checked = false;
51 } 53 }
52 } 54 }
53 55
54 function toggle(element) { 56 function toggle(element) {
55 var ele = document.getElementById(element); 57 var ele = document.getElementById(element);
56 console.log("Element: " + ele.style.visibility); 58 var vis = ele.style.visibility;
57 var vis = ele.style.visibility; 59 if (vis != "visible") {
58 if (vis != "visible") { 60 ele.style.visibility = "visible";
59 ele.style.visibility = "visible"; 61 }
60 } 62 else {
61 else { 63 ele.style.visibility = "hidden";
62 ele.style.visibility = "hidden"; 64 }
63 } 65 }
64 } 66
67 /**
68 * Calculate the content's height (content = window -header - footer).
69 */
70 function initHeight() {
71 var winHeight = window.innerHeight;
72 var headerHeight = jQuery("headerElement").innerHeight();
73 var footerHeight = jQuery("footerElement").innerHeight();
74 var height = winHeight - headerHeight - footerHeight;
75 jQuery("contentElement").innerHeight(height);
76 jQuery(window).resize(initHeight);
77 }
65 </script> 78 </script>
66 </head> 79 </head>
67 80
68 <body id="gnviewerbody"> 81 <body id="gnviewerbody" onload="initHeight();">
69 <div id="overlay"></div> 82 <div id="overlay"></div>
70 <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute"> 83 <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute">
71 <div id="overlayContent"> 84 <div id="overlayContent">
72 <p> 85 <p>
73 <bean:message key="gnviewer.productselection.overlay.title"/> 86 <bean:message key="gnviewer.productselection.overlay.title"/>
81 </div> 94 </div>
82 <div id="page"> 95 <div id="page">
83 <div id="headerElement"> 96 <div id="headerElement">
84 <jsp:include page="header.jsp" /> 97 <jsp:include page="header.jsp" />
85 </div> 98 </div>
86 <div id="contentElement" class="contentElement bgblue2"> 99 <div id="contentElement" class="contentElement">
87 <jsp:include page="index.jsp" /> 100 <jsp:include page="index.jsp" />
88 </div> 101 </div>
89 <br> 102 <br>
90 <div id="footerElement"> 103 <div id="footerElement">
91 <jsp:include page="footer.jsp" /> 104 <jsp:include page="footer.jsp" />

http://dive4elements.wald.intevation.org