Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''jquery''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Todas as áreas do Fórum

  • Q&A Desenvolvimento
    • Perguntas e respostas rápidas
  • Desenvolvimento e Banco de Dados
    • HTML e CSS
    • Java
    • Javascript
    • .NET
    • PHP
    • Python
    • Ruby
    • Mobile
    • Ambientes de Desenvolvimento
    • Arquitetura e Métodos Ágeis
    • Banco de Dados
    • DevOps
    • Desenvolvimento de Games
    • E-Commerce e Pagamentos Online
    • SEO e Otimizações
    • WordPress
    • Algoritmos & Outras Tecnologias
  • Design e Produto
    • Fotografia
    • Photoshop
    • Design de interfaces e UX
    • Edição/Produção de Vídeos
    • Marketing Online
    • Desenho, Ilustração e 3D
  • Entretenimento e uso pessoal
    • Geral
    • Segurança & Malwares
    • Gadgets e wearable
    • Softwares e Apps
    • Entretenimento

Encontrar resultados em...

Encontrar resultados que...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Google+


Hangouts


Skype


Twitter


deviantART


Github


Flickr


LinkedIn


Pinterest


Facebook


Site Pessoal


Localização


Interesses

Encontrado 730 registros

  1. fabio.aurelio

    Validacao de acordo com campo Nulo

    Pessoal, Tudo blz? Tenho um form com alguns campos, como por exemplo: <form method="post" action="index.php?cms=Cadastro"> <input type="text" value="<?php echo @$campo['nome']; ?>" class="inputbox" /> <input type="text" value="<?php echo @$campo['bairro']; ?>" class="inputbox" /> <input type="text" value="<?php echo @$campo['estado']; ?>" class="inputbox" /> ... .. Os campos sao obrigatórios, mas preciso que se um desses 03 campos forem preenchidos, os outros nao precisem ser Alguém tem alguma ideia? vlww!
  2. marcelocardoso

    carrousel, tamanho da imagem no CSS

    AJUDA... Segue exemplo de carrousel. Feito em Jquery, CSS, e html. 1) O mesmo funciona, porém o CSS não tem opção para aumentar o tamanho da imagem, segue código: <section class="container-fluid parallax parallax_shadow"> <div class="row"> <div id="mn_clientes" class="col-lg-12 col-md-12 col-sm-6"> <h4 class="text-left space_top10" style=""> TExto do Carrousel </h4> <div class="row"> <div class="carrousel_padrao"> <ul class="carrousel_padrao__slides"> <li class="item"><img src="../site/img.jpg"></li> <li class="item"><img src="../site/img.jpg"></li> <li class="item"><img src="../site/img.jpg"></li> </ul> <div class="carrousel_padrao__arrow carrousel_padrao__arrow--left space_top40"> <span class="fa fa-arrow-left font_24px"></span> </div> <div class="carrousel_padrao__arrow carrousel_padrao__arrow--right space_top40"> <span class="fa fa-arrow-right font_24px"></span> </div> </div> </div> </div> </div> </section> <script> $(document).ready(function() { 'use strict'; var carousel = function carousel(options) { var _carousel = { paused: false, stopped: false, options: { speed: 3000, acceleration: 5, reverse: false, selector: '.carrousel_padrao', slidesSelector: '.carrousel_padrao__slides', leftArrowSelector: '.carrousel_padrao__arrow--left', rightArrowSelector: '.carrousel_padrao__arrow--right' }, init: function init() { var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; // Copy options to this.options for (var prop in options) { if (!options.hasOwnProperty(prop)) break; this.options[prop] = options[prop]; } // Cache nodes var carousel = document.querySelector(options.selector || this.options.selector); var slides = this._slides = carousel.querySelector(this.options.slidesSelector); this._leftArrow = carousel.querySelector(this.options.leftArrowSelector); this._rightArrow = carousel.querySelector(this.options.rightArrowSelector); // Multiply speed value by the number of slides this.options.speed = this.options.speed * slides.children.length; // Set slides container width this.width = slides.offsetWidth; // Repeat elements slides.innerHTML = slides.innerHTML + slides.innerHTML + slides.innerHTML; this._registerEvents(); this._animate(); }, _registerEvents: function _registerEvents() { var _this = this; var speed = this.options.speed; var reverse = this.options.reverse; this._rightArrow.addEventListener('mouseover', function() { _this.options.speed = speed / _this.options.acceleration; _this.options.reverse = false; }); this._rightArrow.addEventListener('mouseleave', function() { _this.options.speed = speed; _this.options.reverse = reverse; }); this._leftArrow.addEventListener('mouseover', function() { _this.options.speed = speed / _this.options.acceleration; _this.options.reverse = true; }); this._leftArrow.addEventListener('mouseleave', function() { _this.options.speed = speed; _this.options.reverse = reverse; }); // Pause when cursor is over carousel this._slides.addEventListener('mouseover', this.pause.bind(this)); this._slides.addEventListener('mouseleave', this.start.bind(this)); // Pause when cursor is over carousel window.addEventListener('resize', function() { _this.width = _this._slides.offsetWidth; }); }, pause: function pause() { this.paused = true; }, start: function start() { this.paused = false; }, stop: function stop() { this.stopped = true; }, _animate: function _animate() { var _this2 = this; var slides = this._slides; var oneThird = slides.lastElementChild.getBoundingClientRect().right / 3; var framesCount = 0; var step = 0; var posX = 0; var animate = function animate() { if (!_this2.paused) { framesCount = _this2.options.speed * 60 / 1000; step = oneThird / framesCount; posX += _this2.options.reverse ? step : -step; slides.style.transform = 'translateX(' + posX + 'px)'; if (_this2.options.reverse) { if (posX >= _this2.width - oneThird) { posX = _this2.width - oneThird * 2; } } else { if (Math.abs(posX) >= oneThird * 2) { posX = -oneThird; } } }!_this2.stopped && requestAnimationFrame(animate); }; animate(); } }; _carousel.init(options); return _carousel; }; window.onload = function() { return carousel({ selector: '.carrousel_padrao' }); }; });</script> CSS: .carrousel_padrao { width: 100%; position: relative; margin-top: 20px; } .carrousel_padrao__slides { display: -webkit-box; display: -ms-flexbox; display: flex; margin: 0; padding: 0; height: auto; list-style: none; will-change: transform; } /* .carrousel_padrao .carrousel_padrao__slides > .item > img, .carrousel_padrao .carrousel_padrao__slides > .item > a > img { display: block; width: 100%; height: auto; } */ .carrousel_padrao__arrow { width: 30px; height: 30px; position: absolute; top: 70%; z-index: 1; -webkit-transform: translateY(-50%) rotate(45deg); transform: translateY(-50%) rotate(45deg); background-color: white; } .carrousel_padrao__arrow--left { left: 15px; cursor: pointer; background-color: #ff9326; border-radius: 30px; color: #ff9326; /* -webkit-box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); -moz-box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); */ } .carrousel_padrao__arrow--right { right: 15px; cursor: pointer; background-color: #ff9326; border-radius: 30px; color: #ff9326; /* -webkit-box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); -moz-box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); box-shadow: 0px 0px 8px -1px rgba(171, 171, 171, 1); */ } .carrousel_padrao__arrow--right:hover, .carrousel_padrao__arrow--left:hover { transition: 1s ease; -webkit-transition: all 100ms ease-in; -webkit-transform: scale(1.5); -ms-transition: all 100ms ease-in; -ms-transform: scale(1.5); -moz-transition: all 100ms ease-in; -moz-transform: scale(1.5); transition: all 100ms ease-in; transform: scale(1.5); } Estou com problemas no CODIGO acima, na parte que está comentado no CSS. Tentei inserir aquele código para acertar o tamanho da mensagem, mas não vai.... SUGESTÕES:::???? Obrigado.
  3. Stephanie Ferreira

    woocommerce erro carinho ajax 0

    Quando eu clico para adicionar um produto pela home, o tema abre esta pop-up pro carrinho ali no cantinho: http://prntscr.com/jjixa1 Mas o link cai pra este: https://kitboxclub.com.br/wp-admin/admin-ajax.php Pelo que entendi do código, é um problema de jQuery e eu não entendo nada de jQuery, o tema da loja é http://nitro.woorockets.com/ Isso foi feito pelo antigo desenvolvedor que passou a perna na gente e eu sou a designer que ta tentando arrumar.. SOCORRO? A página que eu preciso de ajuda: https://kitboxclub.com.br/ var isLocalStorageSupported=function(){var c="test",b=window.sessionStorage;try{b.setItem(c,"1");b.removeItem(c);return true}catch(a){return false}};(function(E){E.WR=E.WR||{};E.function_rotate_device={};E.fn.WR_ImagesLoaded=function(ad){var ab=function(af,ag){var ae=new Image;ae.onload=ag;ae.src=af};var aa=this.find("img").toArray().map(function(ae){return ae.src});if(aa.length){var ac=0;E(aa).each(function(ae,af){ab(af,function(){ac++;if(ac==aa.length){ad()}})})}else{ad()}};E.fn.WR_ImagesLazyload=function(af,ah){var ac=E(window),aa=af||0,ab=window.devicePixelRatio>1,ad=ab?"data-src-retina":"data-src-lazyload",ag=this,ae;this.one("WR_ImagesLazyload",function(){var aj=this.getAttribute(ad);aj=aj||this.getAttribute("data-src-lazyload");if(aj){this.setAttribute("src",aj);if(typeof ah==="function"){ah.call(this)}}});function ai(){var aj=ag.filter(function(){var al=E(this);if(al.is(":hidden")){return}var ak=ac.scrollTop(),an=ak+ac.height(),ao=al.offset().top,am=ao+al.height();return am>=ak-aa&&ao<=an+aa});ae=aj.trigger("WR_ImagesLazyload");ag=ag.not(ae)}ac.on("scroll.WR_ImagesLazyload resize.WR_ImagesLazyload lookup.WR_ImagesLazyload",ai);ai();return this};var D=function(){return(/Android|iPhone|iPad|iPod|BlackBerry/i).test(navigator.userAgent||navigator.vendor||window.opera)};function v(ab,ac){var aa=false;E.each(ab,function(ad,ae){if(ae.name==ac){aa=true;return}});return aa}function l(aa,ac,ab){E.each(aa,function(ad,ae){if(ae.name==ac){aa.push({name:ab,value:ae.value});delete aa[ad]}});return aa}function J(aa){var ab={};E.each(aa,function(ac,ad){if(ad!=undefined){ab[ad.name]=ad.value}});return ab}function w(ac){if(typeof ac!="string"||ac.search("&")==-1){return false}var ae={},ab,aa,ad;ab=ac.split("&");for(ad=0;ad<ab.length;ad++){aa=ab[ad].split("=");ae[aa[0]]=decodeURIComponent(aa[1])}return ae}function q(){E(".hb-search .open.show-full-screen").on("click",function(){var ai=E(this);var ae=ai.parents(".hb-search");var ac=ae.find(".hb-search-fs")[0].outerHTML;E("body").append(ac);var ad=E(this).attr("data-background-style");var af=E(this).attr("data-layout");var ag=E("body > .hb-search-fs");if(af=="topbar"&&E(this).hasClass("active-topbar")){aa()}else{switch(af){case"full-screen":ag.fadeIn(300);E("html").addClass("no-scroll");break;case"topbar":var ah=E("#wpadminbar");var ab=ah.length?ah.height():"0";E(this).addClass("active-topbar");ag.css({display:"block",top:(ab-80)+"px"}).animate({top:ab+"px"});E("body > .wrapper-outer").css({position:"relative",top:"0px"}).animate({top:"80px"});break}ag.addClass(ad+" "+af);ag.find(".close").attr("data-layout",af);ag.find("form input").focus()}});function aa(){var ae=E("body > .hb-search-fs .close");var ac=ae.attr("data-layout");switch(ac){case"full-screen":E("body > .hb-search-fs").fadeOut(300,function(){E("html").removeClass("no-scroll");E("body > .hb-search-fs").remove();E("body > .wrapper-outer").removeAttr("style")});break;case"topbar":var ad=E("#wpadminbar");var ab=ad.length?ad.height():"0";E("body > .hb-search-fs").animate({top:(ab-80)+"px"},function(){E(this).remove()});E("body > .wrapper-outer").animate({top:"0px"},function(){E(this).removeAttr("style")});break}E(".header .hb-search").find(".open.active-topbar").removeClass("active-topbar")}E("body").on("click",".hb-search-fs .close",function(){aa()});E(".header .hb-search.dropdown .open").click(function(){var ai=E(this);var an=ai.closest(".hb-search");var ae=an.find(".search-form:first");var ah=E(".header .hb-search.dropdown").index(an);var ak=an[0].getBoundingClientRect();var ao=parseInt(an.css("borderTopWidth"));var aq=parseInt(an.css("borderBottomWidth"));E(".header .hb-search.dropdown:not(:eq("+ah+"))").removeClass("active-dropdown");if(an.hasClass("active-dropdown")){an.removeClass("active-dropdown");ae.removeClass("set-width")}else{S(ai,".hb-search",function(at){an.removeClass("active-dropdown");ae.removeClass("set-width")});ae.removeAttr("style");var ac=E(window).width();if(ae.width()>(ac-10)){ae.css("width",(ac-10));ae.addClass("set-width")}var ac=E(window).width();var ad=ae[0].getBoundingClientRect();var ab=ai[0].getBoundingClientRect();var ar=(ac>1024)?parseInt(WR_Data_Js.offset):0;if(ac<(ad.right+5)){var am=(ad.right+5+ar)-ac;ae.css("left",-am+"px")}else{if(ad.left<(5+ar)){ae.css("left","5px")}}var al=(an.attr("data-margin-top")=="empty")?an.attr("data-margin-top"):parseInt(an.attr("data-margin-top"));if(ai.closest(".sticky-row-scroll").length||al=="empty"){var af=ai.closest((ai.closest(".sticky-row-scroll").length?".sticky-row":".hb-section-outer"))[0].getBoundingClientRect();var aj=parseInt((af.bottom-ak.bottom)+(ak.height-ao));ae.css("top",aj)}else{if(al>0){ae.css("top",(al+(ak.height-(ao+aq))))}}an.addClass("active-dropdown");var ap=an.find(".wrls-form");if(ap.length){var ag=an.find(".cate-search-outer").width()}setTimeout(function(){an.find(".txt-search").focus()},300)}});E(".header .hb-search.expand-width .open").on("click",function(ao){var an=E(this);var ar=an.closest(".hb-search");var ae=ar.find(".search-form form");var af=ae[0].getBoundingClientRect();var al=af.width;var ap=an.closest(".header");var aj=ap.hasClass("vertical-layout");var au=true;if(ar.hasClass("expan-width-active")){ae.stop(true,true).css({overflow:"hidden"}).animate({width:"0px"},200,function(){ar.removeClass("expan-width-active");ae.removeAttr("style");var aw=an.closest(".container").find(".hide-expand-search");aw.css("visibility","").animate({opacity:1},200,function(){aw.removeClass("hide-expand-search");E(this).css("opacity","")})})}else{S(an,".hb-search",function(aw){ae.stop(true,true).css({overflow:"hidden"}).animate({width:"0px"},200,function(){ar.removeClass("expan-width-active");ae.removeAttr("style");var ax=an.closest(".container").find(".hide-expand-search");ax.css("visibility","").animate({opacity:1},200,function(){ax.removeClass("hide-expand-search");E(this).css("opacity","")})})});var ab=an[0].getBoundingClientRect();var ak=ab.left+ab.width/2;var ah=document.body.offsetWidth;var av=ar.outerWidth();if(aj){var am=ar[0].getBoundingClientRect();var aq=ap[0].getBoundingClientRect();if(ap.hasClass("left-position-vertical")){au=(am.left-aq.left-10)>=af.width?false:true}else{au=(aq.right-am.right-10)>=af.width?true:false}}else{au=ak*2<ah}if(au){var at=ar.nextUntil();if(at.length){var ad=0;var ai=function(){ae.stop(true,true).css({left:av+5,width:0,overflow:"hidden",visibility:"initial"}).animate({width:al},200,function(){E(this).css("overflow","")})};if(!aj){at.each(function(aw,ax){if(ad<al){E(ax).animate({opacity:0},200,function(){E(ax).css("visibility","hidden")});E(ax).addClass("hide-expand-search")}ad+=E(ax).outerWidth(true);if(ad>al){return false}});setTimeout(ai,200)}else{ai()}}else{ae.stop(true,true).css({left:av+5,width:0,overflow:"hidden",visibility:"initial"}).animate({width:al},200,function(){E(this).css("overflow","")})}}else{var ag=ar.prevUntil();if(ag.length){var ac=0;var ai=function(){ae.stop(true,true).css({right:av+5,width:0,overflow:"hidden",visibility:"initial"}).animate({width:al},200,function(){E(this).css("overflow","")})};if(!aj){ag.each(function(aw,ax){if(ac<al){E(ax).animate({opacity:0},200,function(){E(ax).css("visibility","hidden")});E(ax).addClass("hide-expand-search")}ac+=E(ax).outerWidth(true);if(ac>al){return false}});setTimeout(ai,200)}else{ai()}}else{ae.stop(true,true).css({right:av+5,width:0,overflow:"hidden",visibility:"initial"}).animate({width:al},200,function(){E(this).css("overflow","")})}}ar.addClass("expan-width-active");setTimeout(function(){ar.find(".txt-search").focus()},300)}});E(".header .hb-search.boxed .open").on("click",function(){var ac=E(this);var ab=ac.parents(".hb-search");ab.find('input[type="submit"]').trigger("click")})}function r(){E(".hb-cart.sidebar").click(function(){var aj=E(this);var an=aj.find(".cart-control-sidebar");var al=aj.find(".hb-minicart")[0].outerHTML;if(!E("body > .hb-cart-outer").length){E("body").append('<div class="hb-cart-outer"></div>')}E("body > .hb-cart-outer").html('<span class="wr-close-mobile"><span></span></span>'+al);if(!E("body > .overlay-sidebar").length){var am=E('<div class="overlay-sidebar"></div>').click(function(){aa(E(this))});E("body").append(am)}E("html").addClass("no-scroll");var af=an.attr("data-animation");var ai=an.attr("data-position");var ag=E("body > .overlay-sidebar");var ad=E("body > .wrapper-outer");var ah=E(".hb-cart-outer .hb-minicart");var ao=E(".hb-cart-outer .hb-minicart .widget_shopping_cart_content");ag.addClass("active").attr("data-animation",af).attr("data-position",ai);ah.attr("style","");ad.attr("style","");ag.attr("style","");ao.attr("style","");ag.css({display:"block"}).animate({opacity:1});ah.addClass(ai);ah.css("opacity",1);var ak=ah[0].getBoundingClientRect();var ae=function(){var at=E(".hb-cart-outer .widget_shopping_cart_content > .cart_list-outer");var av=E(".hb-cart-outer .hb-minicart").width();var au=at.width();var ax=E(".hb-cart-outer .widget_shopping_cart_content > .price-checkout").outerWidth(true);if(av<(au+ax)){var ar=E(".hb-cart-outer");var aw=E(".hb-cart-outer .cart_list-outer");var at=E(".hb-cart-outer .cart_list");ar.addClass("cart-slider");var ay=av-ax;var aq=at.width();var ap=parseInt(((aq-ay)+50)/80)+1;ar.attr("data-items",ap);aw.width(ay);aw.prepend('<div class="control"><div class="prev control-item"><div class="prev-inner control-inner"></div></div><div class="disabled next control-item"><div class="next-inner control-inner"></div></div></div>')}};switch(ai){case"position-sidebar-right":ah.css({visibility:"visible",right:"-"+ak.width+"px"}).animate({right:"0px"});if(af=="sidebar-push"||af=="sidebar-fall-down"||af=="sidebar-fall-up"){ad.css({position:"relative",right:"0px"}).animate({right:ak.width+"px"})}switch(af){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ao.css({position:"relative",top:"-300px"}).animate({top:"0px"});break;case"sidebar-fall-up":ao.css({position:"relative",top:"300px"}).animate({top:"0px"});break}break;case"position-sidebar-left":ah.css({visibility:"visible",left:"-"+ak.width+"px"}).animate({left:"0px"});if(af=="sidebar-push"||af=="sidebar-fall-down"||af=="sidebar-fall-up"){ad.css({position:"relative",left:"0px"}).animate({left:ak.width+"px"})}switch(af){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ao.css({position:"relative",top:"-300px"}).animate({top:"0px"});break;case"sidebar-fall-up":ao.css({position:"relative",top:"300px"}).animate({top:"0px"});break}break;case"position-sidebar-top":ah.addClass("active");if(af=="sidebar-slide-in-on-top"||af=="sidebar-push"||af=="sidebar-fall-down"){ah.css({visibility:"visible",transform:"translate(0%, -100%)"}).animate({transform:"translate(0%, 0%)"})}ae();switch(af){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ao.css({position:"relative",top:"-150px",opacity:0}).animate({top:"0px",opacity:1});break;case"sidebar-fall-up":ah.css({overflow:"hidden",visibility:"visible",transform:"translate(0%, -100%)"}).animate({transform:"translate(0%, 0%)"},function(){E(this).css("overflow","")});ao.css({position:"relative",top:"150px",opacity:0}).animate({top:"0px",opacity:1});break}break;case"position-sidebar-bottom":if(af=="sidebar-slide-in-on-top"||af=="sidebar-push"||af=="sidebar-fall-up"){ah.css({visibility:"visible",transform:"translate(0%, 100%)"}).animate({transform:"translate(0%, 0%)"})}ae();switch(af){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ah.css({overflow:"hidden",visibility:"visible",transform:"translate(0%, 100%)"}).animate({transform:"translate(0%, 0%)"},function(){ah.css("overflow","")});ao.css({position:"relative",top:"-150px",opacity:0}).animate({top:"0px",opacity:1});break;case"sidebar-fall-up":ao.css({position:"relative",top:"150px",opacity:0}).animate({top:"0px",opacity:1});break}break}});function aa(ak){ak.removeClass("active");var ah=ak.attr("data-animation");var ad=ak.attr("data-position");var ae=E(".hb-cart-outer .hb-minicart .widget_shopping_cart_content");var ai=E(".active-icon-cart-sidebar");var af=E(".hb-cart-outer .hb-minicart");var aj=E("body > .wrapper-outer");ak.animate({opacity:0},function(){ak.hide()});setTimeout(function(){E(".hb-cart.sidebar .hb-minicart").html(E("body > .hb-cart-outer .hb-minicart").html()).find("input.edit-number").each(function(al,am){if(parseInt(E(am).data("value-old"))&&E(am).attr("value")!=E(am).data("value-old")){E(am).attr("value",E(am).data("value-old"))}});E("body > .hb-cart-outer").remove();ak.remove();E("html").removeClass("no-scroll");aj.removeAttr("style")},500);var ag=af[0].getBoundingClientRect();switch(ad){case"position-sidebar-right":af.animate({right:"-"+ag.width+"px"});if(ah=="sidebar-push"||ah=="sidebar-fall-down"||ah=="sidebar-fall-up"){aj.animate({right:"0px"})}switch(ah){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ae.animate({top:"-300px"});break;case"sidebar-fall-up":ae.animate({top:"300px"});break}break;case"position-sidebar-left":af.animate({left:"-"+ag.width+"px"});if(ah=="sidebar-push"||ah=="sidebar-fall-down"||ah=="sidebar-fall-up"){aj.animate({left:"0px"})}switch(ah){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ae.animate({top:"-300px"});break;case"sidebar-fall-up":ae.animate({top:"300px"});break}break;case"position-sidebar-top":E(".hb-cart-outer .hb-minicart .action-top-bottom").remove();if(ah=="sidebar-slide-in-on-top"||ah=="sidebar-push"||ah=="sidebar-fall-down"){af.animate({top:"-120px"})}if(ah=="sidebar-push"||ah=="sidebar-fall-down"||ah=="sidebar-fall-up"){aj.animate({top:"0px"})}switch(ah){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":ae.animate({top:"-150px",opacity:0});break;case"sidebar-fall-up":af.css("overflow","hidden").animate({top:"-120px"},function(){E(this).css("overflow","")});ae.animate({top:"150px",opacity:0});break}break;case"position-sidebar-bottom":E(".hb-cart-outer .hb-minicart .action-top-bottom").remove();if(ah=="sidebar-slide-in-on-top"||ah=="sidebar-push"||ah=="sidebar-fall-up"){af.animate({bottom:"-120px"})}if(ah=="sidebar-push"||ah=="sidebar-fall-down"||ah=="sidebar-fall-up"){aj.animate({bottom:"0px"})}switch(ah){case"sidebar-slide-in-on-top":break;case"sidebar-push":break;case"sidebar-fall-down":af.css("overflow","hidden").animate({bottom:"-120px"},function(){E(this).css("overflow","initial")});ae.animate({top:"-150px",opacity:0});break;case"sidebar-fall-up":ae.animate({top:"150px",opacity:0});break}break}setTimeout(function(){aj.removeAttr("style");af.removeAttr("style");E(".hb-cart-outer .hb-minicart").removeAttr("style");ae.removeAttr("style");ak.removeAttr("style")},500)}if(E.fn.hoverIntent){E("body").hoverIntent({over:function(){var aj=E(this);var am=aj.find(".hb-minicart-outer:first");var ah=aj.find(".link-cart:first")[0].getBoundingClientRect();am.removeAttr("style");var ad=am[0].getBoundingClientRect();var ag=E(window).width(),ak=E(window).height();var aq=(ag>1024)?parseInt(WR_Data_Js.offset):0;if(ag<(ad.right+5+aq)){var an=((ad.right+5)-ag)+aq;am.css("left",-an+"px")}else{if(ad.left<(5+aq)){am.css("left","5px")}}aj.addClass("active-dropdown");var al=(aj.attr("data-margin-top")=="empty")?aj.attr("data-margin-top"):parseInt(aj.attr("data-margin-top"));if(aj.closest(".sticky-row-scroll").length||al=="empty"){var af=aj[0].getBoundingClientRect();var ap=aj.closest((aj.closest(".sticky-row-scroll").length?".sticky-row":".hb-section-outer"))[0].getBoundingClientRect();var ao=parseInt(ap.bottom-ah.bottom);var ai=parseInt(ap.bottom-ah.top);if(aj.find(".hover-area").length==0){aj.append('<span class="hover-area" style="height:'+ao+'px"></span>')}am.css("top",ai)}else{if(al>0){if(aj.find(".hover-area").length==0){aj.append('<span class="hover-area" style="height:'+al+'px"></span>')}var af=aj[0].getBoundingClientRect();am.css("top",(al+ah.height))}}ad=am[0].getBoundingClientRect();if(ad.bottom>ak){var ae=ad.height-(ad.bottom-ak)-5;am.css({overflowY:"scroll",height:ae})}},out:function(){var ad=E(this);ad.removeClass("active-dropdown");ad.find(".hover-area").remove()},timeout:0,sensitivity:1,interval:0,selector:".hb-cart.dropdown"})}E("body").on("click",".hb-cart-outer.cart-slider .control .prev",function(){var ah=E(this);var af=ah.closest(".hb-cart-outer");var ae=parseInt(af.attr("data-items"));if(af.attr("data-item")>=ae){return}var ag=(af.attr("data-item")==undefined)?1:(parseInt(af.attr("data-item"))+1);var ad=af.find(".cart_list");af.attr("data-item",ag);ad.css("right",-(ag*80));if(ae==ag){ah.addClass("disabled")}E(".hb-cart-outer.cart-slider .control .next").removeClass("disabled")});E("body").on("click",".hb-cart-outer.cart-slider .control .next",function(){var ag=E(this);var ae=ag.closest(".hb-cart-outer");if(ae.attr("data-item")==undefined||ae.attr("data-item")==0){return}var af=parseInt(ae.attr("data-item"))-1;var ad=ae.find(".cart_list");ae.attr("data-item",af);if(af==0){ag.addClass("disabled")}E(".hb-cart-outer.cart-slider .control .prev").removeClass("disabled");ad.css("right",-(af*80))});E("body").on("click",".widget_shopping_cart_content .remove-item .remove",function(af){af.preventDefault();var ag=E(this),ae=ag.closest(".hb-minicart"),ad=ag.attr("data-product_id");ag.addClass("loading");E.ajax({type:"POST",url:WRAjaxURL,data:{action:"wr_product_remove",cart_item_key:ad},success:function(aj){if(aj){aj=E.parseJSON(aj);if(ae.hasClass("position-sidebar-top")||ae.hasClass("position-sidebar-bottom")){var ah=ag.closest(".cart-slider");if(ah.length){var ai=parseInt(ah.attr("data-items"));ah.attr("data-items",(ai-1));if(ai==1){ah.removeClass("cart-slider");ah.find(".cart_list-outer").removeAttr("style")}}E('li[data-key="'+ad+'"]').hide(300,function(){E('li[data-key="'+ad+'"]').remove()})}else{E('li[data-key="'+ad+'"]').slideUp(300,function(){E('li[data-key="'+ad+'"]').remove()})}if(E(".mini-price").length){E(".mini-price").html(aj.price_total)}if(E(".hb-cart .cart-control .count").length){E(".hb-cart .cart-control .count").html(aj.count_product)}if(aj.count_product==0){if(E(".hb-minicart .total").length){E(".hb-minicart .total").hide()}if(E(".hb-minicart .buttons").length){E(".hb-minicart .buttons").hide()}if(!E(".hb-minicart .product_list_widget .empty").length){E(".hb-minicart .product_list_widget").append('<li class="empty">'+aj.empty+"</li>")}}}}})});E(document).ajaxComplete(function(af,aj,ae){var ad=ae.url;var ah=(typeof ae.data!="undefined")?ae.data:"";if(ad.search("wc-ajax=add_to_cart")!=-1){if(!isLocalStorageSupported()){return window.location.reload()}if(ae.data!=undefined&&aj.responseJSON!=undefined&&aj.responseJSON.cart_hash!=undefined){var ak=w(ae.data);E.ajax({type:"POST",url:WRAjaxURL,data:{action:"wr_add_to_cart_message",product_id:ak.product_id},success:function(an){if(an.message==undefined){return false}E("body > .wr-notice-cart-outer").remove();var al='<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">'+an.message+"</div></div></div>";E("body").append(al);var am=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(am);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},"10");setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},"5000")}})}else{if(ae.data!=undefined&&aj.responseJSON!=undefined&&aj.responseJSON.error==true){E.ajax({type:"POST",url:WRAjaxURL,data:{action:"wr_add_to_cart_error"},success:function(an){if(an.message==undefined){return false}E("body > .wr-notice-cart-outer").remove();var al='<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">'+an.message+"</div></div></div>";E("body").append(al);var am=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(am);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},"10");setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},"5000")}})}}}if(ae.data!=undefined){var ak=w(ae.data);if(ak.action=="add_to_wishlist"){E("body > .wr-notice-cart-outer").remove();var ag='<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="fa fa-heart-o"></i></div><div class="text-notice"><div> '+aj.responseJSON.message+' </div><a class="db" href="'+aj.responseJSON.wishlist_url+'">'+WR_Data_Js["View Wishlist"]+"</a></div></div></div>";E("body").append(ag);var ai=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(ai);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},"10");setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},"5000")}}if(ae.data!=undefined){var ak=w(ae.data);if(ad.search("wc-ajax=add_to_cart")!=-1&&ak.remove_from_wishlist_after_add_to_cart!=undefined){E(".woocommerce-message").hide();setTimeout(function(){if(E(".wishlist_table tbody tr").length<=1){E(".wishlist_table").remove();E("#yith-wcwl-form").addClass("empty")}},1000)}}});E(document.body).on("wc_fragments_loaded wc_fragments_refreshed added_to_cart",function(){if(isLocalStorageSupported()){if(window.wc_cart_fragments_params!==undefined&&wc_cart_fragments_params.fragment_name!==undefined){var ad=E.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name));if(ad&&typeof ad.wr_total_price!="undefined"&&typeof ad.wr_count_item!="undefined"){E(".hb-cart .cart-control .count").html(ad.wr_count_item);E(".mini-price").html(ad.wr_total_price)}}}});var ac;E("body").on("blur change",".widget_shopping_cart_content .edit-number",function(){var ak=E(this),ag=ak.closest(".mini_cart_item"),af=ag.attr("data-key"),ae=ak.val(),ad=ak.closest(".hb-minicart").attr("data-slidebar-position"),aj=ak.attr("data-max"),ai=ak.attr("data-value-old"),ah=ag.find(".multiplication");ah.removeClass("loading");if(ac){clearTimeout(ac)}ac=setTimeout(function(){if(ae==""||ae==0||ai==ae){return}if(aj&&parseInt(ae)>parseInt(aj)){var al=WR_Data_Js.wr_error_cannot_add,al=al.replace(/%d/g,aj);alert(al);return}ah.addClass("loading");E.ajax({type:"POST",url:WR_CART_URL,data:{"wr-action-cart":"update_cart",cart_item_key:af,cart_item_number:ae},success:function(am){if(am.count_product==0){if(E(".hb-minicart .total").length){E(".hb-minicart .total").hide()}if(E(".hb-minicart .buttons").length){E(".hb-minicart .buttons").hide()}if(!E(".hb-minicart .product_list_widget .empty").length){E(".hb-minicart .product_list_widget").append('<li class="empty">'+am.empty+"</li>")}}if(E(".mini-price").length){E(".mini-price").html(am.price_total)}if(E(".hb-cart .cart-control .count").length){E(".hb-cart .cart-control .count").html(am.count_product)}ah.removeClass("loading");ak.attr("data-value-old",ae)}})},50)});if(WR_Data_Js.ajax_add_to_cart_single!="no"||parseInt(WR_Data_Js.buy_now_button_enabled)){E(window).load(function(){var ad=document.querySelector("form.cart"),af;if(ad){af=E._data(ad,"events");E.WR.form_add_to_cart_events={};for(var ah in af){if(["click","submit"].indexOf(ah)<0){continue}E.WR.form_add_to_cart_events[ah]=[];for(var ae=0;ae<af[ah].length;ae++){if(ah=="click"){var ag=E(ad).find(af[ah][ae].selector);if(ag[0]&&ag[0].type!="submit"){continue}}E.WR.form_add_to_cart_events[ah].push({handler:af[ah][ae].handler,selector:af[ah][ae].selector})}for(var ae=0,ai=E.WR.form_add_to_cart_events[ah].length;ae<ai;ae++){E("form.cart").off(ah,E.WR.form_add_to_cart_events[ah][ae].selector,E.WR.form_add_to_cart_events[ah][ae].handler)}}E("form.cart").on("submit",function(aj){if(E.WR.form_add_to_cart_processing){aj.preventDefault()}})}});E("body").on("click",".quickview-modal form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button",function(ad){ad.preventDefault();ad.stopPropagation();var ae=E(this);window.wr_add_to_cart_ajax(ae,ad)});E("form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button").click(function(ad){var ae=E(this);ad.preventDefault();if(!E.WR.form_add_to_cart_processing){E.WR.form_add_to_cart_processing=true;if(typeof yith_wapo_general!="undefined"){setTimeout(function(){if(yith_wapo_general.do_submit){window.wr_add_to_cart_ajax(ae,ad)}},100)}else{window.wr_add_to_cart_ajax(ae,ad)}}else{ad.stopPropagation()}});E(".floating-add-to-cart .floating_button").click(function(ad){ad.preventDefault();ad.stopPropagation();var ae=E(this);E("form.cart .single_add_to_cart_button").trigger("click")});window.wr_add_to_cart_ajax=function(ai,af,an){var am=ai.closest("form"),ad=am.serializeArray(),aj=E(".floating-add-to-cart .floating_button"),ae=function(at){var at=at.match(/<script id="tp-notice-html"[^>]*>(\{"status":[^\r\n]+\})<\/script>/);if(!at){E.ajax({type:"POST",url:WRAjaxURL,data:{product_id:ad["add-to-cart"],action:"wr_add_to_cart_message",url_only:"true"},success:function(au){if(au!=undefined){window.location=au;return}}});return}at=E.parseJSON(at[1]);if(typeof an=="function"){return an(at)}if(at.status=="true"){if(at.redirect!=undefined){window.location=at.redirect;return}E("body > .wr-notice-cart-outer").remove();var ao=at.notice;ao=ao.replace(/&quot;/g,'"');var ap=ao.match(/<a[^>]+>.?[^<]*<\/a[^>]*>/)[0];ao.replace(/(<a[^>]+>.?[^<]*<\/a[^>]*>)(.*$)/);ao=ao.replace(/(<a[^>]+>.?[^<]*<\/a[^>]*>)(.*$)/,"$2");ao=ao.replace(/(".?[^"]*")(.*)/,"<div><b>$1</b>$2</div>");at.notice=ap+ao;var aq='<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">'+at.notice+"</div></div></div>";E("body").append(aq);var ar=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(ar);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},10);setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},500);ai.addClass("added");aj.addClass("added");E(document.body).trigger("updated_wc_div")}else{if(at.status=="false"){E("body > .wr-notice-cart-outer").remove();var aq='<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">'+at.notice+"</div></div></div>";E("body").append(aq);var ar=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(ar);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},10);setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},5000);ai.addClass("error");aj.addClass("error")}}ai.removeClass("loading");ai.prop("disabled",false);aj.removeClass("loading");aj.prop("disabled",false)};ai.prop("disabled",true);ai.addClass("loading");ai.removeClass("added error");aj.addClass("loading");aj.removeClass("added error");if(!am.find('input[name="wr-action-cart"]').length){am.append('<input type="hidden" name="wr-action-cart" value="add_to_cart" />')}for(var ak in E.WR.form_add_to_cart_events){for(var ah=0;ah<E.WR.form_add_to_cart_events[ak].length;ah++){if(E.WR.form_add_to_cart_events[ak][ah].handler){var al=ai.closest("form");if(E.WR.form_add_to_cart_events[ak][ah].selector){al=al.find(E.WR.form_add_to_cart_events[ak][ah].selector)}if(al.length){E.WR.form_add_to_cart_events[ak][ah].handler.call(al[0],af)}}}}if(!isLocalStorageSupported()){am.append('<input type="hidden" name="add_to_cart_normally" value="1" />')}else{var ag=E("iframe#wr_nitro_add_to_cart_iframe");if(!ag.length){ag=E("<iframe />",{id:"wr_nitro_add_to_cart_iframe",name:"wr_nitro_add_to_cart_iframe",src:"about:blank"}).css({position:"absolute",top:ai.offset().top+"px",left:ai.offset().left+"px",width:ai.outerWidth()+"px",height:ai.outerHeight()+"px",opacity:0,visibility:"hidden"});E(document.body).append(ag)}ag.show().off("load").on("load",function(ao){ae(typeof ao.target.contentDocument.documentElement.outerHTML!="undefined"?ao.target.contentDocument.documentElement.outerHTML:ao.target.contentDocument.documentElement.innerHTML);ag.hide()});am.attr("target","wr_nitro_add_to_cart_iframe")}E.WR.form_add_to_cart_processing=false;am.submit()}}E("body").on("show_variation","form.cart.variations_form",function(af,ae,ad){af.preventDefault();var ag=E(this);if(ad){ag.find(".single_buy_now").removeAttr("disabled").removeClass("disabled");ag.find(".single_add_to_cart_button").removeAttr("disabled").removeClass("disabled");ag.find(".woocommerce-variation-add-to-cart").removeAttr("disabled").removeClass("disabled");E(".floating-add-to-cart button").removeAttr("disabled");ag.find(".single_buy_now").removeClass("wr-notice-tooltip");ag.find(".single_buy_now .notice-tooltip").remove();ag.find(".single_add_to_cart_button").removeClass("wr-notice-tooltip");ag.find(".single_add_to_cart_button .notice-tooltip").remove();ag.find(".woocommerce-variation-add-to-cart").removeClass("wr-notice-tooltip");ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").remove();E(".floating-add-to-cart button").removeClass("wr-notice-tooltip");E(".floating-add-to-cart button .notice-tooltip").remove()}else{ag.find(".single_buy_now").attr("disabled","disabled").addClass("disabled");ag.find(".single_add_to_cart_button").attr("disabled","disabled").addClass("disabled");ag.find(".woocommerce-variation-add-to-cart").attr("disabled","disabled").addClass("disabled");E(".floating-add-to-cart button").attr("disabled","disabled").addClass("disabled");if(ag.find(".single_buy_now .notice-tooltip").length==0){ag.find(".single_buy_now").addClass("wr-notice-tooltip");ag.find(".single_buy_now").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(ag.find(".single_add_to_cart_button .notice-tooltip").length==0){ag.find(".single_add_to_cart_button").addClass("wr-notice-tooltip");ag.find(".single_add_to_cart_button").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").length==0){ag.find(".woocommerce-variation-add-to-cart").addClass("wr-notice-tooltip");ag.find(".woocommerce-variation-add-to-cart").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(E(".floating-add-to-cart button .notice-tooltip").length==0){E(".floating-add-to-cart button").addClass("wr-notice-tooltip");E(".floating-add-to-cart button").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}}});E("body").on("hide_variation","form.cart.variations_form",function(af,ae,ad){af.preventDefault();var ag=E(this);ag.find(".single_buy_now").attr("disabled","disabled").addClass("disabled");ag.find(".single_add_to_cart_button").attr("disabled","disabled").addClass("disabled");ag.find(".woocommerce-variation-add-to-cart").attr("disabled","disabled").addClass("disabled");E(".floating-add-to-cart button").attr("disabled","disabled").addClass("disabled");if(ag.find(".single_buy_now .notice-tooltip").length==0){ag.find(".single_buy_now").addClass("wr-notice-tooltip");ag.find(".single_buy_now").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(ag.find(".single_add_to_cart_button .notice-tooltip").length==0){ag.find(".single_add_to_cart_button").addClass("wr-notice-tooltip");ag.find(".single_add_to_cart_button").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").length==0){ag.find(".woocommerce-variation-add-to-cart").addClass("wr-notice-tooltip");ag.find(".woocommerce-variation-add-to-cart").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}if(E(".floating-add-to-cart button .notice-tooltip").length==0){E(".floating-add-to-cart button").addClass("wr-notice-tooltip");E(".floating-add-to-cart button").append('<span class="notice-tooltip">'+WR_Data_Js.wr_noice_tooltip+"</span>")}});var ab=function(ae){var ai=function(al){if(al.status=="true"){var am=WR_Data_Js.checkout_url;if(parseInt(WR_Data_Js.buy_now_button_action)==2){window.location.href=am}else{if(am.indexOf("?")>-1){am=am+"&wr-buy-now=check-out"}else{am=am+"?wr-buy-now=check-out"}if(typeof E.fn.magnificPopup!="undefined"){E.magnificPopup.close();setTimeout(function(){E.magnificPopup.open({items:{src:am},type:"iframe",mainClass:"mfp-fade wr-buy-now"})},100)}}E(document.body).trigger("updated_wc_div")}else{if(al.status=="false"){E("body > .wr-notice-cart-outer").remove();var aj='<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">'+al.notice+"</div></div></div>";E("body").append(aj);var ak=E('<span class="close-notice"></span>').click(function(){E(this).closest(".wr-notice-cart-outer").removeClass("active")});E("body .wr-notice-cart").prepend(ak);setTimeout(function(){E("body > .wr-notice-cart-outer").addClass("active")},10);setTimeout(function(){E("body > .wr-notice-cart-outer").removeClass("active")},5000);ah.addClass("error");ag.addClass("error")}}ah.removeClass("loading");ah.prop("disabled",false);ag.removeClass("loading");ag.prop("disabled",false)};if(ae===true){return ai({status:"true"})}ae.preventDefault();ae.stopPropagation();var ah=E(this),ad=ah.closest("form"),ag=E(".floating-add-to-cart .floating_button"),af=function(){if(!isLocalStorageSupported()){ad.append('<input type="hidden" name="buy_now" value="1" />')}window.wr_add_to_cart_ajax(ah,ae,ai)};if(parseInt(WR_Data_Js.buy_now_checkout_type)==1){ah.prop("disabled",true);ah.addClass("loading");ah.removeClass("added error");ag.addClass("loading");ag.removeClass("error");E.ajax({url:WRAjaxURL,data:{action:"wr_clear_cart",_nonce:_nonce_wr_nitro},complete:function(aj){af()}})}else{af()}};if(parseInt(WR_Data_Js.in_buy_now_process)){ab(true)}E("form.cart .single_buy_now").click(ab);E("body").on("click",".quickview-modal form.cart .single_buy_now",ab);E(".floating-add-to-cart .single_buy_now").click(function(ad){ad.preventDefault();ad.stopPropagation();E("form.cart .single_buy_now").trigger("click")});E(document).on("gform_pre_conditional_logic",function(ad,ae){setTimeout(function(){var ag=E("#gform_submit_button_"+ae).is(":visible");if(!ag){var af=E('[id="gform_submit_button_'+ae+'"]');af.show().prop("disabled",true)}else{var ag=E("#gform_submit_button_"+ae).is(":disabled"),af=E('[id="gform_submit_button_'+ae+'"]');if(ag){af.show().prop("disabled",false)}else{af.show().prop("disabled",true)}}})});E("body").on("click",".woocommerce-cart .cart-table .product-remove a",function(){var ae=E(this),ad=ae.closest("tr").find(".product-name > a").text().trim();E(document).ajaxComplete(function(aj,al,ah){var ag=ah.url,ak=(typeof ah.data!="undefined")?ah.data:"";if(ag.indexOf("?remove_item=")!=-1){var af=E(".woocommerce-message"),am=af.find("a")[0].outerHTML,ai=WR_Data_Js.removed_notice.replace("%s",'"'+ad+'"');E(".woocommerce-message").html(ai+am)}})})}function s(){E(".hb-sidebar .icon-sidebar").click(function(){E(this).closest(".hb-sidebar").addClass("active");E("html").addClass("no-scroll")});E(".hb-sidebar .content-sidebar > .overlay").click(function(){E(this).closest(".hb-sidebar").removeClass("active");E("html").removeClass("no-scroll")})}function d(){E(".hb-currency .list .item").click(function(){var ad=E(this),aa=ad.closest("form"),ac=aa.find(".currency-value"),ab=ad.attr("data-id");ac.val(ab);aa.submit()})}function o(){E("body.wr-desktop").on("click",".hb-menu .menu-icon-action",function(){var ap=E(this);var av=ap.parents(".hb-menu");ap.find(".wr-burger-scale").addClass("wr-acitve-burger");var an=av.find(".site-navigator-outer")[0].outerHTML;if(!E("body > .hb-menu-outer").length){E("body").append('<div class="hb-menu-outer"></div>')}E("body > .hb-menu-outer").html(an);setTimeout(function(){var ay=E(".hb-menu-outer .navigator-column").height();var ax=E(".hb-menu-outer .navigator-column-inner").height();if(ay<ax){E(".hb-menu-outer").addClass("hb-menu-scroll")}},500);if(!E("body > .hb-overlay-menu").length){E("body").append('<div class="hb-overlay-menu"></div>')}var ao=ap.attr("data-layout");var aw=ap.attr("data-effect");var am=ap.attr("data-position");var ak=ap.attr("data-animation");var ah=E("body > .wrapper-outer");var aj=E("body > .hb-menu-outer .sidebar-style");var ar=E("body > .hb-menu-outer");var au=E("body > .hb-menu-outer ul.site-navigator");var al=E("body > .hb-overlay-menu");var at=E("body > .hb-menu-outer .fullscreen-style");E("html").addClass("no-scroll");if(ao=="fullscreen"){switch(aw){case"none":at.show();break;case"fade":at.fadeIn(100);break;case"scale":setTimeout(function(){at.addClass("scale-active")},100);break}}else{if(ao=="sidebar"){var ai=aj.innerWidth();al.attr("data-position",am);al.attr("data-animation",ak);al.fadeIn();aj.css("opacity",1);var aq=E("#wpadminbar");if(aq.length){aj.css("top",aq.height()+"px")}else{aj.css("top","0px")}switch(am){case"left":aj.css({visibility:"visible",left:"-"+ai+"px"}).animate({left:"0px"});if(ak=="push"||ak=="fall-down"||ak=="fall-up"){ah.css({position:"relative",left:"0px"}).animate({left:ai+"px"})}switch(ak){case"slide-in-on-top":break;case"push":break;case"fall-down":au.css({position:"relative",top:"-300px"}).animate({top:"0px"});break;case"fall-up":au.css({position:"relative",top:"300px"}).animate({top:"0px"});break}break;case"right":aj.css({visibility:"visible",right:"-"+ai+"px"}).animate({right:"0px"});if(ak=="push"||ak=="fall-down"||ak=="fall-up"){ah.css({position:"relative",right:"0px"}).animate({right:ai+"px"})}switch(ak){case"slide-in-on-top":break;case"push":break;case"fall-down":au.css({position:"relative",top:"-300px"}).animate({top:"0px"});break;case"fall-up":au.css({position:"relative",top:"300px"}).animate({top:"0px"});break}break}}}});E("body").on("click",".fullscreen-style .close",function(){E(".wr-burger-scale").removeClass("wr-acitve-burger");var aj=E(this);var ai=aj.parents(".hb-menu-outer");var ah=aj.attr("data-effect");switch(ah){case"none":ai.remove();break;case"fade":ai.find(".site-navigator-outer").fadeOut(300,function(){ai.remove()});break;case"scale":ai.find(".site-navigator-outer").removeClass("scale-active");setTimeout(function(){ai.remove()},300);break}E("html").removeClass("no-scroll");E("body > .wrapper-outer").removeAttr("style")});E("body").on("click",".hb-overlay-menu",function(){E(".wr-burger-scale").removeClass("wr-acitve-burger");var ao=E(this);var ai=ao.attr("data-position");var ak=ao.attr("data-animation");var am=E("body > .wrapper-outer");var aj=E("body > .hb-menu-outer .sidebar-style");var an=E("body > .hb-menu-outer ul.site-navigator");var ah=aj.innerWidth();var al=aj.innerHeight();ao.fadeOut();setTimeout(function(){E("body > .hb-menu-outer").remove();ao.remove();E("html").removeClass("no-scroll");E("body > .wrapper-outer").removeAttr("style")},500);switch(ai){case"left":aj.animate({left:"-"+ah+"px"});if(ak=="push"||ak=="fall-down"||ak=="fall-up"){am.animate({left:"0px"})}switch(ak){case"slide-in-on-top":break;case"push":break;case"fall-down":an.animate({top:"-300px"});break;case"fall-up":an.animate({top:"300px"});break}break;case"right":aj.animate({right:"-"+ah+"px"});if(ak=="push"||ak=="fall-down"||ak=="fall-up"){am.animate({right:"0px"})}switch(ak){case"slide-in-on-top":break;case"push":break;case"fall-down":an.animate({top:"-300px"});break;case"fall-up":an.animate({top:"300px"});break}break}});E("body").on("click",".header .menu-more .icon-more",function(aA){var aw=E(this);var an=aw.closest(".site-navigator-inner");var ah=aw.closest(".menu-more");var am=an.find(".site-navigator");var at=an.find(".nav-more");var av=an.find(" > .site-navigator .item-hidden");var ap=E(".header .menu-more").index(ah);var ao=aw.closest(".element-item");E(".header .menu-more:not(:eq("+ap+"))").removeClass("active-more");if(ah.hasClass("active-more")){ah.removeClass("active-more")}else{S(aw,".hb-menu",function(aD){ah.removeClass("active-more")});at.html("");at.removeAttr("style");var az=E(window).width();var aj=at[0].getBoundingClientRect();var ay=(az>1024)?parseInt(WR_Data_Js.offset):0;if(az<(aj.right+5)){var aq=(aj.right+5+ay)-az;at.css("left",-aq+"px")}else{if(aj.left<(5+ay)){at.css("left","5px")}}var aC=(ao.attr("data-margin-top")=="empty")?ao.attr("data-margin-top"):parseInt(ao.attr("data-margin-top"));var ai=ah[0].getBoundingClientRect();if(aw.closest(".sticky-row-scroll").length||aC=="empty"){var ak=aw.closest((aw.closest(".sticky-row-scroll").length?".sticky-row":".hb-section-outer"))[0].getBoundingClientRect();var al=ai.top+ai.height;var ax=ak.top+ak.height;var aB=parseInt(ax-al);var au=parseInt(aB+ai.height);at.css("top",au)}else{if(aC>0){at.css("top",(aC+ai.height))}}if(av.length){var ar="";E.each(av,function(){ar+=E(this)[0].outerHTML});at.html('<ul class="animation-'+ao.attr("data-animation")+" "+am.attr("class")+'">'+ar+"</ul>")}setTimeout(function(){ah.addClass("active-more")},10)}});if(E.fn.hoverIntent){var ad=function(aC){var aH="";var aJ=aC[0].getBoundingClientRect();var aF=E(window).width();var ar=(aF>1024)?parseInt(WR_Data_Js.offset):0;var aL=(aC.closest(".hb-menu").attr("data-margin-top")=="empty")?aC.closest(".hb-menu").attr("data-margin-top"):parseInt(aC.closest(".hb-menu").attr("data-margin-top"));if(aC.hasClass("wrmm-item")){var ax=aC.find(" > .mm-container-outer");ax.attr("style","display:block");var ai=aC.closest(".container")[0].getBoundingClientRect();var aF=E(window).width();var aw=ai.width;var az=ai.right;var av=0;var ao=0;var aA=ax.attr("data-width");if(aA==="full"){av=aw;if((av+10+ar*2)>=aF){av=aw-10;az-=5}}else{if(aA==="full-width"){av=aF-10-(ar*2);az=5+ar}else{av=parseInt(aA)?parseInt(aA):aw;if((av+10+ar*2)>=aF){av=aF-10-(ar*2);az-=5}}}ax.width(av);var aG=ax[0].getBoundingClientRect();if(aA=="full-width"){ao=-(aG.left-az)}else{if(aA=="full"){ao=((aG.right-az)>0)?-(parseInt(aG.right-az)):0}else{ao=(aG.right>(aF-5-(ar*2)))?(-(aG.right-(aF-5-ar))):0}}aH={display:"block",left:ao,width:av};if(aC.closest(".sticky-row-scroll").length||aL=="empty"){var ap=aC.closest((aC.closest(".sticky-row-scroll").length?".sticky-row":".hb-section-outer"))[0].getBoundingClientRect();var at=aJ.top+aJ.height;var aD=ap.top+ap.height;var aI=parseInt(aD-at);var ay=parseInt(aI+aJ.height);aH.top=ay;if(aC.children(".hover-area").length==0){aC.append('<span class="hover-area" style="height:'+(ay-aJ.height)+'px"></span>')}}else{if(aL>0){aH.top=aL+aJ.height;if(aC.children(".hover-area").length==0){aC.append('<span class="hover-area" style="height:'+aL+'px"></span>')}}}var aK=ax.find(".mm-container").width();var aj=0;E.each(ax.find(".mm-container > .mm-col"),function(){var aM=E(this);var aN=aM.outerWidth();aj+=aN;aM.removeClass("mm-last-row");if(aj==aK){aM.addClass("mm-last-row");aj=0}else{if(aj>aK){aM.prev().addClass("mm-last-row");aj=aN}}})}else{var ax=aC.find(" > ul.sub-menu");ax.attr("style","display:block");if(ax.length==0){return false}var aG=ax[0].getBoundingClientRect();var aF=E(window).width();var ao=Math.round(aG.right-aF+ar);if(aC.hasClass("menu-default")){ao=(ao>0)?(-ao-5):0;if(aC.closest(".sticky-row-scroll").length||aL=="empty"){var ap=aC.closest((aC.closest(".sticky-row-scroll").length?".sticky-row":".hb-section-outer"))[0].getBoundingClientRect();var at=aJ.top+aJ.height;var aD=ap.top+ap.height;var aI=parseInt(aD-at);var aq=parseInt(aI+aJ.height);if(aC.children(".hover-area").length==0){aC.append('<span class="hover-area" style="height:'+(aq-aJ.height)+'px"></span>')}}else{if(aL>0){var aq=aL+aJ.height;if(aC.children(".hover-area").length==0){aC.append('<span class="hover-area" style="height:'+aL+'px"></span>')}}}}else{var aB=aC.closest("ul");var an=parseInt(aB.css("left"));if(an<0){var ah=aB[0].getBoundingClientRect();ao=(aG.width<(ah.left-ar))?-aG.width:aG.width}else{if(WR_Data_Js.rtl==1&&aC.hasClass("menu-item-lv1")){ao=-aG.width}else{ao=(ao>0)?-aG.width:aG.width}}var am=E(window).height();var au=E("#wpadminbar").length?((E("#wpadminbar").css("position")=="fixed")?E("#wpadminbar").height():0):0;var al=am-(aG.top+aG.height)-ar;if(aG.height>(am-10-au-ar)){al=-(aG.top-au-5-ar)}else{al=al<5?(al-5):0}}aH={display:"block",left:ao};if(typeof al!=="undefined"){aH.top=al}if(typeof aq!=="undefined"){aH.top=aq}}ax.css(aH);var aE=aC.closest(".hb-menu").attr("data-animation");switch(aE){case"none":ax.css({opacity:"1"});break;case"fade":ax.stop(true,true).css({pointerEvents:"none"}).animate({opacity:"1"},150,function(){aH.pointerEvents="";ax.css(aH)});break;case"left-to-right":var ao=parseInt(ax.css("left"));ax.stop(true,true).css({pointerEvents:"none",left:(ao-50)+"px"}).animate({opacity:"1",left:ao+"px"},300,function(){aH.pointerEvents="";ax.css(aH)});break;case"right-to-left":var ao=parseInt(ax.css("left"));ax.stop(true,true).css({pointerEvents:"none",left:(ao+50)+"px"}).animate({opacity:"1",left:ao+"px"},300,function(){aH.pointerEvents="";ax.css(aH)});break;case"bottom-to-top":var ak=parseInt(ax.css("top"));var ao=parseInt(ax.css("left"));ax.stop(true,true).css({pointerEvents:"none",left:ao+"px",top:(ak+30)+"px"}).animate({opacity:"1",top:ak+"px"},300,function(){aH.pointerEvents="";ax.css(aH)});break;case"scale":var ao=parseInt(ax.css("left"));ax.css({pointerEvents:"none",left:ao+"px",transform:"scale(0.8)"}).animate({opacity:"1",transform:"scale(1)"},250,function(){aH.pointerEvents="";ax.css(aH)});break}aC.addClass("menu-hover")};setTimeout(function(){E(".wr-desktop header.header.horizontal-layout .active-menu").each(function(){ad(E(this))})},1000);E(".wr-desktop header.header.horizontal-layout").hoverIntent({over:function(){var ah=E(this);if(ah.hasClass("active-menu")){return}ad(ah)},out:function(){var al=E(this);if(al.hasClass("active-menu")){return}al.children(".hover-area").remove();if(al.hasClass("wrmm-item")){var aj=al.find(" > .mm-container-outer")}else{var aj=al.find("ul.sub-menu")}al.find(" > .menu-item-link .hover-area").removeAttr("style");var ak=al.closest(".hb-menu").attr("data-animation");switch(ak){case"none":al.removeClass("menu-hover");aj.removeAttr("style");break;case"fade":aj.stop(true,true).animate({opacity:"0"},150,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"left-to-right":var ai=parseInt(aj.css("left"))-50;aj.stop(true,true).animate({opacity:"0",left:ai+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"right-to-left":var ai=parseInt(aj.css("left"))+50;aj.stop(true,true).animate({opacity:"0",left:ai+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"bottom-to-top":var ah=parseInt(aj.css("top"))+50;aj.stop(true,true).animate({opacity:"0",top:ah+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"scale":aj.stop(true,true).animate({opacity:"0",transform:"scale(0.8)"},250,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break}},timeout:0,sensitivity:1,interval:0,selector:".site-navigator li.menu-item"});var af=function(az){var aC="";var aA=E(window).width();var aw=0;if(az.closest(".menu-more").length==1){var ai=az.closest(".menu-more");var aj=ai[0].getBoundingClientRect();var aB=aA-aj.right;if(aj.left>aB){aw=1}}else{aw=az.closest(".vertical-layout.right-position-vertical").length||az.closest(".sidebar-style.right-position").length}var aq=(aA>1024)?parseInt(WR_Data_Js.offset):0;var aD=az[0].getBoundingClientRect();var am=E(window).height();if(az.hasClass("wrmm-item")){var av=az.find(" > .mm-container-outer");av.attr("style","display:block");var at=av.attr("data-width");if(aw==1){var au=aD.left-aq;if(at=="full"||at>au){at=au-5}av.width(at);var ak=av[0].getBoundingClientRect();var ar=E("#wpadminbar").length?((E("#wpadminbar").css("position")=="fixed")?E("#wpadminbar").height():0):0;var an=am-(ak.top+ak.height)-aq;if(ak.height>(am-10-ar-aq)){an=-(ak.top-ar-5-aq)}else{an=an<5?(an-5):0}aC={display:"block",width:at,left:-at,top:an}}else{var au=aA-aD.right-aq;if(at=="full"||at>au){at=au-5}av.width(at);var ak=av[0].getBoundingClientRect();var ar=E("#wpadminbar").length?((E("#wpadminbar").css("position")=="fixed")?E("#wpadminbar").height():0):0;var an=am-(ak.top+ak.height)-aq;if(ak.height>(am-10-ar-aq)){an=-(ak.top-ar-5-aq)}else{an=an<5?(an-5):0}aC={display:"block",width:at,left:parseInt(aD.width),top:an}}}else{var av=az.find(" > ul.sub-menu");if(!av.length){return false}av.attr("style","display:block");var ak=av[0].getBoundingClientRect();if(az.hasClass("menu-default")){if(aw==1){var ap=-parseInt(ak.width)}else{var ap=parseInt(aD.width)}}else{var ay=az.closest("ul");var ah=ay[0].getBoundingClientRect();var ap=(ak.width>(aA-ah.right-aq-5))?-ak.width:ak.width;var ao=parseInt(ay.css("left"));if(ao<0){var ap=(ak.width<ah.left-5-aq)?-ak.width:ak.width}}var ar=E("#wpadminbar").length?((E("#wpadminbar").css("position")=="fixed")?E("#wpadminbar").height():0):0;var an=am-(ak.top+ak.height)-aq;if(ak.height>(am-10-ar-aq)){an=-(ak.top-ar-5-aq)}else{an=an<5?(an-5):0}aC={display:"block",left:ap,top:an}}var ax=(az.closest(".menu-more").length==1)?az.closest(".element-item").attr("data-animation"):az.closest(".site-navigator-outer").attr("data-effect-vertical");if(az.closest(".hb-menu-scroll").length&&az.hasClass("menu-item-lv0")){if(ak.height>(am-10-aq*2-ar)){aC.top=5}else{if((aD.top+ak.height)>(am-5-aq)){aC.top=aD.top-((aD.top+ak.height)-am);aC.top-=aq*2+ar+5}else{aC.top=aD.top-aq-ar}}}av.css(aC);switch(ax){case"none":av.css({visibility:"visible",opacity:"1"});break;case"fade":av.stop(true,true).animate({opacity:"1"},300,function(){av.css(aC)});break;case"left-to-right":var ap=parseInt(av.css("left"));av.stop(true,true).css({left:(ap-50)+"px"}).animate({opacity:"1",left:ap+"px"},300,function(){av.css(aC)});break;case"right-to-left":var ap=parseInt(av.css("left"));av.stop(true,true).css({left:(ap+50)+"px"}).animate({opacity:"1",left:ap+"px"},300,function(){av.css(aC)});break;case"bottom-to-top":var al=parseInt(av.css("top"));var ap=parseInt(av.css("left"));av.stop(true,true).css({left:ap+"px",top:(al+50)+"px"}).animate({opacity:"1",top:al+"px"},300,function(){av.css(aC)});break;case"scale":av.css({left:ap+"px",transform:"scale(0.8)"}).animate({opacity:"1",transform:"scale(1)"},300,function(){av.css(aC)});break}az.addClass("menu-hover")};setTimeout(function(){E(".vertical-layout .text-layout .animation-vertical-normal .active-menu").each(function(){af(E(this))})},1000);E("body").hoverIntent({over:function(){var ah=E(this);if(ah.hasClass("active-menu")){return}af(ah)},out:function(){var al=E(this);if(al.hasClass("active-menu")){return}if(al.hasClass("wrmm-item")){var aj=al.find(" > .mm-container-outer")}else{var aj=al.find("ul.sub-menu")}var ak=(al.closest(".menu-more").length==1)?al.closest(".element-item").attr("data-animation"):al.closest(".site-navigator-outer").attr("data-effect-vertical");switch(ak){case"none":al.removeClass("menu-hover");aj.removeAttr("style");break;case"fade":aj.stop(true,true).animate({opacity:"0"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"left-to-right":var ai=parseInt(aj.css("left"))-50;aj.stop(true,true).animate({opacity:"0",left:ai+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"right-to-left":var ai=parseInt(aj.css("left"))+50;aj.stop(true,true).animate({opacity:"0",left:ai+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"bottom-to-top":var ah=parseInt(aj.css("top"))+50;aj.stop(true,true).animate({opacity:"0",top:ah+"px"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break;case"scale":aj.stop(true,true).animate({opacity:"0",transform:"scale(0.8)"},300,function(){al.removeClass("menu-hover");aj.removeAttr("style")});break}},timeout:1,sensitivity:6,interval:0,selector:".vertical-layout .text-layout .animation-vertical-normal .site-navigator li.menu-item, .hb-menu-outer .sidebar-style.animation-vertical-normal .site-navigator li.menu-item, .menu-more .nav-more .site-navigator li.menu-item"})}var ag={};E("body").on("click",".mm-container .mm-has-children",function(aq){aq.preventDefault();var ao=E(this);var aj=ao.closest("ul");var an=ao.closest("li");var al=ao.closest(".mm-col");var ai=an.find(" > ul");aj.addClass("slide-hide");ai.addClass("slide-show");if(!al.find(".prev-slide").length){al.find(" > li > ul.sub-menu").prepend('<li class="prev-slide"><i class="fa fa-angle-left"></i></li>')}var am=ao.closest(".mm-col").find(" > li > ul");var ap=ai.height();var ah=am.find(".prev-slide").outerHeight();var ak=ap+ah;if(am.height()<ak){am.height(ak)}});E("body").on("click",".mm-container .prev-slide",function(al){var am=E(this);var aj=am.closest(".mm-col");var ai=am.closest(".mm-container");var ak=aj.find(".slide-show:last").removeClass("slide-show");var ah=aj.find(".slide-hide:last");if(aj.find(".slide-hide").length==1){am.closest("ul").css("height","");am.remove()}ah.removeClass("slide-hide")});E("body").on("click",".vertical-layout .hb-menu .animation-vertical-slide .icon-has-children, .hb-menu-outer .animation-vertical-slide .icon-has-children",function(ay){ay.preventDefault();var au=E(this);var ak=au.closest(".site-navigator-outer");var am=au.closest("li");var aj=am.find(" > ul > li");var an=au.closest("ul");var aq=an.find(" > li ");var ar=Object.keys(ag).length+1;var al=au.closest("a").find(".menu_title").text();var ap=am.find((am.hasClass("wrmm-item")?" .mm-container-outer ":" > ul "));var av=ap.height();var at=ak.find(".site-navigator");var ao=at.height();var ah="";if(av>ao){at.attr("style","height:"+av+"px;")}am.addClass("active-slide").addClass("slide-level-"+ar);if(!am.find(" > ul > li.menu-item-has-children").length){am.find(" > ul ").addClass("not-padding-icon")}if(aq.length){var az=aq.length;aq.each(function(aA,aB){setTimeout(function(){E(aB).addClass("slide-left");if(az==(aA+1)){if(am.hasClass("wrmm-item")){am.addClass("slide-normal")}}},100*aA)})}if(aj.length&&!am.hasClass("wrmm-item")){setTimeout(function(){aj.each(function(aA,aB){setTimeout(function(){E(aB).addClass("slide-normal")},100*aA)})},100)}ag[ar]=al;ak.find(".menu-breadcrumbs-outer").addClass("show-breadcrumbs");ak.find(".item-breadcrumbs").remove();if(Object.keys(ag).length){E.each(ag,function(aA,aB){ah+='<div class="element-breadcrumbs item-breadcrumbs"><i class="fa fa-long-arrow-right"></i><span class="title-breadcrumbs" data-level="'+aA+'">'+aB+"</span></div>"})}ak.find(".menu-breadcrumbs").append(ah);if(ak.hasClass("fullscreen-style")){var aw=au.closest(".navigator-column-inner")[0].getBoundingClientRect();var ax=E(window).width();var ai=ax-aw.left;ak.find(".menu-breadcrumbs-outer").css("width",parseInt(ai));au.closest(".navigator-column-inner").width(aw.width)}});E("body").on("click",".vertical-layout .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs, .hb-menu-outer .animation-vertical-slide .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs",function(){var al=E(this);var ak=al.attr("data-level");var aj=al.closest(".site-navigator-outer");var ai=Object.keys(ag).length;var ah=al.closest(".menu-breadcrumbs");if(ak==ai){return}if(aj.find(".slide-level-"+ai+".wrmm-item").length){aj.find(".slide-level-"+ai+".wrmm-item").removeClass("slide-normal")}else{aj.find(".slide-level-"+ai+"> ul > li").each(function(am,an){setTimeout(function(){E(an).removeClass("slide-normal")},100*am)})}if(ak=="all"){setTimeout(function(){var am=aj.find(".site-navigator > li").length;aj.find(".site-navigator > li").each(function(an,ao){setTimeout(function(){E(ao).removeClass("slide-left");if(am==(an+1)){E(ao).closest(".site-navigator").removeAttr("style");aj.find(".slide-normal").removeClass("slide-normal");aj.find(".slide-left").removeClass("slide-left");for(var ap=1;ap<=ai;ap++){aj.find(".slide-level-"+ap).removeClass("slide-level-"+ap)}aj.find(".active-slide").removeClass("active-slide");al.closest(".menu-breadcrumbs-outer").removeClass("show-breadcrumbs");setTimeout(function(){ag={};ah.find(".item-breadcrumbs").remove()},300)}},100*an)})},100)}else{setTimeout(function(){var am=aj.find(".slide-level-"+ak+" > ul > li").length;aj.find(".slide-level-"+ak+" > ul > li").each(function(an,ao){setTimeout(function(){E(ao).removeClass("slide-left");if(am==(an+1)){aj.find(".slide-level-"+ak+" ul ul .slide-normal").removeClass("slide-normal");aj.find(".slide-level-"+ak+" ul ul .slide-left").removeClass("slide-left");for(var ap=ak;ap<=ai;ap++){if(ap!=ak){aj.find(".slide-level-"+ap).removeClass("slide-level-"+ap)}}aj.find(".slide-level-"+ak+" .active-slide").removeClass("active-slide");for(var ap=ak;ap<=ai;ap++){if(ap!=ak){delete ag[ap];ah.find('.title-breadcrumbs[data-level="'+ap+'"]').parent().remove()}}}},100*an)})},100)}});E("body").on("click",".vertical-layout .hb-menu .animation-vertical-accordion .icon-has-children, .hb-menu-outer .animation-vertical-accordion .icon-has-children",function(ai){ai.preventDefault();var aj=E(this);var ah=aj.closest("li");if(ah.hasClass("active-accordion")){ah.removeClass("active-accordion");if(ah.find(" > .mm-container-outer").length){ah.find(" > .mm-container-outer").stop(true,true).slideUp(300)}else{ah.find(" > .sub-menu").stop(true,true).slideUp(300)}}else{ah.addClass("active-accordion");if(ah.find(" > .mm-container-outer").length){ah.find(" > .mm-container-outer").stop(true,true).slideDown(300)}else{ah.find(" > .sub-menu").stop(true,true).slideDown(300)}}});function ac(ah){var ai=0;E.each(ah,function(){var ak=E(this);if(ak.hasClass("hb-menu")&&ak.hasClass("text-layout")){var aj=(ak.outerWidth(true)-ak.find(".site-navigator-outer").width())+47;ai+=aj}else{var aj=ak.outerWidth(true);ai+=aj}});return ai}function ae(am,an,ak){var ah=0;var aj=0;E.each(am,function(){var ap=E(this);var ao=ap.outerWidth(true);ah+=ao});if(ah<an){aj=an-ah}if(aj){var ai=ak.prevAll(".hb-flex");if(ai.length){var al=parseInt(aj/ai.length);ai.width(al);ai.addClass("not-flex")}else{ak.css("marginLeft",(aj+parseInt(ak.css("marginLeft"))))}}}function aa(){E.each(E(".horizontal-layout .hb-section-outer"),function(){var aw=E(this);var at=aw.find(".hb-menu.text-layout");var ak=aw.find(".element-item.center-element");var aj=aw.find(".hb-flex");if(at.length){at.find(".site-navigator > .menu-item").removeClass("item-hidden");at.find(".menu-more").remove();aw.find(".center-element").removeAttr("style");aj.removeAttr("style");aj.removeClass("not-flex");if(ak.hasClass("hb-menu")&&ak.hasClass("text-layout")){var ao=aw.find(".hb-section > .container");var au=ao[0].getBoundingClientRect();var an=au.width-(parseInt(ao.css("borderLeftWidth"))+parseInt(ao.css("borderRightWidth"))+parseInt(ao.css("paddingLeft"))+parseInt(ao.css("paddingRight")));var aq=ak.prevAll(':not(".hb-flex")');var ai=ak.nextAll(':not(".hb-flex")');var av=ac(aq);var ar=ac(ai);var am=(av>ar)?av:ar;var ah=ak.outerWidth(true);var al=an-(am*2);if(ah>=al){ab(ak,al)}var ap=parseInt((an-ak.outerWidth(true))/2);ab(aq,ap);ab(ai,ap);ae(aq,ap,ak)}else{if(ak.length){ak.removeAttr("style");var ao=aw.find(".hb-section > .container");var au=ao[0].getBoundingClientRect();var an=au.width-(parseInt(ao.css("borderLeftWidth"))+parseInt(ao.css("borderRightWidth"))+parseInt(ao.css("paddingLeft"))+parseInt(ao.css("paddingRight")));var ap=parseInt((an-ak.outerWidth(true))/2);var aq=ak.prevAll(':not(".hb-flex")');var ai=ak.nextAll(':not(".hb-flex")');ab(aq,ap);ab(ai,ap);ae(aq,ap,ak)}else{var ao=aw.find(".hb-section > .container");var au=ao[0].getBoundingClientRect();var an=au.width-(parseInt(ao.css("borderLeftWidth"))+parseInt(ao.css("borderRightWidth"))+parseInt(ao.css("paddingLeft"))+parseInt(ao.css("paddingRight")));ab(aw.find(".element-item:not(.hb-flex)"),an)}}}else{if(ak.length){aw.find(".center-element").removeAttr("style");aw.find(".hb-flex").removeAttr("style");aj.removeClass("not-flex");var ao=aw.find(".hb-section > .container");var au=ao[0].getBoundingClientRect();var an=au.width-(parseInt(ao.css("borderLeftWidth"))+parseInt(ao.css("borderRightWidth"))+parseInt(ao.css("paddingLeft"))+parseInt(ao.css("paddingRight")));var ap=parseInt((an-ak.outerWidth(true))/2);var aq=ak.prevAll(':not(".hb-flex")');ae(aq,ap,ak)}}})}function ab(an,am){var ao=[];var ak=[];E.each(an,function(){var ar=E(this);if(ar.hasClass("hb-menu")&&ar.hasClass("text-layout")){ao.push(ar)}else{ak.push(ar)}});var ap=ao.length;E.each(ak,function(){am-=E(this).outerWidth(true)});var ai=parseInt(am/ap);var ah=0;var al=false;var aq=[];var aj=0;E.each(ao,function(){var ar=E(this).outerWidth(true);if(ar<ai){ah+=ai-ar}else{aq.push(aj)}aj++});ai+=parseInt(ah/aq.length);E.each(aq,function(aA,au){var aw=E(ao[au]);var az=aw.find(".site-navigator > .menu-item");if(!az.length){return}var ay=aw.outerWidth(true);var ar=aw.find(".site-navigator-outer").width();var ax=ai-((ay-ar)+52);var av=0;var at=false;E.each(az,function(aB,aC){av+=E(this).outerWidth(true);if(av>=ax){E(this).addClass("item-hidden");at=true}});if(at){aw.find(".site-navigator-inner").append('<div class="menu-more"><div class="icon-more"><span class="wr-burger-menu"></span><i class="fa fa-caret-down"></i></div><div class="nav-more"></div></div>')}})}aa();E(window).resize(_.debounce(function(){aa()},300))}function O(){function aa(){var ak=E(".header .sticky-row");var ap=ak.closest(".hb-section-outer");var ag=ap.height();var aq=ap.offset();var al=aq.top+ag;var ar=E(window).scrollTop();var ao=0;var ac=0;var ai=E("#wpadminbar");var an=E(".header .sticky-row .hb-search.dropdown");var aj=E(".header .sticky-row .hb-cart.dropdown");var ab=E(".wr-desktop .header .sticky-row .menu-more");var ad=E(".wr-desktop .header.horizontal-layout .sticky-row .hb-menu.text-layout .menu-item");if(ai.length){var ae=E(window).width();if(ae>600){ac=ai.height();ak.css("top",ac+"px")}}ap.height(ag+"px");if(ar>al){ak.addClass("sticky-row-scroll")}E.function_rotate_device.sticky_row=function(){ak.removeClass("sticky-row-scroll").removeClass("sticky-row-scroll-down").removeClass("sticky-row-scroll-up");ap.removeAttr("style");ag=ap.height();ap.height(ag+"px");aq=ap.offset();al=aq.top+ag};var am=106;var af=function(){ar=E(window).scrollTop();var av=ak.hasClass("sticky-row-scroll-up");var at=ak.hasClass("sticky-row-scroll");if(!av&&!at&&(ar>(al-ac))){an.removeClass("active-dropdown");aj.removeClass("active-dropdown");ab.removeClass("active-more");ad.trigger("mouseleave")}if(ar>al){if(!at){ak.addClass("sticky-row-scroll")}if(ar<(al+150)){if(am<106){am+=6;ak.css("transform","translateY(-"+am+"%)")}}else{if(ar>ao){if(am<106){am+=6;ak.css("transform","translateY(-"+am+"%)")}var au=ak.hasClass("sticky-row-scroll-down");if(!au){ak.addClass("sticky-row-scroll-down").removeClass("sticky-row-scroll-up")}}else{if(am>0){am-=6;ak.css("transform","translateY(-"+am+"%)")}if(!av){ak.addClass("sticky-row-scroll-up").removeClass("sticky-row-scroll-down")}}}}else{if(at){ak.removeClass("sticky-row-scroll").removeClass("sticky-row-scroll-up").removeClass("sticky-row-scroll-down");ak.css("transform","");am=106}}ao=ar};var ah=function(){ar=E(window).scrollTop();if(ar>(aq.top-ac)){ak.addClass("sticky-row-scroll")}else{ak.removeClass("sticky-row-scroll")}};if(E(".header .sticky-row").hasClass("sticky-normal")){E(window).scroll(ah);ap.find(".hb-section").height(ag+"px")}else{E(window).scroll(af)}}if(E(".header .sticky-row").length){setTimeout(function(){E(".header").WR_ImagesLoaded(function(){aa()})},50)}}function R(){var aa=E(".pageloader");if(!aa.length){return}E(window).on("pageshow",function(ab){if(ab.originalEvent!=undefined&&ab.originalEvent.persisted){aa.hide();aa.children().hide()}});E(window).on("beforeunload",function(){aa.fadeIn(300,function(){aa.children().fadeIn(300)})});aa.fadeOut(800);aa.children().fadeOut("slow")}function U(){var ae=[];var ad=E(".header .site-navigator > li");var aa=E("#wpadminbar").outerHeight();E(".wr-scroll-animated, .wr-scroll-animated *, .menu-item-link").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var ai=E(this.hash);if(!this.hash.slice(1)){return}var ah=E(window).width();var aj=(ah>1024)?parseInt(WR_Data_Js.offset):0;ai=ai.length?ai:E("[name="+this.hash.slice(1)+"]");if(ai.length){var af=E(".header .sticky-row");var ag=parseInt(af.attr("data-height"));if(!ag){ag=af.height()}E("html,body").stop().animate({scrollTop:ai.offset().top-aa-aj+1-ag+"px"},1200);return false}}});E.each(E(".header .site-navigator > li > a"),function(){var ah=E(this);var af=ah.attr("href");if(af!=undefined){if(af.match(/^#/gi)!=null){var ag=E(af);if(ag.length){ae.push(ag)}}}});var ac=_.debounce(function(){var ag=E(this);var af=ag.scrollTop();E.each(ae,function(){var aj=E(this);var an=aj.offset();var am=aj.outerHeight();var ai=aj.attr("id");var ak=E(".header .sticky-normal.sticky-row-scroll").height();if(af>=(an.top-aa-ak)&&af<=(an.top+am-aa-ak)){var al=E('.header .site-navigator > li > a[href="#'+ai+'"]');var ah=al.closest("li");ad.removeClass("current-menu-ancestor").removeClass("current-menu-item");ah.addClass("current-menu-item");return}})},10);var ab=function(){requestAnimationFrame(ac)};if(ae.length){E(window).scroll(ab)}}function Z(){var ac=E(".primary-sidebar-sticky");if(!ac.length){return}var ah=E(window),af=E(".primary-sidebar-inner"),an=parseInt(ac.css("marginTop")),ai=parseInt(af.css("marginTop")),ad=E("#wpadminbar"),al=E(".header .sticky-row"),am=al.attr("data-height"),ab=ad.length?parseInt(ad.height()):0,ag=parseInt(ac.find(".widget:last").css("marginBottom")),aa=false,aj=false;if(ai==0){if(an==0){ac.addClass("fixed-margin");an=30;aj=true}}else{an=0;aa=true}af.width(af.width());var ae=_.debounce(function(){var au=ah.width();if(au<=785){ac.removeClass("fixed-bottom fixed-top");return}if(au<=1008){var aC=0}else{var aC=parseInt(WR_Data_Js.offset)}var ap=af.height(),av=af.outerHeight(true),ay=ac.height(),aA=ah.height(),aB=al.length?((am!=0)?parseInt(am):al.height()):0,ax=ab+aB+an+aC,az=aA-ax-aC;if(ap>az||av>=ay){ac.removeClass("fixed-bottom fixed-top");return}var aw=E(this),aq=aw.scrollTop(),at=ac.offset(),ao=aq+aA,ay=ac.height(),aD=at.top+ay+(aA-ap)-ax,ar=aj?(ax-an):ax;if(aa){aD-=ai}af.css("top",ar);if(aq>(at.top-ax)&&ao<aD){if(ac.hasClass("fixed-bottom")){ac.removeClass("fixed-bottom")}ac.addClass("fixed-top");ac.addClass("fixing")}else{if(ao>aD){if(ac.hasClass("fixed-top")){ac.removeClass("fixed-top")}ac.addClass("fixed-bottom");ac.addClass("fixing")}else{ac.removeClass("fixed-bottom fixed-top fixing")}}},10);var ak=function(){requestAnimationFrame(ae)};E(window).scroll(ak);ak()}E.WR.Lightbox=function(){if(typeof E.fn.nivoLightbox=="undefined"){return setTimeout(function(){E.WR.Lightbox()},100)}E('a[data-lightbox^="nivo"]').each(function(){if(!E(this).data("nivo-lightbox-initialized")){E(this).nivoLightbox({effect:"fall",keyboardNav:true,clickOverlayToClose:true});E(this).data("nivo-lightbox-initialized",true)}})};function u(){if(E(".pagination[layout]").length>0){var ag=parseInt(E(".pagination").find(".page-ajax.enable").attr("data-page"));var ai=E(".pagination[layout]").attr("layout");var an=E(".pagination[layout-style]").attr("layout-style");var ab=E("."+("masonry"==an?"wr-nitro-masonry":"products"));var aj=false;var ah=E(".page-ajax"),al=E(ah).find("a").attr("href"),ak=".products",ao=".page-ajax a",af=E(ao).attr("href"),ae=2;var ac=E(".products .product").length;var aa=function(){E.get(al+"",function(aq){var at=E(ak,aq).wrapInner("").html(),ap=E(ak,aq).find(".product");ac+=ap.length;E(".woocommerce-result-count span").html(ac);E(at).WR_ImagesLoaded(function(){af=E(ao,aq).attr("href");ab.append(ap).isotope("appended",ap)});E(ao).text("...");if(ag>ae){if(WR_Data_Js.permalink=="plain"){var ar=al.replace(/paged=+[0-9]+/gi,"paged="+(ae+1))}else{var ar=al.replace(/page\/+[0-9]+\//gi,"page/"+(ae+1)+"/")}E(ao).attr("href",ar)}else{E(ao).removeAttr("href").addClass("disabled")}aj=false;ae++})};if(ab.length){ab.WR_ImagesLoaded(function(){if("masonry"==an){ab.isotope({itemSelector:".product",masonry:{columnWidth:".grid-sizer"}})}else{ab.isotope({itemSelector:".product",layoutMode:"fitRows"})}})}if("loadmore"==ai){E(".page-ajax a").on("click",function(ap){ap.preventDefault();ah=E(".page-ajax");al=E(ah).find("a").attr("href");ak=".products";ao=".page-ajax a";af=E(ao).attr("href");if(!al){return}E(ao).html('<i class="fa fa-circle-o-notch fa-spin"></i>');aa()})}else{if("infinite"==ai){var am=function(){ab=E("."+("masonry"==an?"wr-nitro-masonry":"products"));ah=E(".page-ajax");al=E(ah).find("a").attr("href");ak=".products";ao=".page-ajax a";af=E(ao).attr("href");var ap=ab.offset().top+ab.height()-E(window).scrollTop();if(ap<window.innerHeight&&ap>0&&!aj){if(!al){return}aj=true;E(ao).html('<i class="fa fa-circle-o-notch fa-spin"></i>');aa()}};var ad=function(){requestAnimationFrame(am)};E(window).scroll(ad)}}}}function e(){if(typeof ScrollReveal!="undefined"){window.sr=ScrollReveal().reveal(".wr-item-animation",{duration:700})}}E.WR.Carousel=function(){if(typeof E.fn.owlCarousel=="undefined"){return setTimeout(E.WR.Carousel,100)}E(".wr-nitro-carousel").each(function(){var al=E(this);if(!al.data("owl-carousel-initialized")){if(al.hasClass("exclude-carousel")){return}var ar=al.data("owl-options");if(ar!==undefined){var an=("true"==ar.autoplay)?true:false,ac=(ar.autoplayTimeout)?ar.autoplayTimeout:"5000",ad=ar.items,ai=("true"==ar.nav)?true:false,at=("true"==ar.dots)?true:false,aq=("true"==ar.autoplayHoverPause)?true:false,ae=ar.desktop,ao=ar.tablet,ak=ar.mobile,am=ar.sm_mobile,ag=ar.custom_responsive,ah=("true"==ar.rtl)?true:false,aj=(ar.loop)?ar.loop:true,ab=("true"==ar.autoHeight)?true:false,aa=(ar.animateIn)?ar.animateIn:"",af=(ar.animateOut)?ar.animateOut:"",ap={items:1,autoplay:an,autoplayTimeout:ac,autoplayHoverPause:aq,nav:ai,dots:at,loop:aj,autoHeight:ab,smartSpeed:400,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],rtl:ah};ap.items=ad;if(!aa&&!ab&&"1"!=ad&&"true"!=ag){ap.responsive={0:{items:ak},584:{items:ao},784:{items:ad}}}else{ap.responsive={0:{items:am},376:{items:ak},601:{items:ao},769:{items:ae},993:{items:ad}}}if(aa){ap.animateIn=aa}if(af){ap.animateOut=af}al.owlCarousel(ap)}al.data("owl-carousel-initialized",true)}})};function A(){var aa=E(".wr-nitro-masonry");aa.each(function(ad,af){var ae=E(this).data("masonry");if(ae!==undefined){var ac=ae.selector,ab=ae.columnWidth;E(this).WR_ImagesLoaded(function(){E(af).isotope({percentPosition:true,itemSelector:ac,masonry:{columnWidth:ab}})})}})}function h(){var aa=E(".wr-nitro-countdown");aa.each(function(af,ah){var ag=E(this).data("time");if(ag!==undefined){var ae=ag.day,ad=ag.month,ac=ag.year,ab=ad+"/ "+ae+"/ "+ac+" 00:00:00";E(ah).countdown({date:ab,render:function(ai){E(this.el).html("<div class='pr'><span class='db color-primary'>"+this.leadingZeros(ai.days,2)+"</span><span class='db tu ls-1 color-dark'>"+WR_Data_Js.wr_countdown_days+"</span></div><div class='pr'><span class='db color-primary'>"+this.leadingZeros(ai.hours,2)+"</span><span class='db tu ls-1 color-dark'>"+WR_Data_Js.wr_countdown_hrs+"</span></div><div class='pr'><span class='db color-primary'>"+this.leadingZeros(ai.min,2)+"</span><span class='db tu ls-1 color-dark'>"+WR_Data_Js.wr_countdown_mins+"</span></div><div class='pr'><span class='db color-primary'>"+this.leadingZeros(ai.sec,2)+"</span><span class='db tu ls-1 color-dark'>"+WR_Data_Js.wr_countdown_secs+"</span></div>")}})}})}function H(){var aa=E("#wr-back-top");E(window).scroll(function(){if(E(this).scrollTop()!=0){aa.fadeIn()}else{aa.fadeOut()}});aa.click(function(){E("body, html").animate({scrollTop:0},800)})}function t(){E(".search-results .search-item .entry-content p, .search-results .search-item .entry-title a").each(function(ac,ad){var aa=E(".search-results .result-list").attr("data-key");var ae=E(ad).text();var ab=aa.split(" ");E.each(ab,function(ag,af){var ah=new RegExp("("+af+")","gi");ae=ae.replace(ah,'<span class="highlight">$1</span>');E(ad).html(ae)})})}function x(){E("body").delegate(".product__compare .product__btn","click",function(){E(this).next().find(".compare").trigger("click");return false})}function j(){if(E(".single-product .product-type-booking").length){E(".woocommerce-message").show()}}function K(){var aa=function(ab){if(parseInt(Number(ab))==ab){return ab}return ab.toFixed(2)};E("body").on("click",".quantity a.plus",function(ad){var ae=E(this).parent().parent().find("input"),ab=Number(ae.attr("step")),ac=aa(Number(ae.val())+ab);ae.val(ac);ae.trigger("change")});E("body").on("click",".quantity a.minus",function(ad){var ae=E(this).parent().parent().find("input"),ab=Number(ae.attr("step")),ac=aa(Number(ae.val())-ab);if(ac<ab){ac=ab}ae.val(ac);ae.trigger("change")})}function z(){E("body").on("click",".btn-quickview",function(ab){var ad=E(this);ad.addClass("loading");var ac=ad.attr("data-prod"),aa={action:"wr_quickview",product:ac,wr_view_image:"wr_quickview"};E.post(WRAjaxURL,aa,function(ae){ae=E(ae);ae.find(".wr-custom-attribute .has-image-gallery[data-value]").each(function(){var af=E(this).attr("data-href"),ag=af+"&wr_view_image=wr_quickview";E(this).attr("data-href",ag)});if(typeof E.fn.magnificPopup!="undefined"){E.magnificPopup.open({items:{src:ae},mainClass:"mfp-fade mfp-quickview",removalDelay:300,callbacks:{open:function(){if(typeof wc_add_to_cart_variation_params!=="undefined"){E(".variations_form").each(function(){E(this).wc_variation_form().find(".variations select:eq(0)").change()})}}}})}ad.removeClass("loading");setTimeout(function(){if(E(".quickview-modal form").hasClass("variations_form")){E(".quickview-modal form.variations_form").wc_variation_form()}E(".wr-images-quickview").WR_ImagesLoaded(function(){var af=E(".wr-images-quickview").outerHeight();E(".quickview-modal .info").css({height:af,overflow:"auto"})})},100)});ab.preventDefault();ab.stopPropagation()});E("body").on("click",".mfp-quickview .open-popup-link",function(aa){aa.preventDefault();aa.stopPropagation();E(".quickview-modal").addClass("active-sizeguide");E(".quickview-modal-inner").hide()});E("body").on("click",".wr-sizeguide .sizeguide-close",function(aa){E(".quickview-modal").removeClass("active-sizeguide");E(".quickview-modal-inner").show()})}function N(){E("body").on("click",".product-type-simple .btn-buynow, .wr-buy-now .btn-buynow",function(ab){var ac=E(this);ac.addClass("loading");var aa={action:"wr_quickbuy",product_id:ac.attr("data-product-id")};if(ac.attr("data-checkout")!=undefined&&ac.attr("data-payment-info")!=undefined){aa.shortcode_checkout=ac.attr("data-checkout");aa.shortcode_payment=ac.attr("data-payment-info")}E.ajax({type:"POST",url:WRAjaxURL,data:aa,success:function(ad){if(ad.status=="true"){if(ad.type=="redirect"){window.location.href=ad.checkout_url}else{if(ad.type=="modal"){if(ad.checkout_url.indexOf("?")!=-1){ad.checkout_url=ad.checkout_url+"&wr-buy-now=check-out"}else{ad.checkout_url=ad.checkout_url+"?wr-buy-now=check-out"}if(typeof E.fn.magnificPopup!="undefined"){E.magnificPopup.open({items:{src:ad.checkout_url},type:"iframe",mainClass:"mfp-fade wr-buy-now",removalDelay:300})}}}}else{if(ad.status=="false"){}}ac.removeClass("loading")}});ab.preventDefault();ab.stopPropagation()})}function i(){E("body").on("click",".wc-switch a",function(af){af.preventDefault();var ah=E(this);if(ah.hasClass("active")||ah.hasClass("loading")){return}var ad=ah.closest(".wc-switch");ad.find("a").removeClass("active");ah.addClass("active");var ae=ah.attr("data-layout");var aa=function(ak){var aj="";if(ak.indexOf("?")!=-1){var ai=(WR_Data_Js.wc_archive_style=="list")?"grid":WR_Data_Js.wc_archive_style;if(ak.indexOf("switch="+ai)!=-1){aj=ak.replace("switch="+ai,"switch="+ae)}else{if(ak.indexOf("switch=list")!=-1){aj=ak.replace("switch=list","switch="+ae)}else{if(ak.indexOf("?switch=")!=-1||ak.indexOf("&switch=")!=-1){aj=ak.replace("switch=","");aj=aj+"&switch="+ae}else{aj=ak+"&switch="+ae}}}}else{aj=ak+"?switch="+ae}return aj};var ag=aa(window.location.href);history.pushState({},"",ag);E("#shop-main .woocommerce-pagination ul li a.page-numbers").each(function(aj,ak){var al=E(this);var ai=al.attr("href");al.attr("href",aa(ai))});if(E("#shop-main .products").length==1){ah.addClass("loading");E.get(ag,function(ai){var ak=E(".products",ai);if(ak.length){ak.addClass("products-ajax").hide();var aj=ak[0].outerHTML;var al=E("#shop-main .products");al.after(aj);al.fadeOut(200,function(){E("#shop-main .products-ajax").show()})}ah.removeClass("loading")})}else{var ab=E("#shop-main .products."+ae+"-layout");var ac=E("#shop-main .products:not(."+ae+"-layout)");ac.hide();ab.show()}})}function V(){E(".btn-newacc, .register .btn-backacc").on("click",function(aa){E(".form-container.login, .form-container.register").toggleClass("opened")});E(".btn-lostpw, .lost-password .btn-backacc").on("click",function(aa){E(".form-container.login, .form-container.lost-password").toggleClass("opened")})}function L(){E("#tab-description").show().closest(".description_tab").addClass("active");E(".accordion-tabs .tab-heading").click(function(ac){ac.preventDefault();var ad=E(this);var aa=ad.closest(".accordion_item");var ab=ad.closest(".accordion-tabs");if(aa.hasClass("active")){aa.removeClass("active");aa.find(".entry-content").stop(true,true).slideUp()}else{ab.find(".accordion_item").removeClass("active");aa.addClass("active");ab.find(".entry-content").stop(true,true).slideUp();aa.find(".entry-content").stop(true,true).slideDown()}})}function G(){if(E(".p-single-action .single_add_to_cart_button").length==0){return}E(window).load(function(){var ai=E(".footer"),af=E(".p-single-action .single_add_to_cart_button"),ac=af.offset().top+af.height(),aj=ai.height(),ab=E(window).height(),ah=E(document).height(),ae=E(window).width(),ad=((ae>1024)?parseInt(WR_Data_Js.offset):0)+10;var aa=function(){var am=E(window).scrollTop(),an=E(".actions-fixed"),ak=ai.offset().top-an.height()-15,al=ak-am;if(am>ac){an.slideDown()}else{an.slideUp()}if(am+ab<ah-aj){an.css({bottom:ad+"px",top:"auto"})}else{an.css({bottom:"auto",top:al})}};var ag=function(){requestAnimationFrame(aa)};E(window).scroll(ag)})}function a(){E(".product-categories .cat-parent > .children, .widget_nav_menu .menu-item-has-children > .sub-menu").before('<span class="fa fa-angle-down pa tc"></span>');E("body").on("click",".product-categories .cat-parent .fa",function(){E(this).closest(".cat-parent").toggleClass("active").find("> .children").stop(true,false).slideToggle()});E("body").on("click",".widget_nav_menu .menu-item-has-children .fa",function(){E(this).closest(".menu-item-has-children").toggleClass("active").find("> .sub-menu").stop(true,false).slideToggle()});E(".product-categories .count").each(function(){var ab=E(this);var aa=ab.text().replace("(","").replace(")","");ab.text(aa)})}function S(aa,ab,ad){E(".wrapper-outer").on("mousedown vmousedown",function ac(af){var ag=E(ab).index(aa.closest(ab));var ae=E(ab).index(E(af.target).closest(ab));if(ag!=ae){E("body").off("mousedown vmousedown");ad.call(af)}})}function m(aa,ad,ac){E(".wrapper-outer").on("mousedown vmousedown",function ab(af){var ae=E(ad).index(E(af.target).closest(ad));if(ae==-1){E("body").off("mousedown vmousedown");ac.call(af)}})}function Q(){E(window).resize(function(){var ac=E(window).height();var ab=E(window).width();if(typeof window.is_vertical_mobile==="undefined"){window.is_vertical_mobile=(ac<ab)?true:false}if(ac<ab&&window.is_vertical_mobile){window.is_vertical_mobile=false;aa()}else{if(ac>ab&&!window.is_vertical_mobile){window.is_vertical_mobile=true;aa()}}});function aa(){E.each(E.function_rotate_device,function(ab,ac){ac.call()})}}function M(){var aa=E(".wr-nitro-horizontal");if(aa.length>0){var ae=aa.data("owl-options");if(ae!==undefined){var ad=("true"==ae.autoplay)?true:false,ac=("true"==ae.dots)?true:false,af=("true"==ae.loop)?true:false,ab=("true"==ae.mousewheel)?true:false;aa.owlCarousel({items:4,loop:true,nav:false,autoplay:ad,dots:ac,autoWidth:true});if(ab==true){aa.on("mousewheel",".owl-stage",function(ag){if(ag.deltaY>0){aa.trigger("prev.owl")}else{aa.trigger("next.owl")}ag.preventDefault()})}}}}function C(){var ab=E(".gallery-cover");var aa=E(".gallery-thumb");var af=6;var ad=true;if(!ab.length>0){return}ab.owlCarousel({items:1,slideSpeed:2000,nav:true,animateOut:"fadeOut",animateIn:"fadeIn",autoplay:true,dots:false,loop:true,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]}).on("changed.owl.carousel",ae);aa.on("initialized.owl.carousel",function(){aa.find(".owl-item").eq(0).addClass("current")}).owlCarousel({items:af,dots:false,nav:false,smartSpeed:200,slideSpeed:500,slideBy:af,responsiveRefreshRate:100}).on("changed.owl.carousel",ac);function ae(ah){var ai=ah.item.count-1;var ak=Math.round(ah.item.index-(ah.item.count/2)-0.5);if(ak<0){ak=ai}if(ak>ai){ak=0}aa.find(".owl-item").removeClass("current").eq(ak).addClass("current");var aj=aa.find(".owl-item.active").length-1;var al=aa.find(".owl-item.active").first().index();var ag=aa.find(".owl-item.active").last().index();if(ak>ag){aa.data("owl.carousel").to(ak,100,true)}if(ak<al){aa.data("owl.carousel").to(ak-aj,100,true)}}function ac(ag){if(ad){var ah=ag.item.index;ab.data("owl.carousel").to(ah,100,true)}}aa.on("click",".owl-item",function(ah){ah.preventDefault();var ag=E(this).index();ab.data("owl.carousel").to(ag,300,true)})}function y(){E(".wr-mobile .hb-menu .has-children-mobile").click(function(){var ad=E(this);var ab=ad.closest(".item-link-outer");var ac=ad.closest("li");var aa=ac.find(" > ul:first");if(ab.hasClass("active-submenu")){aa.stop(true,true).slideUp(function(){var ah=ad.closest(".site-navigator-inner");var af=ad.closest(".site-navigator");var ae=af[0].getBoundingClientRect();var ag=E(window).height();var ai=ag-ae.top;if(ae.height<=ai){ah.css("height","")}});ab.removeClass("active-submenu")}else{aa.stop(true,true).slideDown(function(){var ag=ad.closest(".site-navigator-inner");var ae=ag[0].getBoundingClientRect();var af=E(window).height();var ah=af-ae.top;if(ae.height>ah){ag.height(ah)}});ab.addClass("active-submenu")}});E(".wr-mobile .hb-menu .menu-icon-action").click(function(){var ac=E(this);var aa=ac.closest(".hb-menu");var ab=aa.find(".site-navigator-inner");if(ac.hasClass("active-menu")){ab.stop(true,true).slideUp();ac.removeClass("active-menu")}else{S(ac,".hb-menu",function(ad){ab.stop(true,true).slideUp();ac.removeClass("active-menu")});ab.stop(true,true).slideDown(function(){var ad=ab[0].getBoundingClientRect();var ae=E(window).height();var af=ae-ad.top;if(ad.height>af){E(this).height(af)}});ac.addClass("active-menu")}});E.function_rotate_device.menu_mobile=function(){E.each(E(".wr-mobile .hb-menu .menu-icon-action.active-menu"),function(ab,af){var ah=E(af);var ac=ah.closest(".hb-menu");var ae=ac.find(".site-navigator-inner");ae.css("height","");var aa=ae[0].getBoundingClientRect();var ad=E(window).height();var ag=ad-aa.top;if(aa.height>ag){ae.height(ag)}else{ae.css("height","")}})}}function c(){var aa=E(".nitro-member .member a");var ab=E(".nitro-member .info > p").height();E(".nitro-member.style-2 .info").css("bottom",-(ab+16));aa.mouseenter(function(ac){E(this).find(".name").fadeIn()});aa.mouseleave(function(ac){E(this).find(".name").hide()});aa.mousemove(function(af){var ad=af.pageX,ah=af.pageY,ag=E(this).offset(),ae=ad-ag.left,ac=ah-ag.top;E(this).find(".name").css({top:(ac+20)+"px",left:(ae-15)+"px"})});aa.on("click",function(){var ai=E(this),al=ai.closest(".member"),ag=ai.closest(".nitro-member"),ao=ag.find(".member"),am=ao.index(al)+1,af=ao.length,ac=ag.width(),an=al[0].getBoundingClientRect(),ae=parseInt(ac/an.width),ak=ai.next();if(af<=ae){var aj=af}else{if(am<=ae){var aj=(ae-am)+am}else{var aj=(parseInt(am/ae)+(am%ae==0?0:1))*ae;if(af<aj){aj=af}}}var ad=ag.find(".member").get(aj-1);ad=E(ad).next();if(al.hasClass("active-member")){al.removeClass("active-member");E(".member-container").slideUp(500,function(){E(this).remove()})}else{ao.removeClass("active-member");al.addClass("active-member");var ah=ag.find(".member").get(aj-1);if(ad.hasClass("member-container")){E(".member-container").fadeOut(300,function(){E(this).html(ak.html());E(this).fadeIn(300)})}else{if(E(".member-container").length){E(".member-container").slideUp(500,function(){E(this).remove();var ap=ag.find(".member").get(aj-1);E(ap).after('<div class="member-container clear">'+ak.html()+"</div>");E(".member-container").slideDown()})}else{E(".member-container").remove();var ah=ag.find(".member").get(aj-1);E(ah).after('<div class="member-container clear">'+ak.html()+"</div>");E(".member-container").slideDown(500)}}}})}function T(){var aa=E(".galleries .nitro-gallery-masonry");if(aa.length){aa.each(function(){var ae=E(this),ad=ae.attr("data-layout");ae.WR_ImagesLoaded(function(){if(ad=="masonry"){ae.isotope({filter:"*",percentPosition:true,masonry:{columnWidth:".grid-sizer"}})}else{ae.isotope({filter:"*",percentPosition:true,layoutMode:"fitRows"})}})})}E(".gallery-cat a").click(function(){var ad=E(this).attr("data-filter");E(this).closest(".galleries").find(".nitro-gallery-masonry").isotope({filter:ad,transitionDuration:"0.3s"})});var ab=E(".gallery-cat"),ac=ab.find("a");ac.click(function(){var ae=E(this);if(ae.hasClass("selected")){return false}var ad=ae.parents(".gallery-cat");ad.find(".selected").removeClass("selected");ae.addClass("selected")});if(window.innerWidth<=769){E(".filter-on-mobile").on("click",function(){E(this).next().slideToggle()});E(".gallery-cat a[data-filter]").on("click",function(){var ad=E(this).text();E(this).parent().siblings(".filter-on-mobile").find("span").text(ad);E(this).parent().slideToggle()})}}function Y(){var aa=E('.sc-cat-list[data-expand="true"]').children("a");E('.sc-cat-list[data-expand="true"] ul').hide();aa.on("click",function(){E(this).next().slideToggle()});if(E(".sc-cat-mobile").length>0){E(".sc-cat-mobile").on("click",function(){E(this).toggleClass("expanded").next().toggleClass("expanded")})}}function b(){E("body").on("click",".yith-wcwl-add-button .add_to_wishlist",function(aa){aa.preventDefault();E(this).css("opacity","0")});E("body").on("click",".wishlist-submit.add_to_wishlist",function(aa){aa.preventDefault();E(this).find(".ajax-loading").show();E(this).find(".wishlist-icon").hide()});E("body").on("click",".yith-wcwl-remove-button a",function(ad){ad.preventDefault();var af=E(this);var aa=af.closest(".yith-wcwl-add-to-wishlist");var ae=aa.find(".yith-wcwl-remove-button .ajax-loading");var ac=aa.find(".yith-wcwl-add-button .add_to_wishlist");af.css("opacity","0");ae.css("visibility","visible");ac.css("opacity","1");var ab={action:"wr_remove_product_wishlish",_nonce:_nonce_wr_nitro,product_id:af.attr("data-product-id")};E.ajax({type:"POST",url:WRAjaxURL,data:ab,success:function(ag){if(ag.status=="true"){ae.css("visibility","hidden");aa.find(".yith-wcwl-remove-button").hide();aa.find(".yith-wcwl-add-button").show();af.css("opacity","1")}}})})}function X(){E(".wr-buy-now .btn-buynow").click(function(){if(!E("body").hasClass("woocommerce-page")){E("body").addClass("woocommerce-page")}})}function F(){E(".nitro-separator").each(function(){var ab=E(this).find("span").width(),ac=E(this).attr("data-align");switch(ac){case"left":if(E("body").hasClass("rtl")){E(this).find(".sep").css("margin-right",ab+20)}else{E(this).find(".sep").css("margin-left",ab+20)}break;case"right":if(E("body").hasClass("rtl")){E(this).find(".sep").css("margin-left",ab+20)}else{E(this).find(".sep").css("margin-right",ab+20)}break;case"center":var aa=(E(this).width()-ab)/2-20;E(this).find(".sep-left, .sep-right").css("width",aa);break}})}function n(){if(typeof E.fn.magnificPopup=="undefined"){return setTimeout(n,100)}if(E(".sc-video").length>0){E(".sc-video-popup").each(function(aa,ad){var ac=E(this).data("popup");if(ac!==undefined){var ab=("true"==ac.control)?"controls=1":"controls=0";E(ad).magnificPopup({type:"iframe",mainClass:"mfp-fade",removalDelay:300,iframe:{markup:'<div class="mfp-iframe-scaler"><button type="button" class="mfp-close">×</button><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1&showinfo=0&"+ab},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"}}}})}});if(E(".sc-yt-trigger").length>0){E.getScript("https://www.youtube.com/iframe_api");E(".sc-yt-trigger").each(function(){var ac=E(this),aa=ac.next();setTimeout(function ab(){if(typeof YT!=="object"){return setTimeout(ab,1000)}if(typeof YT.Player!=="function"){return setTimeout(ab,1000)}var ad;ad=new YT.Player(aa.get(0),{events:{onReady:function(ae){ac.on("click",function(af){ae.target.playVideo();ac.css("opacity",0);aa.show();af.preventDefault()})}}})},1000)})}if(E(".sc-vm-trigger").length>0){E(".sc-vm-trigger").each(function(){var ad=E(this),ac=ad.next(),aa="*";ad.on("click",function(ae){ab("play");ad.css("opacity",0);ac.show();ae.preventDefault()});function ab(ah,ag){var af={method:ah};if(ag){af.value=ag}var ae=JSON.stringify(af);ac[0].contentWindow.postMessage(ae,aa)}})}}}function W(){var ab=E(".nitro-timeline.style-2");var aa=function(){ab.removeClass("style-2").addClass("style-1");if(E(window).width()<568){ab.removeClass("style-2").addClass("style-1")}else{ab.removeClass("style-1").addClass("style-2")}};if(ab.length>0){aa();E(window).resize(function(){aa()})}}function I(){var aa=function(){E.each(E(".list-blog.has-featured-img .has-post-thumbnail .entry-title"),function(){var ac=E(this);var ab=ac.closest(".has-post-thumbnail");ab.removeClass("blog-res");if(ac.width()<180){ab.addClass("blog-res")}})};aa();E(window).resize(function(){aa()})}function k(){E(".woof_auto_show").parent().addClass("woof_auto_show_outer")}function p(){if(E(".p-video").length>0){E(".p-video-link").magnificPopup({type:"iframe"});E(".p-video-file").magnificPopup({type:"inline"})}}function g(){if(E(".wr-open-cf7").length>0){E(".wr-open-cf7").magnificPopup({disableOn:700,type:"inline",removalDelay:300,mainClass:"mfp-fade"})}}function f(){E("body").on("click",".wc-show-sidebar",function(aa){E("body").toggleClass("slide-to-left");E("html").addClass("no-scroll");E("#shop-mobile-sidebar").before('<div class="mask-overlay"></div>');m(E(this),"#shop-mobile-sidebar",function(){E("body").removeClass("slide-to-left");E("html").removeClass("no-scroll");E(".mask-overlay").remove()})})}function P(){if(E(".term-description").length>0){var ab=E(".term-description"),aa=ab.height();if(aa>78){ab.wrapInner('<div class="term-description-inner"></div>');ab.append('<a class="term-more dib mgt10 bg-primary color-white" href="#">'+WR_Data_Js.show_more+"</a>");ab.children(".term-description-inner").css({height:78,overflow:"hidden"});E("body").on("click",".term-more",function(){ab.children(".term-description-inner").toggleClass("term-show-hide");(E(this).text()==WR_Data_Js.show_more)?E(this).text(WR_Data_Js.show_less):E(this).text(WR_Data_Js.show_more)})}}}function B(){if(E(".flex-control-thumbs").length>0){var aa=E(".flex-control-thumbs li").length;if(aa>5){E(".woocommerce-product-gallery__wrapper").WR_ImagesLoaded(function(){setTimeout(function(){E(".flex-control-thumbs").scrollbar()},800)})}}}E(document).ready(function(){E("body").on("click",".vc_tta-tab a",function(aa){aa.preventDefault()});if((WR_Data_Js!=undefined&&WR_Data_Js.blogParallax==1||WR_Data_Js.pageParallax==1||WR_Data_Js.bodyParallax==1)&&!D()){if(window.skrollr){skrollr.init({forceHeight:false})}}if(E(".open-popup-link").length){E(".addition-product .open-popup-link, .addition-product .price br").remove()}y();O();q();r();s();o();d();U();Z();E.WR.Lightbox();E.WR.Carousel();A();h();H();t();Q();C();u();e();k();b();j();x();K();z();N();V();i();L();G();p();g();f();P();B();c();T();Y();X();F();n();W();I();a();R()});E(window).load(function(){M()})})(jQuery);
  4. Galera, não consigo fazer a .frmtoggle desaparecer. O .bttoggle já tem outros eventos click relacionados a ele em um outro documento.. Então tentei pegar seu .position().top; e tentei de tudo que por enquanto conheço... Gostaria de sugestões e ajuda, pois preciso solucionar isso logo. $("button.rd-navbar-toggle.bttoggle span").on("click", function(){ $("form.rd-navbar-search-form.frmtoggle").toggle(); });
  5. Rzorr

    Jqueru desatualizado

    Boa Tarde, eu tenho um projeto que comecei quando jquery era 1.8, e parece que agora está em 3.3, não fui eu quem desenvolveu o projeto na época eu comprei e foi feito alterações, gostaria de saber se eu alterar o jquery desse projeto para a versão atual ele para de funcionar?
  6. Junior Junior

    Php e Mysqli Login-Registro AJAX

    Olá eu tenho tentado criar uma plantaforma que faça login e registro com php mysqli e ajax porém toda vez q tento fazer login ja com um usuario cadastro no banco de dados ele não funciona aparece que ta dando erro, porém não identifiquei o erro, e o registro também alguém poderia me ajudar a desenvolver? meu arquivo valida para login; meu arquivo validareg.php valida o registro: arquivo formulario do registro: parte do arquivo de login: e por fim o ajaxlogin que faz a função ajax
  7. Vitor Leite

    Lógica e estruturação

    Oi pessoal! Estou treinando minhas "habilidades" num projeto. Porém tenho muitas dificuldades na estruturação e lógica do processo. Vou tentar explicar: O usuário irá clicar em um botão, tal botão irá adiciona-lo a uma fila de espera, quando 10 usuários tiverem clicado no botão (isso no mesmo intervalo de tempo), estes irão ser redirecionados para uma página à parte. Só que não consigo formular isso no código de jeito algum. Sei que preciso utilizar atualização em tempo real (pensei num simples long polling), porém não faço a minima ideia de como começar. QUALQUER ajuda é bem vinda: indicação de tutoriais, sites, etc. Obrigado, bom começo de semana!
  8. reinaldorti

    Limitar cadastro de fotos

    Olá, tenho um sistema já funcionando em php com ajax, eu cadastro os dados no banco e envia a galeria junto também, porem quero limitar a quantidade de fotos antes de gravar no banco, tipo: se o usuário tentar cadastrar mais de 5 fotos o sistema não deixa.. em php já fiz isso, porem agora está em ajax e não to conseguindo validar isso.. Alguém pode me dar uma luz por favor... Obrigado!
  9. drx

    Manter o estado dos controles na página

    Olá Feras! Como que eu faço para manter um controle (btn) desativado, enquanto na tabela meu campo status=A de Aberto ? Como que mesmo clicando f5 ou refresh a página pesquise e mantenha o controle desativado? Grato.
  10. marcelocardoso

    jquery slideUP + Hide

    GALERA! Tenho um script que estou desenvolvendo para exibir em determinada SCROLL somente. Até ai, td bem... porém, depois que o SCROLL sobe novamente, o código não aceita mais o CLICK. (onde deve estar o ERRO no JQUERY). CODE JQUERY>>> <script type="text/javascript"> jQuery(document).ready(function() { $(window).scroll(function() { nScrollPosition = $(window).scrollTop(); if (nScrollPosition > 3300) { $("#box_slidetop").fadeIn(); $("#box_slidetop").hover(function() { $("#box_slidetop_extra").animate({ bottom: '50px' }, 200); }, function() { $(this).animate({ bottom: '50px' }, { duration: 800, easing: 'easeOutBounce' }); }); } else { $("#box_slidetop, #box_slidetop_extra").fadeOut(); } }); }); </script> CODE HTML>>> <div id="box_slidetop" class="" style="display: none;"> <div class="text-center space_bottom10 space_top20 d-none d-sm-block"> <p class="text-center"> <b>AJUDE ESTA CAUSA, PROGRAMADORES...!</b> </p> </div> </div> <div id="box_slidetop_extra"> <div class="col-md-10 offset-1 text-center space_top20 space_lr40"> <form method="post" class="form-white" action="form/acoes.asp"> <div class="col-md-5 pull-left"> <input type="text" class="form-control" id="campo_nome" name="campo_nome" placeholder="Digite seu nome" required> </div> <div class="col-md-6 pull-left"> <input type="email" class="form-control" id="campo_email" name="campo_email" placeholder="Digite seu email" required> </div> <div class="col-md-1 pull-left"> <button type="submit" class="btn btn-md btn-primary">ENVIAR</button> </div> </form> </div> </div> OBS: O script ao descer o SCROLL aparece uma barra na tela (#BOX_SLIDETOP) depois de aparecer, você passa o mouse em cima (HOVER) abre o (#BOX_SLIDETOP_EXTRA), aí some o #BOX_SLIDE e fica somente o BOX_SLIDE_EXTRA. depois quando retorno o scroll novamente para cima, ele some, depois se VOLTO para a posição onde aparece a DIV, ele não executa mais a AÇÃO DO JQUERY. Se conseguirem me dar uma luz no JQUERY, agradeço. Obrigado.
  11. Wagner Martins Bodyboard

    Pegar com $_POST valores dos campos gerados de um select dinâmico

    Código que gera os campos a partir de um select $(document).ready(function(){ $(document).on('change', '#sectionChooser', function(){ var myID = $(this).val(); $('.panel').each(function(){ myID === $(this).attr('id') ? $(this).show() : $(this).hide(); console.log("ok"); }); }) $(document).on('change', '[name^="bairro"]', function(){ var bairroID = $(this).val(); console.log("ok"); if(bairroID){ $.ajax({ type:'POST', url:'ajax_data2.php', data:'bairro_id='+bairroID, success:function(html){ $('#rua[name^="rua"]').html(html); } }); }else{ $('#rua').html('<option value="">Select categoria first</option>'); } }); }); Código que uso para pegar os campos com o method $_POST $(document).ready(function () { $('#form_cadastros_empresa').validate({ // initialize the plugin rules: { endereco_buscauiva: { required: true, }, nome: { required: true, } }, messages: { required: "Campo obrigatório", remote: "Please fix this field.", email: "Por favor insira um email válido", url: "Please enter a valid URL.", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Por favor digite apenas números.", digits: "Please enter only digits.", equalTo: "Please enter the same value again.", maxlength: $.validator.format( "Não insira mais do que {0} caracteres." ), minlength: $.validator.format( "Digite pelo menos {0} caracteres." ), rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ), range: $.validator.format( "Please enter a value between {0} and {1}." ), max: $.validator.format( "Please enter a value less than or equal to {0}." ), min: $.validator.format( "Please enter a value greater than or equal to {0}." ), step: $.validator.format( "Please enter a multiple of {0}." ) }, submitHandler: function (form) { // for demo $(".resultado_form_cadastros_empresa").html('<div class="spinner"></div>'); var form = $('#form_cadastros_empresa'); var Logomarca = $('#Logomarca').prop('files')[0]; var imagem1 = $('#imagem1').prop('files')[0]; var imagem2 = $('#imagem2').prop('files')[0]; var imagem3 = $('#imagem3').prop('files')[0]; var form_data = new FormData(); var categoria = $("#categoria").val(); var subcategoria = $("#subcategoria").val(); var banner_tempo = $("#banner_tempo").val(); var Nome = $("#Nome").val(); var bairro = $("#bairro").val(); var rua = $("#rua").val(); var Numero = $("#Numero").val(); var Complemento = $("#Complemento").val(); var CEP = $("#CEP").val(); var funcionamento = $("#funcionamento").val(); var email = $("#email").val(); var Telefone1 = $("#Telefone1").val(); var Telefone2 = $("#Telefone2").val(); var Telefone3 = $("#Telefone3").val(); var descricao = $("#descricao").val(); var Site = $("#Site").val(); var Facebook = $("#Facebook").val(); var Intsagram = $("#Instagram").val(); var Twitter = $("#Twitter").val(); var endereco_buscauiva = $("#endereco_buscauiva").val(); var palavras_chave = $("#palavras_chave").val(); var marcas = $("#marcas").val(); var sectionChooser = $("#sectionChooser").val(); var plano_congelado = $("#plano_congelado").val(); var nenhum_tipo = ''; if($("#nenhum_tipo").is(':checked')) { nenhum_tipo = $("#nenhum_tipo").val(); } var Bloco_1 = ''; if($("#Bloco_1").is(':checked')) { Bloco_1 = $("#Bloco_1").val(); } var Bloco_2 = ''; if($("#Bloco_2").is(':checked')) { Bloco_2 = $("#Bloco_2").val(); } var Bloco_3 = ''; if($("#Bloco_3").is(':checked')) { Bloco_3 = $("#Bloco_3").val(); } var Bloco_4 = ''; if($("#Bloco_4").is(':checked')) { Bloco_4 = $("#Bloco_4").val(); } var Bloco_5 = ''; if($("#Bloco_5").is(':checked')) { Bloco_5 = $("#Bloco_5").val(); } var nenhum_tempo = $("#nenhum_tempo").val(); var aparecer_4_segundos = $("#aparecer_4_segundos").val(); var aparecer_8_segundos = $("#aparecer_8_segundos").val(); var dia_vencimento = $("#dia_vencimento").val(); var cadastros_empresa = $("#cadastros_empresa").val(); var nomeUsuario = $("#nomeUsuario").val(); var senha = $("#senha").val(); form_data.append('categoria', categoria); form_data.append('subcategoria', subcategoria); form_data.append('cadastros_empresa', cadastros_empresa); form_data.append('Nome', Nome); form_data.append('banner_tempo', banner_tempo); form_data.append('rua', rua); form_data.append('bairro', bairro); form_data.append('Numero', Numero); form_data.append('Complemento', Complemento); form_data.append('CEP', CEP); form_data.append('funcionamento', funcionamento); form_data.append('email', email); form_data.append('Telefone1', Telefone1); form_data.append('Telefone2', Telefone2); form_data.append('Telefone3', Telefone3); form_data.append('descricao', descricao); form_data.append('Site', Site); form_data.append('Facebook', Facebook); form_data.append('Instagram', Intsagram); form_data.append('Twitter', Twitter); form_data.append('endereco_buscauiva', endereco_buscauiva); form_data.append('palavras_chave', palavras_chave); form_data.append('marcas', marcas); form_data.append('sectionChooser', sectionChooser); form_data.append('plano_congelado', plano_congelado); form_data.append('nenhum_tipo', nenhum_tipo); form_data.append('Bloco_1', Bloco_1); form_data.append('Bloco_2', Bloco_2); form_data.append('Bloco_3', Bloco_3); form_data.append('Bloco_4', Bloco_4); form_data.append('Bloco_5', Bloco_5); form_data.append('nenhum_tempo', nenhum_tempo); form_data.append('aparecer_4_segundos', aparecer_4_segundos); form_data.append('aparecer_8_segundos', aparecer_8_segundos); form_data.append('dia_vencimento', dia_vencimento); form_data.append('logomarca', Logomarca); form_data.append('imagem1', imagem1); form_data.append('imagem2', imagem2); form_data.append('imagem3', imagem3); form_data.append('nomeUsuario', nomeUsuario); form_data.append('senha', senha); //alert(form_data); $.ajax({ url: 'form_cadastro.php', // point to server-side PHP script dataType: 'text', // what to expect back from the PHP script, if anything cache: false, contentType: false, processData: false, data: form_data, type: 'POST', success: function(php_script_response){ //alert(php_script_response); // display response from the PHP script, if any // pegando os dados $('html, body').animate({ scrollTop: 0 }, 0); } }) .done(function(data){ $('.resultado_form_cadastros_empresa').fadeOut('slow', function(){ $('.resultado_form_cadastros_empresa').fadeIn('slow').html(data); }); }) .fail(function(){ alert('Ajax Submit Failed ...'); }); return false; // for demo } }); Como faria para pegar os valores gerados no .panel e levar para uma página php? Considerando que esses valores são dinâmicos vindo de um select, como podem ver no código. Html do .panel <div class="panel" id="1" style="display: none;"> <div class="col-sm-12"> <label><b>Diamante</b></label> </div> <div class="form-group "> <div class="row"> <div class="col-sm-12"> <label for="endereco_buscauiva">Endereço Buscauiva</label> <input type="text" class="form-control" id="endereco_buscauiva" placeholder="http://buscaiuva.com.br/NomeDaEmpresa" required=""> </div> </div> </div> <div class="form-group "> <div class="row"> <div class="col-sm-12"> <label for="Logomarca">Logomarca</label> <input type="file" class="form-control" id="Logomarca"> </div> </div> </div> <div class="form-group "> <div class="row"> <div class="col-sm-4"> <label for="imagem1">Imagem banner 1</label> <input type="file" class="form-control" id="imagem1"> </div> <div class="col-sm-4"> <label for="imagem2">Imagem banner 2</label> <input type="file" class="form-control" id="imagem2"> </div> <div class="col-sm-4"> <label for="imagem3">Imagem banner 3</label> <input type="file" class="form-control" id="imagem3"> </div> </div> </div>
  12. Wagner Martins Bodyboard

    Quando vem do Ajax não funciona o select

    Quando o **#sectionChooser** vem do Ajax o <div class="panel" id="1" style="display: block;"> não funciona o select **#bairros** para colocar a #rua, onde estaria o problema? Html <div class="col-sm-6"> <label for="Planos">Planos</label> <select name="Planos" id="sectionChooser" class="form-control valid" aria-invalid="false"> <option value="">Selecione</option> <option value="1">Diamante</option><option value="2">Ouro</option><option value="3">Prata</option><option value="4">Light</option><option value="5">Free</option><option value="19">Link</option> </select> <div class="panel" id="1" style="display: block;"> <div class="col-sm-12"> <label><b>Diamante</b></label> </div> </div> <div class="col-sm-6"> <label for="Bairro">Bairro</label> <select class="form-control valid" name="bairro" id="bairro3" required="" aria-invalid="false"> <option value="">Selecione</option> <option value="1">teste bairro</option><option value="2">teste bairro 2 3</option><option value="3">ação bairros</option><option value="4">Centro</option> </select> </div> <div class="col-sm-6"> <label for="Rua">Rua</label> <select class="form-control" name="rua" id="rua" required=""> </select> </div> estou tentando assim, mais ainda não deu $(document).ready(function(){ $(document).on('change', '#sectionChooser', function(){ var myID = $(this).val(); $('.panel').each(function(){ myID === $(this).attr('id') ? $(this).show() : $(this).hide(); console.log("ok"); }); }) $(document).on('change', '#bairro', function(){ var bairroID = $(this).val(); if(bairroID){ $.ajax({ type:'POST', url:'ajax_data2.php', data:'bairro_id='+bairroID, success:function(html){ $('#rua').html(html); console.log("ok"); } }); }else{ $('#rua').html('<option value="">Select categoria first</option>'); } }); });
  13. Tenho um login bem básico em ajax e php, está funcionando perfeitamente. Estou precisando passar o parâmetro que ele inseriu (email), para a próxima página no caso a 'inicial.html' Como faço para passar esse parâmetro via jQuery/Ajax para a outra página? Se a requisição no caso meu post pra login, retornasse um valor, por exemplo o nome dele e idade quando fizesse a verificação de login, como faria para pegar isso tudo via ajax e passar pra página html? Ps: Todas as páginas do projeto são html e aonde existe comunicação com banco ou requests é tudo via ajax. $(document).ready(function () { $('#erro_log').hide(); $('#form_login').submit(function () { var email = $('#email').val(); var senha = $('#senha').val(); $.ajax({ url: "http://site.com.br/login", type: "post", data: "email=" + email + "&senha=" + senha, success: function (result) { if (result) { location.href = 'inicio.html' } else { $('#erro_log').show(); } } }) return false; }) });
  14. Olá, estou tentando enviar um array multidimensional para o Promise.all(), mas mesmo pegando a property path direto do navegador o items["0"] aparece como undefined, é possível ver que o objeto esta acessível pelo console.log(data[0]) ou console.log(data[1]), segue o código abaixo: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Promise Multidimensional Array</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> <button onClick="start()">Start</button> <script> function start(){ var array = [ ["hTWKbfoikeg","Nirvana - Smells Like Teen Spirit"], ["1G4isv_Fylg","Coldplay - Paradise"], ["NMNgbISmF4I","Aerosmith - Crazy"], ["btPJPFnesV4","Survivor - Eye Of The Tiger"], ["gEPmA3USJdI","AC/DC - Highway to Hell"] ], promises = [], list = []; for(var i =0; i < array.length; i++){ pushGet(array[i][0],array[i][1]); //pushGet(array[i][0]); } Promise.all(promises).then(function(r){ r.forEach(function(data){ console.log(data[0]); console.log(data[1]); var title = data[1]; //var viewCount = parseInt(data["0"].responseJSON.items["0"].statistics.viewCount); //var currentId = data["0"].responseJSON.items["0"].id; list.push([/*viewCount,currentId,*/title]); }); }); console.log(list); function pushGet(id,title){ var val = $.getJSON("https://www.googleapis.com/youtube/v3/videos?part=contentDetails,statistics&id=" + id + "&key=AIzaSyDIWyCOtTKDFyH9N4YlQPBP8VG4NX3Pgp4"); promises.push([val,title]); //promises.push(val); } } </script> </body> </html> Agradeço a atenção!
  15. Carcleo

    Falha ao final do slide show

    Estou tentando fazer um slide show personalizado para fins de aprendizagem. Avancei bastante já. Porém estou tendo um erro do qual não estou conseguindo me livrar. O slide corre bem, mas quando chega na ultima imagem, ele acha uma imagem em branco e bota ela no lugar em que deveria ser exibida a primeira imagem novamente. Cada imagem do slide tem uma legenda feito com um label e ambos dentro de uma div. O link abaixo mostra o slide em funcionamento. http://funerariasaopedro.net.br/novo/index6.php Vou postar abaixo o código completo. Se alguém puder me ajudar desde já agradeço. CSS <style> * { margin: 0; padding: 0; } .fade { -webkit-animation-name: fade; -webkit-animation-duration: 1.5s; animation-name: fade; animation-duration: 1.5s; } div.slider { overflow: hidden; position: relative; width: 100vw; height: 300px; } div.slider:hover { animation-play-state: paused; } div.slider > div.slide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: auto; } div.slider div.slide img { width: 100%; } div.slider div.ativa { display: block; } div.slider div.ativa img { animation: slider 1s linear; animation-fill-mode: forwards; } div.slider div.ativa img:hover { -moz-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; } @keyframes slider { 0% { transform: scale(1); } 100% { transform: scale(1.1); } } @-webkit-keyframes fade { from { opacity: .4 } to { opacity: 1 } } @keyframes fade { from { opacity: .4 } to { opacity: 1 } } div.slider div.slide span { position: absolute; width: 100%; line-height: 40px; bottom: 0; z-index: 500; color: rgb(255,255,255); text-align: center; } div.slider nav { position: absolute; bottom: 0; width: 100%; height: 40px; background-color: rgb(0, 0, 0, .5); z-index: 400; text-align: center; } div.slider nav button.anterior, div.slider nav button.proximo { position: absolute; width: 100px; height: 40px; text-align: center; } div.slider nav button.anterior { left: 10%; } div.slider nav button.proximo { right: 10%; } div.slider nav button.proximo label { top: calc(50%-20px); } </style> JAVASCRIT <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(document).ready(function(e) { //$("div.slider").height($("div.slider div.slide").height()) const blocos = $("div.slider div.slide"); function startslider() { ativa = $("div.slider div.ativa") if (!$(ativa).next().length) { ativa = blocos[0] } $(ativa) .removeClass("ativa") .next() .addClass("ativa") setTimeout(startslider, 5000) } setTimeout(startslider, 5000) $("nav button.anterior").click(function(){ prev = $("div.slider div.ativa").prev(); // alert (blocos.length); prev = prev.length ? prev : blocos[ blocos.length - 1 ]; mostraBloco(prev); }) $("nav button.proximo").click(function(){ next = $("div.slider div.ativa").next(); next = next.length ? next : blocos[0]; mostraBloco(next); }) /* Função para exibir as imagens */ function mostraBloco(next) { ativa = $("div.slider div.ativa") $(ativa).removeClass("ativa") $(next).addClass("ativa") } }); </script> HTML <div class="slider"> <div class="slide fade ativa"> <img src="_img/_banner/_site/bg_1.jpg" /> <span>Este é 1</span> </div> <div class="slide fade"> <img src="_img/_banner/_site/bg_2.jpg" /> <span>Este é 2</span> </div> <div class="slide fade"> <img src="_img/_banner/_site/bg_3.jpg" /> <span>Este é 3</span> </div> <nav> <button class="anterior">Anterior</button> <button class="proximo">Próximo</button> </nav> </div>
  16. Rogerio Pancini

    Gráfico em css ou jquery

    Boa noite pessoal. Será que é possível criar uma gráfico assim com jquery, html ou css? Na verdade, acho que o problema seria criar as setas. Se alguém já fez algo do tipo e puder dar uma luz, eu agradeço.
  17. JulinhoooO

    Função ativar somente na 2ª chamada

    Boa tarde, tenho uma função que fecha meu aplicativo,e gostaria que ela só fechasse o app depois que o usuário apertasse o botão voltar pela 2ª vez. Fiz dessa forma, e está funcionando, mas queria saber se essa é a melhor maneira de fazer, ou se o que fiz é meio que uma gambiarra. var click = 0; function backKeyDown() { if (click == 0) { click = 1; $('body').prepend('<div class="aviso"><span>Pressione novamente para sair.</span></div>'); /*Remove o aviso após 3s*/ setTimeout(function(){$(document).find(".aviso").remove();}, 3000); /*Volta o valor da variável para 0 após 3s, impedindo que o usuário feche o app pressionando o botão apenas uma vez*/ setTimeout(function (){click = 0;}, 3000); } else if(click == 1){ exitAplicativo(); } }
  18. jefersonlsch

    Executar o efeito somente no primeiro scroll

    Estou utilizando o plugin ScrollMe, do Nick Pearson. Até ai tudo bem, as animações estão funcionando perfeitamente. Mas, preciso que o efeito inverso não aconteça ao voltar para o topo do site. Alguma ideia de como posso desativar isto? Ou algum outro plugin em jQuery para utilizar.
  19. Vitor Leite

    Ajuda em projeto com Jquery?

    Olá galera! Estou precisando de ajuda na diagramação de um projeto em JQuery. O que estou tentando fazer é o seguinte: vários usuários estão online e logados no site. Um deles clica em uma DIV e começa a buscar outros usuários online. Quando 10 pessoas clicarem na mesma DIV, somente esses 10 são direcionados a uma página, em tempo real. (Long Polling). Não sei como começar a pensar esse projeto. Agradeço a ajuda de cada um. Ótimo restante de feriado e ótima semana para todos. :)
  20. JulinhoooO

    Capturar id para url do iframe

    Preciso de ajuda para capturar o id de um elemento para inserir no src de um iframe <a class="videoLink" id="https://www.youtube.com/embed/tZZ3nEdw-2c"> <li class="list-unstyled mb-1 liVideo"> <div class="float-left"> <img src="https://i.ytimg.com/vi/tZZ3nEdw-2c/default.jpg" alt="Céu e terra se encontram - Davi Fernandes &amp; Cultura do Céu (DVD Céu e terra se encontram)"> </div> <div class=""> <h6>Céu e terra se encontram - Davi Fernandes &amp; Cultura do Céu (DVD Céu e terra se encontram)</h6> <small class="float-right">16:50</small> </div> </li> </a> Função jQuery que tentei utilizar: $(document).click(".videoLink", function(event){ event.preventDefault; var url = $(this).attr("id"); console.log(url); var iframeVideo = '<iframe width="560" height="315" src="'+url+'" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>' $("#iframeVideo").html(iframeVideo); $("#iframeVideo").show(); }) Porém quando clico no link ele me retorna 'undefined' como o valor da variável url.
  21. vitorweb

    Scroll infinito com Jquery [PROBLEMA]

    Estou tentando criar uma páginação com scroll infinito com jquery para fazer um determinado evento, quando a barra de rolagem da página chega ao fim.... Mas o evento ocorre quando a barra fica no inicio e nao no final, segue o script... var win = $(window); win.scroll(function () { if ($(document).height() - win.height() == win.scrollTop()) { } }); Grato pela ajuda...
  22. Wagner Martins Bodyboard

    Carousel com duração de exibição diferente para cada item

    Como eu poderia fazer um carousel com um elemento, sendo que cada elemento terá uma duração de exibição diferente? Ex.: Um (elemento) de 5 segundos; outro de 8 segundos. Consegui fazer com o Slick do jQuery, porém não consigo estipular o tempo que cada elemento é exibido. Como posso fazer isso? Resumindo, quero que o item 1 fique um tempo X o item 2 um tempo Y, o item 3 um tempo Z etc... https://jsfiddle.net/b5bqk68j/3804/
  23. Olá! Boa noite. Pessoal, gostaria de saber se é possível exibir o conteúdo das páginas de um site em php somente após ser carregado todos os elementos? Como é um site "meio pesadinho", ao carregar a página, alguns elementos aparecem fora de lugar e gostaria que os usuários somente vissem a página quando estiver tudo carregado (na posição certa). Eu tentei alguns códigos que encontrei em pesquisas, mas não "funcionaram" (não sei se é porque estou colocando em locais errados no código, ou se falta implementar algo), pois não tenho conhecimento em programação. Abaixo um de códigos de um exemplo que utilizei (mas não modificou nada na minha página): <script type="text/javascript"> // Este evendo é acionado após o carregamento da página jQuery(window).load(function() { //Após a leitura da pagina o evento fadeOut do loader é acionado, esta com delay para ser perceptivo em ambiente fora do servidor. jQuery("#loader").delay(2000).fadeOut("slow"); }); </script> Agradeço a atenção.
  24. Rendrix Alves Schweinsteiger

    autocomplete jquery

    Meu codigo ta autocompletando suave mas, preciso que ele imprima as informações que vai autocompletado alguem pode me dar um exemplo? meu cod: <?php $link = mysqli_connect("localhost", "root", "", "projetomodelo");// conexao com o banco mysqli_select_db($link, "projetomodelo"); $result = mysqli_query($link, "SELECT * FROM tb_produto"); $array = array(); if($result){ while ($row = mysqli_fetch_array($result)){ $product = utf8_encode($row['nome']); array_push($array, $product); } } ?> ;;;;;;;;// algumas partes do formulario // ta td certo por aqui ;; agora o restante do cod?: <input id="tag" value="" > <script type="text/javascript"> $(document).ready(function(){ var n = <?= json_encode($array) ?> $("#tag").autocomplete({ source:n, select:function(event, item){ var params ={ nom: item.item.value
  25. Tenho uma requisição pra testar se estou conectado na internet: A questão é a seguinte, mesmo estando conectado e conseguindo acessar o arquivo, quando eu testo a variável após a requisição ela continua como false. Qualquer outra coisa que eu coloque dentro do success funciona perfeitamente, mas o valor da variável não é alterado.,
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.