Trying to modify accordion menu for full bar clickable

Trying to modify accordion menu for full bar clickable

Been trying my darndest this week to get this accordion menu working like I need it to and no luck so far. Right now on the mobile menu you can click the + for the submenu to drop down. My desired functionality is that a user can click the entire menu title for the submenu to drop down, and not just the + sign.

The url I'm working on, if you have a mobile dev device or mobile emulator is http://fastgateopeners.com 

Here is my current jquery

  1. (function (jQuery) {
  2.     jQuery.fn.extend({
  3.         accordion: function () {
  4.             return this.each(function () {
  5.                 var listObject = jQuery(this),
  6.                     elementDataKey = "accordiated",
  7.                     activeClassName = "active",
  8.                     activationEffect = "slideToggle",
  9.                     panelSelector = "ul, div",
  10.                     activationEffectSpeed = "fast",
  11.                     itemSelector = "li";
  12.                 if (listObject.data(elementDataKey)) return false;
  13.                 jQuery.each(listObject.find("ul, li>div"), function () {
  14.                     jQuery(this).data(elementDataKey, true);
  15.                     jQuery(this).hide()
  16.                 });
  17.                 jQuery.each(listObject.find("span.opener"), function () {
  18.                     jQuery(this).click(function (e) {
  19.                         activate(this, activationEffect);
  20.                         return void 0
  21.                     });
  22.                     jQuery(this).bind("activate-node", function () {
  23.                         listObject.find(panelSelector).not(jQuery(this).parents()).not(jQuery(this).siblings()).slideUp(activationEffectSpeed);
  24.                         activate(this, "slideDown")
  25.                     })
  26.                 });
  27.                 var active = location.hash ? listObject.find('a[href=\'' + location.hash + '\']')[0] : listObject.find("li.current a")[0];
  28.                 if (active) activate(active, false);

  29.                 function activate(el, effect) {
  30.                     jQuery(el).parent(itemSelector).siblings().removeClass(activeClassName).children(panelSelector).slideUp(activationEffectSpeed);
  31.                     jQuery(el).siblings(panelSelector)[effect || activationEffect](effect == "show" ? activationEffectSpeed : false, function () {
  32.                         if (jQuery(el).siblings(panelSelector).is(":visible")) jQuery(el).parents(itemSelector).not(listObject.parents()).addClass(activeClassName);
  33.                         else jQuery(el).parent(itemSelector).removeClass(activeClassName); if (effect == "show") jQuery(el).parents(itemSelector).not(listObject.parents()).addClass(activeClassName);
  34.                         jQuery(el).parents().show()
  35.                     })
  36.                 }
  37.             })
  38.         }
  39.     })
  40. })(jQuery);
  41. jQuery(function ($) {
  42.     $(".accordion").accordion();
  43.     $(".accordion").each(function (index) {
  44.         var activeItems = $(this).find("li.active");
  45.         activeItems.each(function (i) {
  46.             $(this).children("ul").css("display", "block");
  47.             if (i == activeItems.length - 1) $(this).addClass("current")
  48.         })
  49.     })
  50. });

