]> WPIA git - gigi.git/blobdiff - static/static/menu.js
upd: Remove (unused) menu.js and move other js snippets js-Folder
[gigi.git] / static / static / menu.js
diff --git a/static/static/menu.js b/static/static/menu.js
deleted file mode 100644 (file)
index bcaee0d..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-(function() {
-       function explodeMenu(e) {
-               if (e.className == 'menu hidden') {
-                       e.className = 'menu';
-               } else {
-                       e.className = 'menu hidden';
-               }
-       }
-
-       function initMenu() {
-               var Nodes = document.getElementsByTagName('ul');
-               var max = Nodes.length;
-               for (var i = 0; i < max; i++) {
-                       var nodeObj = Nodes.item(i);
-                       if (nodeObj.className.indexOf("menu") > -1 && nodeObj.id != "recom") {
-                               nodeObj.previousSibling.previousSibling.onclick = (function(node) {
-                                       return function() {
-                                               explodeMenu(node);
-                                       };
-                               })(nodeObj);
-                       }
-               }
-       }
-
-       (function(oldLoad) {
-               if (oldLoad == undefined) {
-                       window.onload = init;
-               } else {
-                       window.onload = function() {
-                               initMenu();
-                               oldLoad();
-                       }
-               }
-       })(window.onload);
-
-})();