MOON
Server: Apache
System: Linux u18017238.onlinehome-server.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User: emblazeone (1003)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/emblazeone/public_html/lyyt/frontend/web/theme/js/script.min.js
!function(s){s(document).ready(function(){function e(){s(".racion-days").on("click","li",function(){var e=s(this).index();i.slick("slickGoTo",e),s(".racion-days>li").removeClass("active"),s(this).addClass("active")}),console.log(s(".tabs-item.active .racion-days>li:first-child").click())}s('input[type="tel"]').mask("+38 (099) 999-99-99"),s(window).on("scroll",function(){s("body")[s(this).scrollTop()>5?"addClass":"removeClass"]("scroll")}),s("body").on("click","a",function(e){var t=s(this).attr("href"),i=s(this).attr("data-toggle");if(s(t).length&&"tab"!==i){var o=s(t).offset().top-s(".header").height();e.preventDefault(),s("body,html").animate({scrollTop:o},1500)}}),s("body").on("click",".btn-racion",function(e){var t=s(this).attr("href");s(t).click()});var t=s(".main-slider__items");t.slick({arrows:!0,dots:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,appendArrows:s(".main-slider__arrows .container"),prevArrow:'<button class="slick-prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><polyline points="15 18 9 12 15 6"></polyline></svg></button>',nextArrow:'<button class="slick-next"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg></button>',responsive:[{breakpoint:768,settings:{arrows:!1,dots:!0}}]}),s(".main-slider__nav>div:first").addClass("current-slide"),s(".main-slider__nav").on("click","div",function(){var e=s(this).index();t.slick("slickGoTo",e),s(".main-slider__nav>div").removeClass("current-slide"),s(this).addClass("current-slide")}),t.on("beforeChange",function(e,t,i,o){s(".main-slider__nav>div").removeClass("current-slide"),s(".main-slider__nav>div").eq(o).addClass("current-slide")}),s("#calc-height").inputmask("999 см",{placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!0}),s("#calc-weight").inputmask("999 кг",{placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!0}),s("#calc-age").inputmask("99 года",{placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!0,oncomplete:function(){}}),s(".btn-calc").on("click",function(){var e=parseInt(s("#calc-height").val()),t=parseInt(s("#calc-weight").val()),i=parseInt(s("#calc-age").val()),o=s('.calc input[name="calc-activity"]:checked').attr("data-ratio"),n=5;"woman"==s("#calc-sex").val()&&(n=-161);var a=Math.round((10*t+6.25*e-5*i+n)*o);s(".calc-res__count").text(a)}),s(".btn-calc-toggle").on("click",function(){s(".calc").show()}),s(".tabs").length>0&&(s(".tabs-nav>div:first-child").addClass("active"),s(".racion-nav__item:nth-child(2)").addClass("similar"),s(".tabs-content>div:first-child").addClass("active"),s(".tabs-nav").on("click",".tabs-nav__item:not(.active)",function(){s(this).addClass("active").siblings().removeClass("active").closest("div.tabs").find("div.tabs-item").removeClass("active").eq(s(this).index()).addClass("active"),s(this).hasClass("racion-nav__item")&&(s(".racion-nav__item").removeClass("similar"),s(this).prev().addClass("similar"),s(this).next().addClass("similar"),i.slick("unslick"),i.slick(o),e())})),s(".racion-nav").slick({arrows:!0,infinite:!1,slidesToShow:7,slidesToScroll:1,prevArrow:'<button class="slick-prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><polyline points="15 18 9 12 15 6"></polyline></svg></button>',nextArrow:'<button class="slick-next"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg></button>',responsive:[{breakpoint:768,settings:{slidesToShow:5,arrows:!0}},{breakpoint:575,settings:{slidesToShow:3,arrows:!0}},{breakpoint:479,settings:{slidesToShow:2,arrows:!0}}]});var i=s(".racion-menu"),o={arrows:!0,infinite:!1,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,prevArrow:'<button class="slick-prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><polyline points="15 18 9 12 15 6"></polyline></svg></button>',nextArrow:'<button class="slick-next"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg></button>',responsive:[{breakpoint:992,settings:{arrows:!1,dots:!1}}]};if(i.slick(o),e(),i.on("beforeChange",function(e,t,i,o){s(".tabs-item.active .racion-days>li").removeClass("active"),s(".tabs-item.active .racion-days>li").eq(o).addClass("active")}),s(".testimonials__items").length>0){s(".testimonials__items").slick({arrows:!1,dots:!0,infinite:!1,slidesToShow:1,slidesToScroll:1,centerMode:!0,variableWidth:!0,responsive:[{breakpoint:768,settings:{centerMode:!1,variableWidth:!1}}]})}s(".accord-title").on("click",function(e){var t=s(this).closest(".accord");s(this).hasClass("active")?(t.find(".accord-content").slideUp("fast").removeClass("active"),s(this).removeClass("active")):(t.find(".accord-content").slideUp("fast").removeClass("active"),t.find(".accord-title").removeClass("active"),s(this).addClass("active"),s(this).next().slideDown("fast").addClass("active"),t.removeClass("open-first"))})})}(jQuery);