comparison gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html @ 6134:69f95a016308

Handle special highlighting for fix analysis.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 30 May 2013 15:15:02 +0200
parents 0b9f0d37fe6e
children 0a6e486e21c4
comparison
equal deleted inserted replaced
6133:3ff2a4317167 6134:69f95a016308
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript"> 3 <script type="text/javascript">
4 var highlighted = ""; 4 var highlighted = "";
5 function stripRiver(name) {
6 var module = getModule();
7 if (module === 'fixanalysis') {
8 if (name.contains('Donau') ||
9 name.contains('Main') ||
10 name.contains('Neckar')) {
11 return name.split(' ')[0];
12 }
13 }
14 return name;
15 }
5 function highlight(name){ 16 function highlight(name){
6 unHighlight(highlighted); 17 unHighlight(highlighted);
7 var river; 18 var river;
19 name = stripRiver(name);
8 if (availableRiver(name)) { 20 if (availableRiver(name)) {
9 river = document.getElementById(name); 21 river = document.getElementById(name);
10 } 22 }
11 else { 23 else {
12 river = document.getElementById(name + "_inactive"); 24 river = document.getElementById(name + "_inactive");
15 highlighted = name; 27 highlighted = name;
16 river.style.visibility="visible"; 28 river.style.visibility="visible";
17 } 29 }
18 } 30 }
19 function highlightList(name) { 31 function highlightList(name) {
20 highlightRiver(name); 32 name = stripRiver(name);
33 highlightRiver(name);
21 } 34 }
22 function unHighlight(name) { 35 function unHighlight(name) {
23 var river; 36 var river;
37 name = stripRiver(name);
24 if (availableRiver(name)) { 38 if (availableRiver(name)) {
25 river = document.getElementById(name); 39 river = document.getElementById(name);
26 } 40 }
27 else { 41 else {
28 river = document.getElementById(name + "_inactive"); 42 river = document.getElementById(name + "_inactive");
30 if (river) { 44 if (river) {
31 river.style.visibility="hidden"; 45 river.style.visibility="hidden";
32 } 46 }
33 } 47 }
34 function unHighlightList(name) { 48 function unHighlightList(name) {
35 unHighlightRiver(name); 49 name = stripRiver(name);
50 unHighlightRiver(name);
36 } 51 }
37 </script> 52 </script>
38 </head> 53 </head>
39 <body> 54 <body>
40 <!-- Create Mappings --> 55 <!-- Create Mappings -->

http://dive4elements.wald.intevation.org