Followed by the menu html:

  1. <div class="nav container clearer show-bg">
  2.             
  3.     


  4.     
  5.     
  6.         <div id="mobnav" class="grid-full" style="display: block;">
  7.             <a id="mobnav-trigger" href="" class="active">
  8.                 <span class="trigger-icon"><span class="line"></span><span class="line"></span><span class="line"></span></span>
  9.                 <span>Browse Categories</span>
  10.             </a>
  11.         </div>

  12.         <ul class="accordion vertnav vertnav-top grid-full mobile show">
  13.         
  14.                                         <li class="level0 nav-1 level-top first">
  15. <a href="http://fastgateopeners.com/store/mhome.html" class="level-top">
  16. <span>Home</span>
  17. </a>
  18. </li><li class="level0 nav-2 level-top">
  19. <a href="http://fastgateopeners.com/store/low-voltage-operators.html" class="level-top">
  20. <span>Low Voltage Operators</span>
  21. </a>
  22. </li><li class="level0 nav-3 level-top parent current">
  23. <a href="http://fastgateopeners.com/store/conventional-operators.html" class="level-top">
  24. <span>Conventional Operators</span>
  25. </a>
  26. <span class="opener">&nbsp;</span>

  27. <ul class="level0" style="display: none;">
  28. <li class="level1 nav-3-1 first">
  29. <a href="http://fastgateopeners.com/store/conventional-operators/swing-gate-operators.html">
  30. <span>Swing Gate Operators</span>
  31. </a>
  32. </li><li class="level1 nav-3-2">
  33. <a href="http://fastgateopeners.com/store/conventional-operators/barrier-gate-operators.html">
  34. <span>Barrier Gate Operators</span>
  35. </a>
  36. </li><li class="level1 nav-3-3 last">
  37. <a href="http://fastgateopeners.com/store/conventional-operators/slide-gate-operators.html">
  38. <span>Slide Gate Operators</span>
  39. </a>
  40. </li>
  41. </ul>

  42. </li><li class="level0 nav-4 level-top parent">
  43. <a href="http://fastgateopeners.com/store/accessories.html" class="level-top">
  44. <span>Accessories</span>
  45. </a>
  46. <span class="opener">&nbsp;</span>

  47. <ul class="level0" style="display: none;">
  48. <li class="level1 nav-4-1 first">
  49. <a href="http://fastgateopeners.com/store/accessories/barrier-gate-accessories.html">
  50. <span>Barrier Gate Accessories</span>
  51. </a>
  52. </li><li class="level1 nav-4-2">
  53. <a href="http://fastgateopeners.com/store/accessories/entry-systems-and-devices.html">
  54. <span>Entry Systems &amp; Devices</span>
  55. </a>
  56. </li><li class="level1 nav-4-3 last">
  57. <a href="http://fastgateopeners.com/store/accessories/electrical-and-hardware.html">
  58. <span>Electrical &amp; Hardware</span>
  59. </a>
  60. </li>
  61. </ul>

  62. </li><li class="level0 nav-5 level-top">
  63. <a href="http://fastgateopeners.com/store/parts.html" class="level-top">
  64. <span>FAAC Replacement Parts</span>
  65. </a>
  66. </li><li class="level0 nav-6 level-top last parent">
  67. <a href="http://fastgateopeners.com/store/resources.html" class="level-top">
  68. <span>Resources</span>
  69. </a>
  70. <span class="opener">&nbsp;</span>

  71. <ul class="level0" style="display: none;">
  72. <li class="level1 nav-6-1 first">
  73. <a href="http://fastgateopeners.com/store/resources/hawaii-gate-opener-deals.html">
  74. <span>Hawaii Gate Opener Deals</span>
  75. </a>
  76. </li><li class="level1 nav-6-2 last">
  77. <a href="http://fastgateopeners.com/store/resources/virgin-islands-gate-opener-deals.html">
  78. <span>Virgin Islands Gate Opener Deals</span>
  79. </a>
  80. </li>
  81. </ul>

  82. </li>                        
  83.                         
  84.         </ul>

  85.     


  86.     
  87.     
  88.         <ul id="nav" class="grid-full classic mobile">
  89.         
  90.                                                         <li id="homelink-icon" class="level0 level-top">
  91.                     <a class="level-top feature feature-icon-hover" href="http://fastgateopeners.com/store/"><span class="icon i-home-w force-no-bg-color"></span></a>
  92.                 </li>
  93.             
  94.                                     
  95.                                         <li class="level0 nav-7 level-top first">
  96. <a href="http://fastgateopeners.com/store/mhome.html" class="level-top">
  97. <span>Home</span>
  98. </a>
  99. </li><li class="level0 nav-8 level-top">
  100. <a href="http://fastgateopeners.com/store/low-voltage-operators.html" class="level-top">
  101. <span>Low Voltage Operators</span>
  102. </a>
  103. </li><li class="level0 nav-9 active level-top parent">
  104. <a href="http://fastgateopeners.com/store/conventional-operators.html" class="level-top">
  105. <span>Conventional Operators</span><span class="caret">&nbsp;</span>
  106. </a>

  107. <ul class="level0">
  108. <li class="level1 nav-9-1 first">
  109. <a href="http://fastgateopeners.com/store/conventional-operators/swing-gate-operators.html">
  110. <span>Swing Gate Operators</span>
  111. </a>
  112. </li><li class="level1 nav-9-2">
  113. <a href="http://fastgateopeners.com/store/conventional-operators/barrier-gate-operators.html">
  114. <span>Barrier Gate Operators</span>
  115. </a>
  116. </li><li class="level1 nav-9-3 last">
  117. <a href="http://fastgateopeners.com/store/conventional-operators/slide-gate-operators.html">
  118. <span>Slide Gate Operators</span>
  119. </a>
  120. </li>
  121. </ul>

  122. </li><li class="level0 nav-10 level-top parent">
  123. <a href="http://fastgateopeners.com/store/accessories.html" class="level-top">
  124. <span>Accessories</span><span class="caret">&nbsp;</span>
  125. </a>

  126. <ul class="level0">
  127. <li class="level1 nav-10-1 first">
  128. <a href="http://fastgateopeners.com/store/accessories/barrier-gate-accessories.html">
  129. <span>Barrier Gate Accessories</span>
  130. </a>
  131. </li><li class="level1 nav-10-2">
  132. <a href="http://fastgateopeners.com/store/accessories/entry-systems-and-devices.html">
  133. <span>Entry Systems &amp; Devices</span>
  134. </a>
  135. </li><li class="level1 nav-10-3 last">
  136. <a href="http://fastgateopeners.com/store/accessories/electrical-and-hardware.html">
  137. <span>Electrical &amp; Hardware</span>
  138. </a>
  139. </li>
  140. </ul>

  141. </li><li class="level0 nav-11 level-top">
  142. <a href="http://fastgateopeners.com/store/parts.html" class="level-top">
  143. <span>FAAC Replacement Parts</span>
  144. </a>
  145. </li><li class="level0 nav-12 level-top last parent">
  146. <a href="http://fastgateopeners.com/store/resources.html" class="level-top">
  147. <span>Resources</span><span class="caret">&nbsp;</span>
  148. </a>

  149. <ul class="level0">
  150. <li class="level1 nav-12-1 first">
  151. <a href="http://fastgateopeners.com/store/resources/hawaii-gate-opener-deals.html">
  152. <span>Hawaii Gate Opener Deals</span>
  153. </a>
  154. </li><li class="level1 nav-12-2 last">
  155. <a href="http://fastgateopeners.com/store/resources/virgin-islands-gate-opener-deals.html">
  156. <span>Virgin Islands Gate Opener Deals</span>
  157. </a>
  158. </li>
  159. </ul>

  160. </li>                    
  161.                                     
  162.                                     
  163.         </ul>
  164. </div>