summaryrefslogtreecommitdiff
path: root/static/base.js
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-14 22:24:14 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-14 22:24:14 +0000
commit2e323678536f896f67a3ceafbbb59ca985838481 (patch)
tree91e8e7b7ed3199256b75eb92d8ccb57b2e86ea9c /static/base.js
parent0d1b6ecd08c24cca9aa283fcb4f30a456899a5f3 (diff)
downloadChimère-2e323678536f896f67a3ceafbbb59ca985838481.tar.bz2
Chimère-2e323678536f896f67a3ceafbbb59ca985838481.zip
Zoom to a (sub)category (#38)
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@14 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
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
+}