Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
                     var $child  = $menu.children(".menu_button")
                     var $child  = $menu.children(".menu_button")
-
                     $child.eq(2).find('.ldd_submenu').css("width","440px");
+
                     var $child-ind = $child.index($child)
-
                     $child.eq(3).find('.ldd_submenu').css("width","160px");
+
                    $child-ind.eq(2).find('.ldd_submenu').css("width","440px");
 +
                     $child-ind.eq(3).find('.ldd_submenu').css("width","160px");
                     $child.hover(function() {  
                     $child.hover(function() {  

Revision as of 16:52, 5 October 2014