Arsenal

');$(this).discover("#menu-button").on('click on', characteristic()$(this).toggleClass('menu-opened');var mainmenu = $(this).next('ul');if (mainmenu.hasClass('open')) mainmenu.disguise().removeClass('open');else mainmenu.display().addClass('open');if (settings.format === "dropdown") mainmenu.discover('ul').show(););multiTg = characteristic() supermenu.discover(".has-sub").prepend('');supermenu.find('.submenu-button').on('click', function() $(this).toggleClass('submenu-opened');if ($(this).siblings('ul').hasClass('open')) $(this).siblings('ul').removeClass('open').hide();else $(this).siblings('ul').addClass('open').display(););;if (settings.format === 'multitoggle') multiTg();else supermenu.addClass('dropdown');else if (settings.layout === 'select')supermenu.append('').addClass('pick out-listing');var selectList = supermenu.discover('pick');selectList.append('' + settings.identify + '

', "selected": "decided on","fee": "");supermenu.locate('a').each(characteristic() var detail = $(this), indentation = "";for (i = 1; i ' + indentation + element.text() + ''););selectList.on('change', characteristic() window.place = $(this).discover("option:decided on").val(););if (settings.sticky === actual) supermenu.css('position', 'constant');resizeFix = function() if ($(window).width() > settings.breakpoint) supermenu.find('ul').display();supermenu.removeClass('small-display screen');if (settings.format === 'pick') supermenu.discover('choose').disguise();else supermenu.find("#menu-button").removeClass("menu-opened");if ($(window).width()750) console.log('widemenu detected');//$('.supergrid').width() = $('#menu_ul').width();$(".supergrid").every(function () if (!$(this).hasClass("avoidfull")) //pass for grid in flyoutvar that = $(this),parentWidth = $('#supermenu').width();width = that.width(),numItems = that.find(".products").period;percent = parseInt((width/parentWidth)*100, 10);//console.log(percentage + ' percent');//console.log(numItems + ' items');if(numItems>three)//var p = that;//var offset = that.offset();//p.html( "left: " + offset.left + ", top: " + offset.pinnacle );//console.log( "left: " + offset.left + ", top: " + offset.top );//fullwidththat.css("width", parentWidth + 'px');//that.css("role", 'relative');var offsetmenu = $("#supermenu").offset();//console.log( "supermenu left: " + offsetmenu.left + ", pinnacle: " + offsetmenu.pinnacle );//that.offset( left: offsetmenu.left - 9999 );//that.offset( left: -9999 );//console.log('new offest set')//that.css("width", (percentage + 1) + '%');//widerhtmlblock if existif(that.discover(".gridhtml").length) that.locate(".griddata").css("max-width", 'seventy five%');that.locate(".gridhtml").css("width", '25%'); else that.discover(".griddata").css("max-width", 'one hundred%'););//stop menufull//start align if now not seen NOT FLYOUT$('#supermenu').locate(".has-sub").on('mouseenter mouseleave', characteristic (e) //$(".has-sub li").on('mouseenter mouseleave', function (e) console.log("detected mouseenter mouseleave NOT FLYOUT");if ($('ul.submenu', this).duration) //console.log("detectedUL-Length!");//var elm = $(this); // li has subvar elm = $('ul', this); //first ul in li with sub//console.log(elm);var off = elm.offset();var l = off.left;var w = elm.width();//console.log('dropdown left offset ' + l);//console.log('dropdown width ' + w);//var docH = $(".supermenu").height();var docW = $("#supermenu").width();//console.log('superwidth ' + docW);var menubase = $("#menu_ul").offset();//console.log('menubase left offset ' + menubase.left);var arsenal fc isEntirelyVisible = (l + w - menubase.left - 10 =$("#menu_ul").width())// if fullwidth grid move to start of menuconsole.log('case1');elm.offset( left: menubase.left ); else console.log('case2');//elm.offset( left: l + w - docW + menubase.left );elm.offset( left: docW - w + menubase.left );//if now not fullwidth//$(this).addClass('alignmenu_right'); else //console.log("visible");if(l540)console.log("left offset out of doors. Attemp to set it with menu offset");console.log('dropdown left offset ' + l);console.log('dropdown width ' + w);elm.offset( left: menubase.left );//elm.removeClass('alignmenu_right');//$(this).removeClass('alignmenu_right');if(wmid )elm.css("right", $(this).width()+ "px"););$('#supermenu').find(".has-sub.productlist").on('mouseleave', feature (e) //$(".has-sub li").on('mouseenter mouseleave', characteristic (e) console.log("detected mouseenter productlist!");if ($('ul:first', this).duration) console.log("detected arsenal fc hat ul.trd!");var elm = $('ul:first', this); //first ul in li with sub//console.log(elm);var off = elm.offset();var l = off.left;var w = elm.width();var docW = $("#supermenu").width();var menubase = $("#menu_ul").offset();elm.css("right", "vehicle"););//stop align//hidemore answer start$('#greater').disguise();if(($('#supermenu').width() > 768) && (1))var item_width = $('#menu_ul > li').width();var item_count = ($( "#menu_ul > li" ).period);var nav_width_og = $('#supermenu').width();var nav_width = $('#supermenu').width();/*if ((item_width*(item_count+1)) > nav_width )//console.log('objects width=' + item_width*(item_count+1));//console.log('nav width=' + nav_width);$('#extra').appendTo('frame');$('#extra').hide();*/nav_width = $('#supermenu').width();//console.log('nav_width=' + nav_width);for(var i = zero; ili').now not('#more, .hiden').remaining().width();//item_count = ($( "#menu_ul > li" ).period);//calc all li total widthall_items_w = 0;$('#menu_ul > li').no longer('#more, .hiden').each(feature () li_width = $(this).width();all_items_w = all_items_w + li_width;);if($('#more').is(':visible'))//console.log('more detected')//$('#extra').addClass("hiden");all_items_w = all_items_w + $('#greater').width();//console.log('allliwidth=' + all_items_w);if (nav_width li').not('#more').final().appendTo($('.overflow'));$('#greater').appendTo($('#menu_ul'));$('#more').show(); */// give up hide to dropdown// begin conceal//$('#menu_ul > li').no longer("#more").last().addClass("hiden");$('#menu_ul > li').no longer("#more, .hiden").final().cover().addClass("hiden");//$('#menu_ul > li').now not('#more').closing().conceal();//$('#menu_ul > li').no longer('.hiden').ultimate().cover();//.addClass("hiden");/*$('#menu_ul > li').no longer('#more').remaining(feature(index, detail)//$("p span").first().addClass("highlight");//if($this.now not('.hiden')) //$this.addClass("hiden");console.log('hidden');//);*/$('#greater').appendTo($('#menu_ul'));$('#more').show();$('#more').click(function() //$( "#target" ).click on();$('#menu_ul > li').show();$('#more').conceal();go back false;);// end cover show$(window).resize(feature()nav_width = $('#supermenu').width();item_width = $('#menu_ul > li').width();item_count = ($( "#menu_ul > li" ).duration);if (nav_width li').not('#more').ultimate().appendTo($('.overflow'));$('#extra').appendTo($('#menu_ul'));$('#extra').show();if (nav_width>(item_width*item_count)+(item_width-1))$('.overflow li').last().appendTo($('#menu_ul'));$('#greater').appendTo($('#menu_ul'));if (nav_width == nav_width_og )$('#greater').appendTo('frame');$('#more').disguise(););/*$('#greater').click on(feature()$('.overflow').slideToggle(););*///give up View more);)(jQuery);$(window).load(function()$(characteristic () // console.log("load occasion detected!");/*$('#supermenuTMP').discover(".has-sub").on('mouseenter mouseleave', feature (e) //$(".has-sub li").on('mouseenter mouseleave', characteristic (e) console.log("detected mouseenter mouseleave!");if ($('ul:first', this).period) //console.log("detectedUL-Length!");//var elm = $(this); // li has subvar elm = $('ul:first', this); //first ul in li with subconsole.log(elm);var off = elm.offset();var l = off.left;var w = elm.width();console.log('dropdown left offset ' + l);console.log('dropdown width ' + w);//var docH = $(".supermenu").height();var docW = $("#supermenu").width();console.log('superwidth ' + docW);var menubase = $("#menu_ul").offset();var isEntirelyVisible = (l + w - menubase.left - 10

Komentar