1/* 2 * Plugin: Web Slide - Responsive Mega Menu for Bootstrap 3+ 3 * Demo Link: http://webslidemenu.webthemex.com/ 4 * Version: v3.4 5 * Author: webthemex 6 * License: http://codecanyon.net/licenses/standard 7*/ 8 9document.addEventListener("touchstart", function() {},false); 10jQuery(function($) { 11 12 //Open Offcanvas 13 $('#wsnavtoggle').click(function () { 14 $('.wsmenucontainer').toggleClass('wsoffcanvasopener'); 15 }); 16 //END Open Offcanvas 17 18 19 //Overlap BG 20 $('.overlapblackbg').click(function () { 21 $('.wsmenucontainer').removeClass('wsoffcanvasopener'); 22 }); 23 //END Overlap BG 24 25 26 //Mobile Toggles 27 $('.wsmenu-list> li').has('.wsmenu-submenu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-caret-down"></i></span>'); 28 $('.wsmenu-list > li').has('.wsshoptabing').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-caret-down"></i></span>'); 29 $('.wsmenu-list > li').has('.megamenu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-caret-down"></i></span>'); 30 31 $('.wsmenu-click').click(function(){ 32 $(this).toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow'); 33 $(".wsmenu-submenu, .wsshoptabing, .megamenu").not($(this).siblings('.wsmenu-submenu, .wsshoptabing, .megamenu')).slideUp('slow'); 34 $(this).siblings('.wsmenu-submenu').slideToggle('slow'); 35 $(this).siblings('.wsshoptabing').slideToggle('slow'); 36 $(this).siblings('.megamenu').slideToggle('slow'); 37 38 }); 39 40 $('.wstabitem > li').has('.wstitemright').prepend('<span class="wsmenu-click02"><i class="wsmenu-arrow fa fa-angle-down"></i></span>'); 41 $('.wstabitem02 > li').has('.wstbrandbottom').prepend('<span class="wsmenu-click02"><i class="wsmenu-arrow fa fa-angle-down"></i></span>'); 42 43 $('.wsmenu-click02').click(function(){ 44 $(this).toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow'); 45 $(this).siblings('.wstitemright').slideToggle('slow'); 46 $(this).siblings('.wstbrandbottom').slideToggle('slow'); 47 }); 48 49 //END Mobile Toggles 50 51}); 52 53 54 //Adding Class in Tabing Links 55 jQuery(window).ready(function($){ 56 57 $(".wsshoptabing.wtsdepartmentmenu > .wstabitem > li").on('mouseenter', function() { 58 $(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active"); 59 }); 60 61 $(".wsshoptabing.wtsbrandmenu > .wsshoptabingwp > .wstabitem02 > li").on('mouseenter', function() { 62 $(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active"); 63 }); 64 65 66 //END Adding Class in Tabing Links 67 68 69}); 70 71 72//Check Tabing Menu Height 73 setmenuheight(); 74 jQuery(window).bind("load resize", function($) { 75 76 var w_height = jQuery( window ).width(); 77 if(w_height <= 1024){ 78 jQuery(".wsshoptabing.wtsdepartmentmenu").css('height','100%'); 79 jQuery(".wstitemright").css('height','100%'); 80 } else { 81 setmenuheight(); 82 } 83 84 }); 85 //Check Tabing Menu Height 86 87 //Check Tabing Menu Height 88 function setmenuheight() { 89 var wstNewHeight = 1; 90 jQuery(".wstabitem > li").each(function($) { 91 var wstHeight = jQuery(this).find(".wstitemright").innerHeight(); 92 wstNewHeight = wstHeight > wstNewHeight ? wstHeight : wstNewHeight; 93 jQuery(this).find(".wstitemright").css('height',wstHeight); 94 }); 95 jQuery(".wsshoptabing.wtsdepartmentmenu").css('height',wstNewHeight+15); 96 } 97 98 99 100 101 //Check Tabing Menu Height 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
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.