maj syntaxe accolades, maj jQuery, correction layout contact
[mtweb] / web / out / dist / js / menu.js
index 47aaba9..aca3c76 100644 (file)
@@ -1,6 +1,6 @@
-$(document).ready
-( function ()
-  { init_menu_links();
+$(document).ready(
+  function (){
+    init_menu_links();
   }
 );
 
@@ -8,21 +8,21 @@ $(document).ready
 
 var menu = null;
 
-function checkHover()
-{ if(menu) menu.find('ul').fadeOut('fast');
+function checkHover(){
+  if(menu) menu.find('ul').fadeOut('fast');
 }
 
-function init_menu_links()
-{ $('.menu li').hover
-  ( function()
-    { if(menu)
-      { menu.find('ul').fadeOut('fast');
+function init_menu_links(){
+  $('.menu li').hover(
+    function(){
+      if(menu){
+        menu.find('ul').fadeOut('fast');
         menu = null;
       }
       $(this).find('ul').fadeIn('fast');
     },
-    function()
-    { menu = $(this);
+    function(){
+      menu = $(this);
       setTimeout("checkHover()", 80);
     }
   );