Mercurial > dive4elements > gnv-client
view gnv/src/main/webapp/scripts/gnviewer.js @ 949:11d8cc2deb92 1.0
merged doc/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:58 +0200 |
parents | d2582f75b144 |
children |
line wrap: on
line source
function displayOverlay() { adjustOverlaySize(); showDiv("overlay"); showDiv("overlayContent"); } function adjustOverlaySize() { var lHeight = document.getElementById("page").scrollHeight; //alert(lHeight); var lOverlay = document.getElementById("overlay"); lOverlay.style.height = lHeight + 'px'; } function showDiv(pName) { var el = document.getElementById(pName); el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; }