]> WPIA git - gigi.git/commitdiff
upd: Remove (unused) menu.js and move other js snippets js-Folder
authorFelix Dörre <felix@dogcraft.de>
Sat, 18 Jun 2016 13:32:00 +0000 (15:32 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sun, 19 Jun 2016 14:22:33 +0000 (16:22 +0200)
Change-Id: I5999ad9d70eefb7259b5e0e4b69f9036e1fdba93

src/org/cacert/gigi/Gigi.templ
static/static/js/expert.js [moved from static/static/expert.js with 100% similarity]
static/static/js/localDate.js [moved from static/static/localDate.js with 100% similarity]
static/static/menu.js [deleted file]

index 0bb64c04cc249b448b8c029afaec1a64f122dbb5..286adf42287faffaf5ba5d68ddcd3a2ec2c820e4 100644 (file)
@@ -15,8 +15,8 @@
         
         <script src="<?=$static?>/js/jquery.min.js"></script>
         <script src="<?=$static?>/js/bootstrap.min.js"></script>
-        <script src="<?=$static?>/expert.js"></script>
-        <script src="<?=$static?>/localDate.js"></script>
+        <script src="<?=$static?>/js/expert.js"></script>
+        <script src="<?=$static?>/js/localDate.js"></script>
     </head>
 <body>
 <nav class="navbar navbar-default">
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);
-
-})();