• ul.mm-submenu.simple").length>0) { var submenu = jQueryBuddha(li).find(">ul.mm-submenu.simple"); } else { var submenu = jQueryBuddha(li).find(">ul.mm-submenu.tabbed"); } submenu.css({"width":"auto","left":"auto","right":"auto"}); /*submenu.removeAttr("style"); submenu.find(">li").removeAttr("style");*/ if (headerOffset*2>bodyWidth) { headerOffset = 0; } var headerWidth = bodyWidth-headerOffset*2; var itemsPerRow = 5; if (headerWidth>=1020) { /* submenu.attr("columns",5).css("width",headerWidth+"px"); */ var style = submenu.attr("columns",5).attr("style"); style += "width:"+headerWidth+"px !important;"; submenu.attr("style",style); itemsPerRow = 5; } else if (headerWidth>=816) { var style = submenu.attr("columns",4).attr("style"); style += "width:"+headerWidth+"px !important;"; submenu.attr("style",style); itemsPerRow = 4; } else if (headerWidth>=612) { var style = submenu.attr("columns",3).attr("style"); style += "width:"+headerWidth+"px !important;"; submenu.attr("style",style); itemsPerRow = 3; } else { var style = submenu.attr("columns",2).attr("style"); style += "width:"+headerWidth+"px !important;"; submenu.attr("style",style); itemsPerRow = 2; } if (jQueryBuddha(li).find(">ul.mm-submenu.tabbed").length>0) { --itemsPerRow; } /* set simple submenu boundry */ var offsetLeft = jQueryBuddha(li).offset().left+jQueryBuddha(li).outerWidth()/2; if (offsetLeft<(bodyWidth/2)) { var left = bodyWidth-(bodyWidth-jQueryBuddha(li).offset().left)-headerOffset; submenu.css("left",-left+"px"); } else { var right = bodyWidth-jQueryBuddha(li).offset().left-jQueryBuddha(li).outerWidth()-headerOffset; submenu.css("right",-right+"px"); } /* set min height for each element */ jQueryBuddha(li).find("ul.mm-submenu.simple>li").removeAttr("style"); jQueryBuddha(li).find(".mm-list-name").removeAttr("style"); /* if simple menu */ if (jQueryBuddha(li).find(">ul.mm-submenu.simple").length>0) { var rowMinHeight = 0; var mmListNameHeight = 0; jQueryBuddha(li).find("ul.mm-submenu.simple>li").each(function(i, item){ if (i%itemsPerRow==0) { rowMinHeight = 0; mmListNameHeight = 0; } if (jQueryBuddha(this).find(".mm-list-name").length>0) { if (jQueryBuddha(this).find(".mm-list-name").height()>mmListNameHeight) { mmListNameHeight = jQueryBuddha(this).find(".mm-list-name").height(); jQueryBuddha(this).find(".mm-list-name").css("height",mmListNameHeight); var previousItems = i; if (previousItems%itemsPerRow!=0) { while (previousItems%itemsPerRow!=0) { jQueryBuddha(li).find("ul.mm-submenu.simple").find(">li:nth-child("+previousItems+")").find(".mm-list-name").css("height",mmListNameHeight); previousItems--; } } } else { jQueryBuddha(this).find(".mm-list-name").css("height",mmListNameHeight); } } if (jQueryBuddha(this).outerHeight()>rowMinHeight) { if (fontSize<=14) { fontSize = 8; } else if (fontSize>14 && fontSize<=18) { fontSize += 6; } else if (fontSize>18 && fontSize<=20) { fontSize += 10; } rowMinHeight = jQueryBuddha(this).outerHeight()+fontSize; jQueryBuddha(this).css("min-height",rowMinHeight); var previousItems = i; if (previousItems%itemsPerRow!=0) { while (previousItems%itemsPerRow!=0) { jQueryBuddha(li).find("ul.mm-submenu.simple").find(">li:nth-child("+previousItems+")").css("min-height",rowMinHeight); previousItems--; } } } else { jQueryBuddha(this).css("min-height",rowMinHeight); } }); /* if tabbed menu */ } else { jQueryBuddha(li).find("ul.mm-submenu.tabbed>li").each(function(i,tab){ var rowMinHeight = 0; var mmListNameHeight = 0; jQueryBuddha(tab).find("ul.mm-submenu.simple>li").each(function(j, item){ if (j%itemsPerRow==0) { rowMinHeight = 0; mmListNameHeight = 0; } if (jQueryBuddha(this).find(".mm-list-name").length>0) { if (jQueryBuddha(this).find(".mm-list-name").height()>mmListNameHeight) { mmListNameHeight = jQueryBuddha(this).find(".mm-list-name").height(); jQueryBuddha(this).find(".mm-list-name").css("height",mmListNameHeight); var previousItems = j; if (previousItems%itemsPerRow!=0) { while (previousItems%itemsPerRow!=0) { jQueryBuddha(this).parent().find(">li:nth-child("+previousItems+")").find(".mm-list-name").css("height",mmListNameHeight); previousItems--; } } } else { jQueryBuddha(this).find(".mm-list-name").css("height",mmListNameHeight); } } if (jQueryBuddha(this).outerHeight()>rowMinHeight) { if (fontSize<=14) { fontSize = 6; } else if (fontSize>14 && fontSize<=18) { fontSize += 2; } else if (fontSize>18 && fontSize<=20) { fontSize += 6; } rowMinHeight = jQueryBuddha(this).outerHeight()+fontSize; jQueryBuddha(this).css("min-height",rowMinHeight); var previousItems = j; if (previousItems%itemsPerRow!=0) { while (previousItems%itemsPerRow!=0) { jQueryBuddha(tab).find(">ul.mm-submenu.simple").find(">li:nth-child("+previousItems+")").css("min-height",rowMinHeight); previousItems--; } } } else { jQueryBuddha(this).css("min-height",rowMinHeight); } }); }); /* add arrows */ jQueryBuddha(li).find("ul.mm-submenu.tabbed>li").addClass("fa fa-angle-right"); } } else { jQueryBuddha(li).find("ul.mm-submenu.tabbed").css({"left":"auto","right":"auto"}); var currentStyle = jQueryBuddha(li).find("ul.mm-submenu.tabbed").attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";height:auto !important;width:auto !important"; } else { newStyle += "height:auto !important;width:auto !important"; } jQueryBuddha(li).find("ul.mm-submenu.tabbed").attr("style",newStyle); jQueryBuddha(li).find("ul.mm-submenu.simple").css({"left":"auto","right":"auto"}); var currentStyle = jQueryBuddha(li).find("ul.mm-submenu.simple").attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";width:auto !important"; } else { newStyle += ";width:auto !important"; } jQueryBuddha(li).find("ul.mm-submenu.simple").attr("style",newStyle); jQueryBuddha(li).find("ul.mm-submenu.simple>li").removeAttr("style"); if (jQueryBuddha(li).width()>=700) { jQueryBuddha(li).find("ul.mm-submenu.simple").attr("columns",3); jQueryBuddha(".vertical-mega-menu ul.mm-submenu.mm-contact").attr("columns",2); } else if (jQueryBuddha(li).width()>=500) { jQueryBuddha(li).find("ul.mm-submenu.simple").attr("columns",2); jQueryBuddha(".vertical-mega-menu ul.mm-submenu.mm-contact").attr("columns",2); } else { jQueryBuddha(li).find("ul.mm-submenu.simple").removeAttr("columns"); jQueryBuddha(".vertical-mega-menu ul.mm-submenu.mm-contact").removeAttr("columns"); } } } else if (jQueryBuddha(li).find("ul.mm-submenu.tree").length>0) { jQueryBuddha(li).find("ul.mm-submenu").removeAttr("style"); var offsetLeft = jQueryBuddha(li).offset().left+jQueryBuddha(li).outerWidth()/2; if (offsetLeft<(bodyWidth/2)) { jQueryBuddha(li).find("ul.mm-submenu").removeClass("tree-open-left"); jQueryBuddha(li).find("ul.mm-submenu.tree li").removeClass("fa fa-angle-right fa-angle-left"); jQueryBuddha(li).find("ul.mm-submenu.tree li").each(function(){ if (jQueryBuddha(this).find("ul.mm-submenu").length>0) { jQueryBuddha(this).addClass("fa fa-angle-right"); } }); } else { jQueryBuddha(li).find("ul.mm-submenu").addClass("tree-open-left"); jQueryBuddha(li).find("ul.mm-submenu.tree li").removeClass("fa fa-angle-right fa-angle-left"); jQueryBuddha(li).find("ul.mm-submenu.tree li").each(function(){ if (jQueryBuddha(this).find("ul.mm-submenu").length>0) { jQueryBuddha(this).addClass("fa fa-angle-left"); } }); } } } /* when you hover over the tabs of the tabbed submenu, open their submenu + readjust the height of the tabbed submenu */ function setTabbedSubmenuBoundries(li) { if (jQueryBuddha(li).closest(".horizontal-mega-menu").length>0) { /* reset the boundries of the simple submenu, because it wasn"t visible before */ setSubmenuBoundries(jQueryBuddha(li).closest(".buddha-menu-item")); /* set the tabbed submenu height */ var currentLi = jQueryBuddha(li).parent().find(">li").index(jQueryBuddha(li)); if (jQueryBuddha(li).find(">ul.mm-submenu").length>0) { jQueryBuddha(li).find(">ul.mm-submenu").removeAttr("style"); var tabbedSubmenuHeight = jQueryBuddha(li).find(">ul.mm-submenu").outerHeight(); var tabsHeight = 0; jQueryBuddha(li).parent().find(">li").each(function(){ tabsHeight += jQueryBuddha(this).outerHeight(); }); if (tabsHeight>tabbedSubmenuHeight) { /* jQueryBuddha(li).parent().css("height",tabsHeight+"px"); */ var currentStyle = jQueryBuddha(li).parent().attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";height:"+tabsHeight+"px !important"; } else { newStyle += "height:"+tabsHeight+"px !important"; } jQueryBuddha(li).parent().attr("style",newStyle); /* jQueryBuddha(li).find(">ul.mm-submenu").css("height",tabsHeight+"px"); */ var currentStyle = jQueryBuddha(li).find(">ul.mm-submenu").attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";height:"+tabsHeight+"px !important"; } else { newStyle += "height:"+tabsHeight+"px !important"; } jQueryBuddha(li).find(">ul.mm-submenu").attr("style",newStyle); } else { /* jQueryBuddha(li).parent().css("height",tabbedSubmenuHeight+"px"); */ var currentStyle = jQueryBuddha(li).parent().attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";height:"+tabbedSubmenuHeight+"px !important"; } else { newStyle += "height:"+tabbedSubmenuHeight+"px !important"; } jQueryBuddha(li).parent().attr("style",newStyle); } } else { jQueryBuddha(li).parent().css("height","auto"); } /* set the simple submenu top */ var top = jQueryBuddha(li).parent().find(">li:nth-child("+(currentLi+1)+")").position().top; var currentStyle = jQueryBuddha(li).find(">ul.mm-submenu").attr("style"); var newStyle = ""; if (currentStyle!=undefined) { newStyle += currentStyle+";top:-"+top+"px !important"; } else { newStyle += "top:-"+top+"px !important"; } jQueryBuddha(li).find(">ul.mm-submenu").attr("style",newStyle); } else { jQueryBuddha(li).closest(".vertical-mega-menu").find(".tab-opened").removeClass("tab-opened"); /* jQueryBuddha(".tab-opened").removeClass("tab-opened"); */ } } /* set the boundries of the contact submenus */ function setContactSubmenuBoundries(li) { var bodyWidth = jQueryBuddha("body").width(); var headerOffset = 1000; if (jQueryBuddha(li).find(">ul.mm-submenu.mm-contact").length>0 && jQueryBuddha(li).closest(".horizontal-mega-menu").length>0) { /* get header offset */ jQueryBuddha(li).parent().parents().each(function(){ var offsetLeft = jQueryBuddha(this).offset().left+parseInt(jQueryBuddha(this).css("padding-left")); if (offsetLeft0) { headerOffset = offsetLeft; } }); if (headerOffset==1000) { headerOffset = 0; } if (headerOffset*2>bodyWidth) { headerOffset = 0; } /* set menu width */ var submenu = jQueryBuddha(li).find(">ul.mm-submenu.mm-contact"); var headerWidth = bodyWidth-headerOffset*2; submenu.css({"width":headerWidth+"px","left":"auto","right":"auto"}); /* set simple submenu boundry */ var offsetLeft = jQueryBuddha(li).offset().left+jQueryBuddha(li).outerWidth()/2; if (offsetLeft<(bodyWidth/2)) { var left = bodyWidth-(bodyWidth-jQueryBuddha(li).offset().left)-headerOffset; submenu.css("left",-left+"px"); } else { var right = bodyWidth-jQueryBuddha(li).offset().left-jQueryBuddha(li).outerWidth()-headerOffset; submenu.css("right",-right+"px"); } } else { jQueryBuddha(li).find("ul.mm-submenu.mm-contact").css({"left":"auto","right":"auto","width":"auto","height":"auto"}); if (jQueryBuddha(li).find(">ul.mm-submenu.mm-contact").width()<=480) { jQueryBuddha(li).find(">ul.mm-submenu.mm-contact").addClass("one-column"); } } } function addTouch() { /* jQueryBuddha(".vertical-mega-menu>li.buddha-menu-item").off(); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item").off(); */ /* when touching outside close the submenu */ touched = false; if (globalTouch) { jQueryBuddha("*").off("touchend.mm-all-dom-elements"); jQueryBuddha("*").on("touchend.mm-all-dom-elements", function (e) { if (jQueryBuddha(this).closest(".buddha-menu-item").length==0) { jQueryBuddha(".mega-hover").removeClass("mega-hover"); } /* var element = jQueryBuddha(this); if (!clicked && !touched) { touched = true; setTimeout(function(){ if (!changingPage && element.closest(".buddha-menu-item").length==0 && !element.hasClass("vertical-mega-menu") && !element.hasClass("horizontal-mega-menu")) { applyMegaMenu(); } },100); setTimeout(function(){ if (!changingPage && element.closest(".buddha-menu-item").length==0 && !element.hasClass("vertical-mega-menu") && !element.hasClass("horizontal-mega-menu")) { applyMegaMenu(); } },350); } setTimeout(function(){ touched = false; },400); */ }); } jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item").off("touchend.mm-horizontal-li"); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item").on("touchend.mm-horizontal-li", function (e) { "use strict"; var li = jQueryBuddha(this); if (li.find("ul.mm-submenu").length>0) { if (li.hasClass("mega-hover")) { return true; } else { e.preventDefault(); jQueryBuddha(".mega-hover").removeClass("mega-hover"); li.addClass("mega-hover"); setSubmenuBoundries(li); return false; } } else { return true; } }); var elementTouched = false; jQueryBuddha(".vertical-mega-menu li").off("touchstart.mm-vertical-li"); jQueryBuddha(".vertical-mega-menu li").on("touchstart.mm-vertical-li", function (e) { elementTouched = false; }); jQueryBuddha(".vertical-mega-menu li").off("touchmove.mm-vertical-li"); jQueryBuddha(".vertical-mega-menu li").on("touchmove.mm-vertical-li", function (e) { elementTouched = true; }); jQueryBuddha(".vertical-mega-menu li").off("touchend.mm-vertical-li"); jQueryBuddha(".vertical-mega-menu li").on("touchend.mm-vertical-li", function (e) { "use strict"; if (!elementTouched) { elementTouched = true; setTimeout(function(){ elementTouched = false; },300); var li = jQueryBuddha(this); if (li.find("ul.mm-submenu").length>0) { if (li.hasClass("hovering")) { return true; } else { e.preventDefault(); if (li.find(">a>.toggle-menu-btn").length>0) { li.find(">a>.toggle-menu-btn").click(); } else if (li.find(">a>span>.toggle-menu-btn").length>0) { li.find(">a>span>.toggle-menu-btn").click(); } return false; } } else { setTimeout(function(){ if (!changingPage) { li.find("a").first().click(); } },200); return true; } } }); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item>ul.mm-submenu.tabbed>li").off("touchend.mm-tab"); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item>ul.mm-submenu.tabbed>li").on("touchend.mm-tab", function (e) { "use strict"; var li = jQueryBuddha(this); if (li.find("ul.mm-submenu").length>0) { if (li.hasClass("tab-opened")) { return true; } else { e.preventDefault(); li.parent().find(">li").removeClass("tab-opened"); li.addClass("tab-opened"); setTabbedSubmenuBoundries(li); setSubmenuBoundries(li.parent().parent()); return false; } } else { return true; } }); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item>ul.mm-submenu.tree li").off("touchend.mm-tree"); jQueryBuddha(".horizontal-mega-menu>li.buddha-menu-item>ul.mm-submenu.tree li").on("touchend.mm-tree", function (e) { "use strict"; var li = jQueryBuddha(this); if (li.find("ul.mm-submenu").length>0) { if (li.hasClass("mega-hover")) { return true; } else { e.preventDefault(); li.parent().find(">li").removeClass("mega-hover"); li.addClass("mega-hover"); li.find(".mega-hover").removeClass("mega-hover"); jQueryBuddha.each(li.parents(),function(){ if (jQueryBuddha(this).prop("tagName").toLowerCase()=="li") { jQueryBuddha(this).addClass("mega-hover"); } }); setSubmenuBoundries(li); return false; } } else { return true; } }); } function getUlPath(element) { var path, node = element; var firstNode = true; while (node.length) { var realNode = node[0], name = realNode.localName; if (!name) break; name = name.toLowerCase(); var parent = node.parent(); var nthChild = ""; var sameTagSiblings = parent.children(name); if (sameTagSiblings.length > 1) { allSiblings = parent.children(); var index = allSiblings.index(realNode) + 1; if (index > 0) { nthChild = ":nth-child(" + index + ")"; } } var idClass = ""; ignoreClass = false; if (name!="body" && name!="html") { if(jQueryBuddha(realNode).prop("id").length > 0) { idClass = "#"+realNode.id; } else if (jQueryBuddha(realNode).prop("class").length > 0 && !firstNode && !ignoreClass) { /* idClass = "."+realNode.className.trim().replace(/ /g, ".").replace(".is-light", "").replace(".is-dark", "").replace(".is-complete", "").replace(".is-processing", "").replace("..",".").replace("..",".").replace("..",".").replace("..",".").replace("..","."); idClass = idClass.replace(".DomOutlineBox", "").replace(".vertical-mega-menu", "").replace(".horizontal-mega-menu", ""); */ if (jQueryBuddha(realNode).attr("class")!=undefined && jQueryBuddha(realNode).attr("class").trim()!="") { idClass = "."+jQueryBuddha(realNode).attr("class").trim().split(" ")[0]; } } } if (jQueryBuddha.inArray(name,["li","ul","header"])!==-1) { name += nthChild; } /* name += nthChild; */ firstNode = false; path = name + idClass + (path ? " azync="4u67b">" + path : ""); node = parent; } return path; } }
  • Search Cart

    Dick Taylor Craft Chocolate

    Search Cart

    Dick Taylor Craft Chocolate


    网络加速器苹果免费版
    苹果ios加速器

    "DICK TAYLOR 72 PERCENT TOLEDO FROM BELIZE. A CRISP BAR THAT FLEXES INTO TOFFEE AND GREEN BANANAS, WITH A HINT OF LEMON ON THE LONG, BRIGHT FINISH." 

    - THE NEW YORK TIMES

    "I CAN HONESTLY TELL YOU THE CHOCOLATE IS BETTER THAN EVER. SUCH GREAT FLAVOR, BUT THE TEXTURE IS MIND BLOWING. SO SILKY. HARD TO BELIEVE IT IS TWO INGREDIENT. EVEN HARDER TO BELIEVE YOU ARE IMPROVING WITH SUCH GROWTH. RARE."

    - MATT CAPUTO, CAPUTO'S MARKET

    "TASTES MAY EBB AND FLOW LIKE THE TIDES, BUT WE THINK IT IS SAFE TO SAY THAT THE CHOCOLATE BEING PRODUCED UNDER THE DICK TAYLOR LABEL AT THIS MOMENT IS THE BEST IN THE COUNTRY.​"​ .

    - SPENCER MAGAZINE

  • 苹果连接外网的永久免费  anyconnect加速器  回锅肉加速器破解版下载  可以用什么梯子  国内翻国外加速器加速器app官方下载最新版本  ssr加速器怎么配置