]> www.average.org Git - mkgallery.git/blobdiff - include/infopage.js
mame concealable elements on info page. hide them when loaded to info frame.
[mkgallery.git] / include / infopage.js
diff --git a/include/infopage.js b/include/infopage.js
new file mode 100644 (file)
index 0000000..1914a19
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+        This is a part of mkgallery.pl suite
+        http://www.average.org/mkgallery/
+
+       Uses mootools (1.1) http://www.mootools.net/
+*/
+
+function process_infopage() {
+       parsedurl = parseUrl(document.URL)
+       if (parsedurl['query'] == 'conceal'){
+               $$('.conceal').each(function(el){
+                       el.setStyle('display', 'none')
+               })
+       }
+}
+
+/* Initialization */
+window.addEvent('domready',process_infopage)