summaryrefslogtreecommitdiff
path: root/static/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/base.js')
-rw-r--r--static/base.js30
1 files changed, 29 insertions, 1 deletions
diff --git a/static/base.js b/static/base.js
index 19b3945..f880b61 100644
--- a/static/base.js
+++ b/static/base.js
@@ -1,3 +1,31 @@
+/* base function shared by some pages */
+/* Copyright (C) 2009 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+See the file COPYING for details.
+*/
+
+/* show a block panel */
+function show(id){
+ document.getElementById(id).style.display = 'block';
+}
+
+/* hide a panel */
+function hide(id){
+ document.getElementById(id).style.display = 'None';
+}
function saveExtent() {
/* save the current extent in a cookie */
@@ -29,4 +57,4 @@ function zoomToCurrentExtent(map){
else{
return;
}
-} \ No newline at end of file
+}