trAvis - MANAGER
Edit File: plus-switcher.min.js
/*Switcher*/(function(a){"use strict";var b=function(a,b){if(0<a.find(".theplus-switcher").length){var c,d,e,g,h=a.find(".theplus-switcher"),j=h.data("id"),k=h.find(".switch-toggle"),l=h.find(".switch-1"),m=h.find(".switch-2");b(k).unbind().on("click",function(){c=b(this).closest(".theplus-switcher").find(".switcher-section-1"),d=b(this).closest(".theplus-switcher").find(".switcher-section-2"),e=b(this).closest(".theplus-switcher").find(".switcher-toggle"),c.toggle(),d.toggle(),e.hasClass("active")?e.removeClass("active").addClass("inactive"):e.removeClass("inactive").addClass("active"),(b("#"+j+" .list-isotope-metro .post-inner-loop").length||b("#"+j+" .list-isotope .post-inner-loop").length)&&setTimeout(function(){b("#"+j+" .list-isotope-metro .post-inner-loop,#"+j+" .list-isotope .post-inner-loop").isotope("layout")},10),b("#"+j+" .list-carousel-slick > .post-inner-loop").length&&b("#"+j+" .list-carousel-slick > .post-inner-loop").slick("setPosition")}),b(l).unbind().on("click",function(){c=b(this).parents(".theplus-switcher").find(".switcher-section-1"),d=b(this).parents(".theplus-switcher").find(".switcher-section-2"),e=b(this).parents(".theplus-switcher").find(".switcher-toggle"),g=b(this).parents(".theplus-switcher").find(".switch-toggle"),g.prop("checked",!1),c.show(),d.hide(),e.hasClass("active")?e.removeClass("active").addClass("inactive"):e.removeClass("inactive").addClass("active"),(b("#"+j+" .list-isotope-metro .post-inner-loop").length||b("#"+j+" .list-isotope .post-inner-loop").length)&&setTimeout(function(){b("#"+j+" .list-isotope-metro .post-inner-loop,#"+j+" .list-isotope .post-inner-loop").isotope("layout")},10),b("#"+j+" .list-carousel-slick > .post-inner-loop").length&&b("#"+j+" .list-carousel-slick > .post-inner-loop").slick("setPosition")}),b(m).unbind().on("click",function(){c=b(this).parents(".theplus-switcher").find(".switcher-section-1"),d=b(this).parents(".theplus-switcher").find(".switcher-section-2"),e=b(this).parents(".theplus-switcher").find(".switcher-toggle"),g=b(this).parents(".theplus-switcher").find(".switch-toggle"),g.prop("checked",!0),c.hide(),d.show(),e.hasClass("active")?e.removeClass("active").addClass("inactive"):e.removeClass("inactive").addClass("active"),(b("#"+j+" .list-isotope-metro .post-inner-loop").length||b("#"+j+" .list-isotope .post-inner-loop").length)&&setTimeout(function(){b("#"+j+" .list-isotope-metro .post-inner-loop,#"+j+" .list-isotope .post-inner-loop").isotope("layout")},10),b("#"+j+" .list-carousel-slick > .post-inner-loop").length&&b("#"+j+" .list-carousel-slick > .post-inner-loop").slick("setPosition")})}};a(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-switcher.default",b)})})(jQuery);