summaryrefslogtreecommitdiff
path: root/tools/footer.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/footer.php')
-rw-r--r--tools/footer.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/footer.php b/tools/footer.php
index 9bc6c55..fedea9f 100644
--- a/tools/footer.php
+++ b/tools/footer.php
@@ -7,3 +7,21 @@
</div>
</div>
</div>
+ <script>
+ function addClass(id,new_class){
+ if (id == "") return;
+ var i,n=0;
+
+ new_class=new_class.split(",");
+
+ for(i=0;i<new_class.length;i++){
+ if((" "+document.getElementById(id).className+" ").indexOf(" "+new_class[i]+" ")==-1){
+ document.getElementById(id).className+=" "+new_class[i];
+ n++;
+ }
+ }
+
+ return n;
+ }
+ addClass("<?php echo trim(str_replace("/index.php", "", $_SERVER["PHP_SELF"] ), "/");?>", "active");
+ </script>