1jQuery(document).ready(function ($) { 2'use strict'; 3 /* add sub-menu arrow */ 4 $('.taptap-by-bonfire ul li ul').before($('<span class="taptap-sub-arrow"><span class="taptap-sub-arrow-inner"></span></span>')); 5 6 /* accordion */ 7 $(".taptap-by-bonfire .menu > li > span, .taptap-by-bonfire .sub-menu > li > span").on('click touchend', function(e) { 8 e.preventDefault(); 9 if (false === $(this).next().is(':visible')) { 10 $(this).parent().siblings().find(".sub-menu").slideUp(300); 11 $(this).siblings().find(".sub-menu").slideUp(300); 12 $(this).parent().siblings().find("span").removeClass("taptap-submenu-active"); 13 $(this).siblings().find("span").removeClass("taptap-submenu-active"); 14 } 15 $(this).next().slideToggle(300); 16 $(this).toggleClass("taptap-submenu-active"); 17 }) 18 19 /* sub-menu arrow animation */ 20 $(".taptap-by-bonfire .menu > li > span").on('click touchend', function(e) { 21 e.preventDefault(); 22 if($(".taptap-by-bonfire .sub-menu > li > span").hasClass('taptap-submenu-active')) 23 { 24 $(".taptap-by-bonfire .sub-menu > li > span").removeClass("taptap-submenu-active"); 25 } 26 }) 27 28});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.