1jQuery(document).ready(function ($) { 2'use strict'; 3 $('.morph-by-bonfire ul li ul').before($('<span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve"><polygon id="arrow-24-icon" points="206.422,462 134.559,390.477 268.395,256 134.559,121.521 206.422,50 411.441,256 "/></svg></span>')); 4 5 $(".menu > li > span, .sub-menu > li > span").on('touchstart click', function(e) { 6 e.preventDefault(); 7 if (false == $(this).next().is(':visible')) { 8 $(this).parent().siblings().find(".sub-menu").slideUp(300); 9 $(this).siblings().find(".sub-menu").slideUp(300); 10 $(this).parent().siblings().find("span").removeClass("morph-submenu-active"); 11 } 12 $(this).next().slideToggle(300); 13 $(this).toggleClass("morph-submenu-active"); 14 }) 15 16 17 $(".menu > li > span").on('touchstart click', function(e) { 18 e.preventDefault(); 19 if($(".sub-menu > li > span").hasClass('morph-submenu-active')) 20 { 21 $(".sub-menu > li > span").removeClass("morph-submenu-active"); 22 } 23 }) 24 25 $(".morph-main-menu-button-wrapper, .morph-main-menu-activator, .morph-background-overlay").on('touchstart click', function(e) { 26 if($(".menu > li > span, .sub-menu > li > span").hasClass('morph-submenu-active')) 27 { 28 $(".menu > li").find(".sub-menu").slideUp(300); 29 $(".menu > li > span, .sub-menu > li > span").removeClass("morph-submenu-active"); 30 } 31 }) 32 33});
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.