1 2jQuery(document).ready(function ($) { 3 4 5 $(".mobilemenu-main").each(function () { 6 var e = $(this); 7 8 e.siblings(".mobile-menu-icon").on("click", function () { 9 e.addClass("active"); 10 $("html").addClass("opne-mobilemenu"); 11 }) 12 e.find(".mobileclose").on("click", function () { 13 e.removeClass("active"); 14 $("html").removeClass("opne-mobilemenu"); 15 }) 16 e.find(".gomenu .dir").prepend('<span class="arrows"><i></i></span>') 17 18 e.find(".gomenu > ul").before('<div class="menutitle">'+(e.data("title")?e.data("title"):"Menu")+'</div>') 19 20 e.find(".gomenu > ul >li.dir").each(function () { 21 var ul = $(this).children("ul").addClass("sub-menu"); 22 e.find(".m-menu").append(ul); 23 ul.wrap('<div class="sub-menu-wrap"></div>'); 24 ul.parent().prepend('<div class="menutitle">' + $(this).children("a").text() + '</div>') 25 $(this).children(".arrows").on("click", function () { 26 ul.parent().toggleClass("active").siblings().removeClass("active"); 27 $(this).toggleClass("active"); 28 }) 29 if($(this).hasClass("current") && ul.find(".subcurrent").length){ 30 $(this).children(".arrows").click(); 31 } 32 }) 33 e.find(".sub-menu-wrap .menutitle").on("click", function () { 34 $(this).parent().removeClass("active"); 35 e.find(".gomenu .arrows").removeClass("active"); 36 }) 37 e.find(".sub-menu-wrap .arrows").on("click", function () { 38 $(this).toggleClass("active"); 39 $(this).siblings("ul").slideToggle().parent().siblings().children("ul").slideUp().siblings().removeClass("active"); 40 }) 41 $("body").append(e); 42 43 e.find(".subcurrent").parent("ul").siblings(".arrows").click(); 44 45 e.find('a[href*="#"]:not(.mm-btn):not(.mm-next):not(.mm-title):not(.mm-subblocker)').on("click", function () { 46 if (jQuery(this.hash).length) { 47 $(".mobileclose").click(); 48 } 49 }) 50 e.find('.dir > a[href="javascript:;"]').on("click",function(event){ 51 event.preventDefault(); 52 $(this).siblings(".arrows").click(); 53 }) 54 55 56 }) 57});
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.