PageSourceSearch

https://fcgno.com/wp-content/themes/kindlycare/fw/js/core.init.min.js

js fcgno.com collected 2026-10-04 01:06:22 UTC 40,934 bytes, 1 lines download raw bytes

1jQuery(document).ready(function(){KINDLYCARE_STORAGE.theme_init_counter=0;kindlycare_init_actions()});jQuery(window).on("beforeunload",function(){jQuery("#page_preloader").css({display:"block",opacity:0}).animate({opacity:0.8},300)});function kindlycare_init_actions(){if(KINDLYCARE_STORAGE.vc_edit_mode&&jQuery(".vc_empty-placeholder").length==0&&KINDLYCARE_STORAGE.theme_init_counter++<30){setTimeout(kindlycare_init_actions,200);return}jQuery("#page_preloader").animate({opacity:0},500,function(){jQuery(this).css({display:"none"})});if(kindlycare_is_retina()){kindlycare_set_cookie("kindlycare_retina",1,365)}kindlycare_ready_actions();setTimeout(function(){jQuery(window).on("resize.kindlycare",function(){kindlycare_resize_actions();kindlycare_scroll_actions()}).trigger("resize.kindlycare")},10);jQuery(window).on("scroll.kindlycare",function(){kindlycare_scroll_actions()})}function kindlycare_ready_actions(){if(window.kindlycare_skin_ready_actions){kindlycare_skin_ready_actions()}if(window.kindlycare_theme_ready_actions){kindlycare_theme_ready_actions()}jQuery(".widget ul > li").each(function(){if(jQuery(this).find("ul").length>0){jQuery(this).addClass("has_children")}});jQuery(".widget_archive a").each(function(){var a=jQuery(this).html().split(" ");if(a.length>1){a[a.length-1]="<span>"+a[a.length-1]+"</span>";jQuery(this).html(a.join(" "))}});jQuery(".widget_calendar").on("click",".month_prev a, .month_next a",function(d){var c=jQuery(this).parents(".wp-calendar");var a=jQuery(this).data("month");var f=jQuery(this).data("year");var b=jQuery(this).data("type");jQuery.post(KINDLYCARE_STORAGE.ajax_url,{action:"calendar_change_month",nonce:KINDLYCARE_STORAGE.ajax_nonce,month:a,year:f,post_type:b}).done(function(g){var i={};try{i=JSON.parse(g)}catch(h){i={error:KINDLYCARE_STORAGE.ajax_error};console.log(g)}if(i.error===""){c.parent().fadeOut(200,function(){jQuery(this).find(".wp-calendar").remove();jQuery(this).append(i.data).fadeIn(200)})}});d.preventDefault();return false});jQuery(".video_background").each(function(){var a=jQuery(this).data("youtube-code");if(a){jQuery(this).tubular({videoId:a})}});jQuery(".slider_over_button,.slider_over_close").on("click",function(a){jQuery(this).parent().toggleClass("opened");a.preventDefault();return false});if(KINDLYCARE_STORAGE.menu_cache){kindlycare_prepare_menus()}if(jQuery("ul#menu_side").length>0){jQuery("ul#menu_side").clone().removeAttr("id").removeClass("menu_side_nav").addClass("menu_side_responsive").insertAfter("ul#menu_side");kindlycare_show_current_menu_item(jQuery(".menu_side_responsive"),jQuery(".sidebar_outer_menu_responsive_button"))}if(jQuery(".header_mobile").length>0){jQuery(".header_mobile .menu_main_nav_area ul#menu_main").removeAttr("id");jQuery(".header_mobile .menu_button").on("click",function(){jQuery(".header_mobile .side_wrap").toggleClass("open");jQuery(".header_mobile .mask").toggleClass("show");jQuery("html").toggleClass("menu_mobile_open");if(kindlycare_browser_is_ios()&&jQuery("body").hasClass("menu_mobile")&&jQuery("div.side_wrap").hasClass("open")){jQuery("body").data("overflow",jQuery("body").css("overflow")).css("overflow","hidden");jQuery("body").data("position",jQuery("body").css("position")).css("position","fixed")}});jQuery(".header_mobile .mask, .header_mobile .side_wrap .close").on("click",function(){jQuery(".header_mobile .side_wrap").removeClass("open");jQuery(".header_mobile .mask").removeClass("show");jQuery("html").removeClass("menu_mobile_open");if(kindlycare_browser_is_ios()&&jQuery("body").hasClass("menu_mobile")&&!jQuery("div.side_wrap").hasClass("open")){jQuery("body").css("overflow",jQuery("body").data("overflow"));jQuery("body").css("position",jQuery("body").data("position"))}})}jQuery(".menu_pushy_button").on("click",function(a){jQuery("body").addClass("pushy-active").css("overflow","hidden");jQuery(".site-overlay").fadeIn("fast");a.preventDefault();return false});jQuery(".pushy .close-pushy,.site-overlay").on("click",function(a){jQuery("body").removeClass("pushy-active").css("overflow","visible");jQuery(".site-overlay").fadeOut("fast");a.preventDefault();return false});jQuery(".sidebar_outer_widgets_button").on("click",function(a){jQuery(".sidebar_outer_widgets").slideToggle();a.preventDefault();return false});jQuery(".header_mobile .menu_main_nav .menu-item-has-children > a, .menu_side_responsive .menu-item-has-children > a, .menu_pushy_nav_area .menu-item-has-children > a, body:not(.woocommerce) .widget_area:not(.footer_wrap) .widget_product_categories ul.product-categories .has_children > a").prepend('<span class="open_child_menu"></span>');jQuery(".header_mobile .menu_main_nav, .menu_side_responsive, .menu_pushy_nav_area, body:not(.woocommerce) .widget_area:not(.footer_wrap) .widget_product_categories").on("click","li a,li a .open_child_menu, ul.product-categories.plain li a .open_child_menu",function(c){var a=jQuery(this).parents(".menu_main_nav").length>0;var b=jQuery(this).hasClass("open_child_menu")?jQuery(this).parent():jQuery(this);if((!a||jQuery("body").hasClass("menu_mobile"))&&(b.parent().hasClass("menu-item-has-children")||b.parent().hasClass("has_children"))){if
1(b.siblings("ul:visible").length>0){b.siblings("ul").slideUp().parent().removeClass("opened")}else{jQuery(this).parents("li").siblings("li").find("ul:visible").slideUp().parent().removeClass("opened");b.siblings("ul").slideDown().parent().addClass("opened")}}if(jQuery(this).hasClass("open_child_menu")||b.attr("href")=="#"){c.preventDefault();return false}});kindlycare_init_sfmenu(".menu_main_nav_area ul#menu_main, ul#menu_user, ul#menu_side, body:not(.woocommerce) .widget_area:not(.footer_wrap) .widget_product_categories ul.product-categories");if(KINDLYCARE_STORAGE.menu_slider){jQuery("#menu_main").spasticNav({color:KINDLYCARE_STORAGE.accent2_color})}if(KINDLYCARE_STORAGE.toc_menu!="hide"&&KINDLYCARE_STORAGE.toc_menu!="no"){kindlycare_build_page_toc()}jQuery("#toc, ul#menu_main li, ul#menu_user li, ul#menu_side li, ul#menu_footer li, ul#menu_pushy li").on("click","a",function(d){var a=jQuery(this).attr("href");if(a===undefined){return}var g=a.indexOf("#");if(g<0||a.length==1){return}if(jQuery(a.substr(g)).length>0){var f=window.location.href;var c=f.indexOf("#");if(c>0){f=f.substring(0,c)}var b=g==0;if(!b){b=f==a.substring(0,g)}if(b){kindlycare_document_animate_to(a.substr(g));kindlycare_document_set_location(g==0?f+a:a);d.preventDefault();return false}}});KINDLYCARE_STORAGE.top_panel_height=0;KINDLYCARE_STORAGE.side_panel_height=0;jQuery(".pager_cur").on("click",function(a){jQuery(".pager_slider").slideDown(300,function(){kindlycare_sc_init(jQuery(".pager_slider").eq(0))});a.preventDefault();return false});jQuery("#viewmore_link").on("click",function(a){if(!KINDLYCARE_STORAGE.viewmore_busy&&!jQuery(this).hasClass("viewmore_empty")){jQuery(this).parent().addClass("loading");KINDLYCARE_STORAGE.viewmore_busy=true;jQuery.post(KINDLYCARE_STORAGE.ajax_url,{action:"view_more_posts",nonce:KINDLYCARE_STORAGE.ajax_nonce,page:KINDLYCARE_STORAGE.viewmore_page+1,data:KINDLYCARE_STORAGE.viewmore_data,vars:KINDLYCARE_STORAGE.viewmore_vars}).done(function(b){var f={};try{f=JSON.parse(b)}catch(d){f={error:KINDLYCARE_STORAGE.ajax_error};console.log(b)}jQuery("#viewmore_link").parent().removeClass("loading");KINDLYCARE_STORAGE.viewmore_busy=false;if(f.error===""){var c=jQuery(".content").eq(0);if(c.find(".isotope_wrap").length>0){c=c.find(".isotope_wrap").eq(0)}if(c.hasClass("isotope_wrap")){c.data("last-width",0).append(f.data);KINDLYCARE_STORAGE.isotope_init_counter=0;kindlycare_init_appended_isotope(c,f.filters)}else{jQuery("#viewmore").before(f.data)}KINDLYCARE_STORAGE.viewmore_page++;if(f.no_more_data==1){jQuery("#viewmore_link").addClass("viewmore_empty").parent().hide()}kindlycare_init_post_formats();kindlycare_sc_init(c);kindlycare_scroll_actions()}})}a.preventDefault();return false});jQuery(".woocommerce,.woocommerce-page").on("click",".mode_buttons a",function(a){var b=jQuery(this).hasClass("woocommerce_thumbs")?"thumbs":"list";jQuery.cookie("kindlycare_shop_mode",b,{expires:365,path:"/"});jQuery(this).siblings("input").val(b).parents("form").get(0).submit();a.preventDefault();return false});jQuery("body").bind("added_to_cart",function(){var c=jQuery(".widget_shopping_cart").eq(0).find(".total .amount").text();if(c!=undefined){jQuery(".top_panel_cart_button .cart_summa").text(c)}var b=0;jQuery(".widget_shopping_cart_content").eq(0).find(".cart_list li").each(function(){var d=jQuery(this).find(".quantity").html().split(" ",2);if(!isNaN(d[0])){b+=Number(d[0])}});var a=jQuery(".top_panel_cart_button .cart_items").eq(0).text().split(" ",2);a[0]=b;jQuery(".top_panel_cart_button .cart_items").text(a[0]+" "+a[1]);jQuery(".top_panel_cart_button").data({items:b?b:0,summa:c?c:0})});jQuery(".top_panel_middle .top_panel_cart_button, .header_mobile .top_panel_cart_button").on("click",function(a){jQuery(this).siblings(".sidebar_cart").slideToggle();a.preventDefault();return false});jQuery(".woocommerce div.quantity,.woocommerce-page div.quantity").append('<span class="q_inc"></span><span class="q_dec"></span>');jQuery(".woocommerce div.quantity").on("click",">span",function(b){var a=jQuery(this).siblings("input");if(jQuery(this).hasClass("q_inc")){a.val(Math.max(0,parseInt(a.val()))+1)}else{a.val(Math.max(1,Math.max(0,parseInt(a.val()))-1))}b.preventDefault();return false});jQuery(".single-product .woocommerce-tabs").addClass("trx-stretch-width scheme_light").after('<div class="trx-stretch-width-original"></div>');kindlycare_stretch_width();jQuery(".popup_link").addClass("inited").on("click",function(b){var a=jQuery(jQuery(this).attr("href"));if(a.length===1){kindlycare_hide_popup(jQuery(a.hasClass("popup_login")?".popup_registration":".popup_login"));kindlycare_toggle_popup(a)}b.preventDefault();return false});jQuery(".popup_wrap").on("click",".popup_close",function(b){var a=jQuery(this).parent();if(a.length===1){kindlycare_hide_popup(a)}b.preventDefault();return false});jQuery(".popup_form.login_form").submit(function(b){var a=kindlycare_login_validate(jQuery(this));if(!a){b.preventDefault()}return a});jQuery(".popup_form.registration_form").submit(function(b){var a=kindlycare_registration_validate(jQuery(this));if(!a){b.preventDefault()}return a});jQuery("form#commentform").submit(function(b){var a=kindlycare_comments_validate(jQuery(this));if(!a){b.preventDefault()}return a});jQuery(".bookmarks_add").on("click",function(f){var h=window.document.title.split("|")[0];var a=window.location.href;var d=jQuery.cookie("kindlycare_bookmarks");var c=false;
1if(d){try{d=JSON.parse(d)}catch(f){}if(d.length){for(var b=0;b<d.length;b++){if(d[b].url==a){c=true;break}}}}else{d=new Array()}if(!c){var g=kindlycare_message_dialog('<label for="bookmark_title">'+KINDLYCARE_STORAGE.strings["bookmark_title"]+'</label><br><input type="text" id="bookmark_title" name="bookmark_title" value="'+h+'">',KINDLYCARE_STORAGE.strings["bookmark_add"],null,function(i,e){if(i!=1){return}h=g.find("#bookmark_title").val();d.push({title:h,url:a});jQuery(".bookmarks_list").append('<li><a href="'+a+'" class="bookmarks_item">'+h+'<span class="bookmarks_delete icon-cancel" title="'+KINDLYCARE_STORAGE.strings["bookmark_del"]+'"></span></a></li>');jQuery.cookie("kindlycare_bookmarks",JSON.stringify(d),{expires:365,path:"/"});setTimeout(function(){kindlycare_message_success(KINDLYCARE_STORAGE.strings["bookmark_added"],KINDLYCARE_STORAGE.strings["bookmark_add"])},KINDLYCARE_STORAGE.message_timeout/4)})}else{kindlycare_message_warning(KINDLYCARE_STORAGE.strings["bookmark_exists"],KINDLYCARE_STORAGE.strings["bookmark_add"])}f.preventDefault();return false});jQuery(".bookmarks_list").on("click",".bookmarks_delete",function(c){var a=jQuery(this).parent().index();var b=jQuery.cookie("kindlycare_bookmarks");if(b){try{b=JSON.parse(b)}catch(c){}if(b.length){b.splice(a,1);jQuery.cookie("kindlycare_bookmarks",JSON.stringify(b),{expires:365,path:"/"})}}jQuery(this).parent().remove();c.preventDefault();return false});jQuery(".scroll_to_top").on("click",function(a){jQuery("html,body").animate({scrollTop:0},"slow");a.preventDefault();return false});kindlycare_show_system_message();kindlycare_init_post_formats();if(window.kindlycare_sc_init_actions){kindlycare_sc_init_actions()}if(window.kindlycare_init_hidden_elements){kindlycare_init_hidden_elements(jQuery("body").eq(0))}}function kindlycare_scroll_actions(){if(window.kindlycare_skin_scroll_actions){kindlycare_skin_scroll_actions()}if(window.kindlycare_theme_scroll_actions){kindlycare_theme_scroll_actions()}var b=jQuery(window).scrollTop();var d=jQuery(".scroll_to_top");var a=Math.max(0,jQuery("#wpadminbar").height());if(KINDLYCARE_STORAGE.top_panel_height<1){KINDLYCARE_STORAGE.top_panel_height=Math.max(0,jQuery(".top_panel_wrap").height())}if(b>KINDLYCARE_STORAGE.top_panel_height){d.addClass("show")}else{d.removeClass("show")}if(!jQuery("body").hasClass("menu_mobile")&&KINDLYCARE_STORAGE.menu_fixed){var c=0;if(jQuery(".top_panel_below .slider_wrap").length>0){c=jQuery(".top_panel_below .slider_wrap").height();if(c<10){c=jQuery(".slider_wrap").hasClass(".slider_fullscreen")?jQuery(window).height():KINDLYCARE_STORAGE.slider_height}}if(b<=c+KINDLYCARE_STORAGE.top_panel_height){if(jQuery("body").hasClass("top_panel_fixed")){jQuery("body").removeClass("top_panel_fixed")}}else{if(b>c+KINDLYCARE_STORAGE.top_panel_height){if(!jQuery("body").hasClass("top_panel_fixed")&&jQuery(document).height()>jQuery(window).height()*1.5){jQuery(".top_panel_fixed_wrap").height(KINDLYCARE_STORAGE.top_panel_height);jQuery(".top_panel_wrap").css("marginTop","-150px").animate({marginTop:0},500);jQuery("body").addClass("top_panel_fixed")}}}}if(jQuery(".sidebar_outer").length>0){if(KINDLYCARE_STORAGE.side_panel_height==0){KINDLYCARE_STORAGE.side_panel_height=jQuery(".sidebar_outer_logo_wrap").outerHeight()+jQuery(".sidebar_outer_menu").outerHeight()+jQuery(".sidebar_outer_widgets").outerHeight()}if(b+jQuery(window).height()>KINDLYCARE_STORAGE.side_panel_height+100){if(jQuery(".sidebar_outer").css("position")!=="fixed"){jQuery(".sidebar_outer").css({position:"fixed",top:Math.min(0,jQuery(window).height()-KINDLYCARE_STORAGE.side_panel_height-100)+"px"})}}else{if(jQuery(".sidebar_outer").css("position")=="fixed"){jQuery(".sidebar_outer").css({position:"absolute",top:0})}}}jQuery("#toc .toc_item").each(function(){var l=jQuery(this).find("a").attr("href");var k=l.indexOf("#");if(k<0||l.length==1){return}var j=window.location.href;var g=j.indexOf("#");if(g>0){j=j.substring(0,g)}var f=k==0;if(!f){f=j==href.substring(0,k)}if(!f){return}var i=jQuery(l).offset().top;var e=jQuery(this).next().find("a").attr("href");var h=e?jQuery(e).offset().top:1000000;if(i<b+jQuery(window).height()*0.8&&b+KINDLYCARE_STORAGE.top_panel_height<h){jQuery(this).addClass("current")}else{jQuery(this).removeClass("current")}});
1kindlycare_infinite_scroll();kindlycare_parallax_scroll();if(window.kindlycare_sc_scroll_actions){kindlycare_sc_scroll_actions()}}function kindlycare_infinite_scroll(){if(KINDLYCARE_STORAGE.viewmore_busy){return}var b=jQuery("#viewmore.pagination_infinite");if(b.length>0){var a=b.find("#viewmore_link:not(.viewmore_empty)");if(a.length>0){if(jQuery(window).scrollTop()+jQuery(window).height()+100>=b.offset().top){a.eq(0).trigger("click")}}}}function kindlycare_parallax_scroll(){jQuery(".sc_parallax").each(function(){var f=jQuery(window).height();var e=jQuery(window).scrollTop();var c=Math.max(jQuery(this).offset().top,f);if(c<=e+f){var b=Number(jQuery(this).data("parallax-speed"));var a=jQuery(this).data("parallax-x-pos");var d=Math.round((c-e-f)*b+(b<0?f*b:0));jQuery(this).find(".sc_parallax_content").css("backgroundPosition",a+" "+d+"px");jQuery(this).find("div.sc_video_bg").css("top",d+"px")}})}function kindlycare_resize_actions(){if(window.kindlycare_skin_resize_actions){kindlycare_skin_resize_actions()}if(window.kindlycare_theme_resize_actions){kindlycare_theme_resize_actions()}KINDLYCARE_STORAGE.top_panel_height=0;kindlycare_responsive_menu();kindlycare_video_dimensions();kindlycare_resize_video_background();kindlycare_resize_fullscreen_slider();kindlycare_resize_alter_portfolio();kindlycare_stretch_width();if(window.kindlycare_sc_resize_actions){kindlycare_sc_resize_actions()}}function kindlycare_stretch_width(){jQuery(".trx-stretch-width").each(function(){var c=jQuery(this);var b=c.next(".trx-stretch-width-original");var e=parseInt(c.css("margin-left"),10);var a=parseInt(c.css("margin-right"),10);var g=0-b.offset().left-e;var d=jQuery(window).width();if(!c.hasClass("inited")){c.addClass("inited invisible");c.css({position:"relative","box-sizing":"border-box"})}c.css({left:g,width:jQuery(window).width()});if(!c.hasClass("trx-stretch-content")){var f=Math.max(0,-1*g);var h=Math.max(0,d-f-b.width()+e+a);c.css({"padding-left":f+"px","padding-right":h+"px"})}c.removeClass("invisible")})}function kindlycare_responsive_menu(){if(kindlycare_is_responsive_need(KINDLYCARE_STORAGE.menu_mobile)){if(!jQuery("body").hasClass("menu_mobile")){jQuery("body").removeClass("top_panel_fixed").addClass("menu_mobile");jQuery("header.top_panel_wrap ").hide();jQuery(".header_mobile").show();jQuery("header #popup_login").attr("id","popup_login_1");jQuery("header #popup_registration").attr("id","popup_registration_1");jQuery(".header_mobile #popup_login_1").attr("id","popup_login");jQuery(".header_mobile #popup_registration_1").attr("id","popup_registration")}}else{if(jQuery("body").hasClass("menu_mobile")){jQuery("body").removeClass("menu_mobile");jQuery("header.top_panel_wrap ").show();jQuery(".header_mobile").hide();jQuery("header #popup_login_1").attr("id","popup_login");jQuery("header #popup_registration_1").attr("id","popup_registration");jQuery(".header_mobile #popup_login").attr("id","popup_login_1");jQuery(".header_mobile #popup_registration").attr("id","popup_registration_1")}}if(jQuery(window).width()<640){var a=jQuery(".header_mobile .popup_wrap.popup_registration .registration_form > .form_right");if(a.length>0){jQuery(".header_mobile .popup_wrap.popup_registration .form_left .popup_form_field.email_field").after(a)}}else{var a=jQuery(".header_mobile .popup_wrap.popup_registration .form_left > .form_right");if(a.length>0){jQuery(".header_mobile .popup_wrap.popup_registration .registration_form").append(a)}}if(!jQuery(".top_panel_wrap").hasClass("menu_show")){jQuery(".top_panel_wrap").addClass("menu_show")}if(jQuery(".sidebar_outer").length>0&&jQuery(".sidebar_outer").css("position")=="absolute"&&jQuery(".sidebar_outer_widgets:visible").length==0){jQuery(".sidebar_outer_widgets").show()}var c=jQuery("body:not(.woocommerce) .widget_area:not(.footer_wrap) .widget_product_categories ul.product-categories");var b=c.parents(".widget_area");if(b.length>0&&c.length>0){if(b.width()==b.parents(".content_wrap").width()){if(c.hasClass("inited")){c.removeClass("inited").addClass("plain").superfish("destroy");c.find("ul.animated").removeClass("animated").addClass("no_animated")}}else{if(!c.hasClass("inited")){c.removeClass("plain").addClass("inited");c.find("ul.no_animated").removeClass("no_animated").addClass("animated");kindlycare_init_sfmenu("body:not(.woocommerce) .widget_area:not(.footer_wrap) .widget_product_categories ul.product-categories")}}}}function kindlycare_is_responsive_need(b){var c=false;if(b>0){var a=window.innerWidth;if(a==undefined){a=jQuery(window).width()+(jQuery(window).height()<jQuery(document).height()||jQuery(window).scrollTop()>0?16:0)}c=b>a}return c}function kindlycare_video_dimensions(){jQuery(".sc_video_frame").each(function(){var h=jQuery(this).eq(0);var c=h.parent();var e=(h.data("ratio")?h.data("ratio").split(":"):(h.find("[data-ratio]").length>0?h.find("[data-ratio]").data("ratio").split(":"):[16,9]));e=e.length!=2||e[0]==0||e[1]==0?16/9:e[0]/e[1];var b=h.data("width");var g=h.data("height");if(!b||!g){return}var f=(""+b).substr(-1)=="%";b=parseInt(b);g=parseInt(g);var a=Math.min(f||h.parents(".columns_wrap").length>0?10000:b,h.parents("div,article").width()),d=Math.round(f?a/e:a/b*g);if(parseInt(h.attr("data-last-width"))==a){return}if(f){h.height(d)}else{h.css({width:a+"px",height:d+"px"})}h.attr("data-last-width",a)});jQuery("video.sc_video,video.wp-video-shortcode").each(function(){var a=jQuery(this).eq(0);var g=(a.data("ratio")!=undefined?a.data("ratio").split(":"):[16,9]);g=g.length!=2||g[0]==0||g[1]==0?16/9:g[0]/g[1];var e=a.parents(".mejs-video");var b=a.parents(".sc_video_frame");var h=b.length>0?b.data("width"):a.data("width");var c=b.length>0?b.data("height"):a.data("height");if(!h||!c){h=a.attr("width");c=a.attr("height");if(!h||!c){return}a.data({width:h,height:c})}var f=(""+h).substr(-1)=="%";h=parseInt(h);c=parseInt(c);var i=Math.round(e.length>0?Math.min(f?10000:h,e.parents("div,article").width()):a.width()),d=Math.round(f?i/g:i/h*c);if(parseInt(a.attr("data-last-width"))==i){return}if(e.length>0&&mejs){kindlycare_set_mejs_player_dimensions(a,i,d)}if(f){a.height(d)}else{a.attr({width:i,height:d}).css({width:i+"px",height:d+"px"})}a.attr("data-last-width",i)});jQuery("video.sc_video_bg").each(function(){var d=jQuery(this).eq(0);var k=(d.data("ratio")!=undefined?d.data("ratio").split(":"):[16,9]);k=k.length!=2||k[0]==0||k[1]==0?16/9:k[0]/k[1];var j=d.parents(".mejs-video");var b=j.length>0?j.parent():d.parent();var n=b.width();var g=b.height();var i=Math.ceil(g*k);var m=Math.ceil(n/k);if(d.parents(".sc_parallax").length>0){var a=jQuery(window).height();var e=Number(d.parents(".sc_parallax").data("parallax-speed"));var c=Math.ceil(Math.abs((a-g)*e));if(m<g+c){m=g+c;i=Math.ceil(m*k)}}if(m<g){m=g;i=Math.ceil(m*k)}if(i<n){i=n;m=Math.ceil(i/k)}var f=Math.round((i-n)/2);var o=Math.round((m-g)/2);if(parseInt(d.attr("data-last-width"))==i){return}if(j.length>0){kindlycare_set_mejs_player_dimensions(d,i,m);j.css({top:-o+"px"})}else{d.css({top:-o+"px"})}d.attr({width:i,height:m,"data-last-width":i}).css({width:i+"px",height:m+"px"});if(d.css("opacity")==0){d.animate({opacity:1},3000)}});jQuery("iframe").each(function(){var e=jQuery(this).eq(0);var d=(e.data("ratio")!=undefined?e.data("ratio").split(":"):(e.find("[data-ratio]").length>0?e.find("[data-ratio]").data("ratio").split(":"):[16,9]));d=d.length!=2||d[0]==0||d[1]==0?16/9:d[0]/d[1];var b=e.attr("width");var g=e.attr("height");var h=e.parents(".sc_video_frame");
1if(h.length>0){b=h.data("width");g=h.data("height")}if(!b||!g){return}var f=(""+b).substr(-1)=="%";b=parseInt(b);g=parseInt(g);var a=h.length>0?h.width():e.width(),c=Math.round(f?a/d:a/b*g);if(parseInt(e.attr("data-last-width"))==a){return}e.css({width:a+"px",height:c+"px"})})}function kindlycare_resize_video_background(){var c=jQuery(".video_bg");if(c.length<1){return}if(KINDLYCARE_STORAGE.media_elements_enabled&&c.find(".mejs-video").length==0){setTimeout(kindlycare_resize_video_background,100);return}var a=c.find("video");var f=(a.data("ratio")!=undefined?a.data("ratio").split(":"):[16,9]);f=f.length!=2||f[0]==0||f[1]==0?16/9:f[0]/f[1];var i=c.width();var d=c.height();var e=Math.ceil(d*f);var g=Math.ceil(i/f);if(g<d){g=d;e=Math.ceil(g*f)}if(e<i){e=i;g=Math.ceil(e/f)}var b=Math.round((e-i)/2);var j=Math.round((g-d)/2);if(c.find(".mejs-container").length>0){kindlycare_set_mejs_player_dimensions(c.find("video"),e,g);c.find(".mejs-container").css({left:-b+"px",top:-j+"px"})}else{c.find("video").css({left:-b+"px",top:-j+"px"})}c.find("video").attr({width:e,height:g}).css({width:e+"px",height:g+"px"})}function kindlycare_set_mejs_player_dimensions(d,a,c){if(mejs){for(var b in mejs.players){if(mejs.players[b].media.src==d.attr("src")){if(mejs.players[b].media.setVideoSize){mejs.players[b].media.setVideoSize(a,c)}mejs.players[b].setPlayerSize(a,c);mejs.players[b].setControlsSize()}}}}function kindlycare_resize_fullscreen_slider(){var c=jQuery(".slider_wrap.slider_fullscreen");if(c.length<1){return}var b=c.find(".sc_slider_swiper");if(b.length<1){return}var a=jQuery(window).height()-jQuery("#wpadminbar").height()-(jQuery("body").hasClass("top_panel_above")&&!jQuery("body").hasClass(".top_panel_fixed")?jQuery(".top_panel_wrap").height():0);b.height(a)}function kindlycare_resize_alter_portfolio(){var a=jQuery(".isotope_wrap.inited");if(a.length==0){return}a.each(function(){var c=jQuery(this).find(".post_item_alter");if(c.length==0){return}var g=c.find('.post_featured img[data-alter-items-w="1"]').eq(0);if(g.length!=1){return}var b=g.width();var d=g.height();var f=Number(g.data("alter-item-space"));var e=false;c.find(".post_featured img").each(function(){var h=Number(jQuery(this).data("alter-items-w"));var i=Number(jQuery(this).data("alter-items-h"));if(i>1){jQuery(this).height(Math.round(i*d+(i-1)*(f+1)));e=true}else{if(h>1){jQuery(this).height(d);e=true}}});if(e){jQuery(this).isotope("layout")}})}function kindlycare_init_sfmenu(a){jQuery(a).show().each(function(){if(kindlycare_is_responsive_need()&&(jQuery(this).attr("id")=="menu_main"||jQuery(this).attr("id")=="menu_side")){return}jQuery(this).addClass("inited").superfish({delay:500,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:KINDLYCARE_STORAGE.css_animation?500:(KINDLYCARE_STORAGE.menu_slider?300:200),speedOut:KINDLYCARE_STORAGE.css_animation?500:(KINDLYCARE_STORAGE.menu_slider?300:200),autoArrows:false,dropShadows:false,onBeforeShow:function(c){if(jQuery(this).parents("ul").length>1){var b=jQuery(window).width();var e=jQuery(this).parents("ul").offset().left;var f=jQuery(this).parents("ul").outerWidth();var d=jQuery(this).outerWidth();if(e+f+d>b-20&&e-d>0){jQuery(this).addClass("submenu_left")}else{jQuery(this).removeClass("submenu_left")}}if(KINDLYCARE_STORAGE.css_animation){jQuery(this).removeClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_out);jQuery(this).addClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_in)}},onBeforeHide:function(b){if(KINDLYCARE_STORAGE.css_animation){jQuery(this).removeClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_in);jQuery(this).addClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_out)}}})})}function kindlycare_build_page_toc(){var b="",a=0;jQuery('[id^="toc_"],.sc_anchor').each(function(c){var h=jQuery(this);var j=h.attr("id");var d=h.data("url");var e=h.data("icon");if(!e){e="icon-circle-dot"}var i=h.attr("title");var f=h.data("description");var g=h.data("separator");a++;b+='<div class="toc_item'+(g=="yes"?" toc_separator":"")+'">'+(f?'<div class="toc_description">'+f+"</div>":"")+'<a href="'+(d?d:"#"+j)+'" class="toc_icon'+(i?" with_title":"")+" "+e+'">'+(i?'<span class="toc_title">'+i+"</span>":"")+"</a></div>"});if(a>(KINDLYCARE_STORAGE.toc_menu_home?1:0)+(KINDLYCARE_STORAGE.toc_menu_top?1:0)){if
1(jQuery("#toc").length>0){jQuery("#toc .toc_inner").html(b)}else{jQuery("body").append('<div id="toc" class="toc_'+KINDLYCARE_STORAGE.toc_menu+'"><div class="toc_inner">'+b+"</div></div>")}}}function kindlycare_show_current_menu_item(b,a){b.find("a").each(function(){var c=jQuery(this);if(c.text()==""){return}if(c.attr("href")==window.location.href){a.text(c.text())}})}function kindlycare_prepare_menus(){var c=[jQuery("ul#menu_main"),jQuery("ul#menu_user"),jQuery("ul#menu_side"),jQuery("ul#menu_footer"),jQuery("ul#menu_pushy")];var b=window.location.href;for(var a in c){if(c[a].length==0){continue}c[a].find("li").removeClass("current-menu-ancestor current-menu-parent current-menu-item current_page_item");c[a].find('a[href="'+b+'"]').each(function(e){var d=jQuery(this).parent();d.addClass("current-menu-item");if(d.hasClass("menu-item-object-page")){d.addClass("current_page_item")}var f=0;while((d=d.parents("li")).length>0){f++;d.addClass("current-menu-ancestor"+(f==1?" current-menu-parent":""))}})}}function kindlycare_init_isotope(){var a=true;jQuery(".isotope_wrap:not(.inited)").each(function(){a=a&&kindlycare_check_images_complete(jQuery(this))});if(!a&&KINDLYCARE_STORAGE.isotope_init_counter++<30){setTimeout(kindlycare_init_isotope,200);return}jQuery(".isotope_filters:not(.inited)").addClass("inited").on("click","a",function(c){jQuery(this).parents(".isotope_filters").find("a").removeClass("active");jQuery(this).addClass("active");var b=jQuery(this).data("filter");jQuery(this).parents(".isotope_filters").siblings(".isotope_wrap").eq(0).isotope({filter:b});if(b=="*"){jQuery("#viewmore_link").fadeIn()}else{jQuery("#viewmore_link").fadeOut()}c.preventDefault();return false});jQuery(".isotope_wrap:not(.inited)").each(function(){var b=jQuery(this);kindlycare_sc_init(b);if(b.parents(".sc_scroll").length>0){b.addClass("inited").find(".isotope_item").animate({opacity:1},200,function(){jQuery(this).addClass("isotope_item_show")});return}setTimeout(function(){b.addClass("inited").isotope({itemSelector:".isotope_item",animationOptions:{duration:750,easing:"linear",queue:false}});b.find(".isotope_item").animate({opacity:1},200,function(){jQuery(this).addClass("isotope_item_show")});
1kindlycare_resize_alter_portfolio()},500)})}function kindlycare_init_appended_isotope(c,d){if(c.parents(".sc_scroll_horizontal").length>0){return}if(!kindlycare_check_images_complete(c)&&KINDLYCARE_STORAGE.isotope_init_counter++<30){setTimeout(function(){kindlycare_init_appended_isotope(c,d)},200);return}var e=c.siblings(".isotope_filter");for(var b in d){if(e.find('a[data-filter=".flt_'+b+'"]').length==0){e.append('<a href="#" class="isotope_filters_button" data-filter=".flt_'+b+'">'+d[b]+"</a>")}}kindlycare_sc_init(c);var a=c.find(".isotope_item:not(.isotope_item_show)");setTimeout(function(){c.isotope("appended",a);a.animate({opacity:1},200,function(){jQuery(this).addClass("isotope_item_show")})},500)}function kindlycare_init_post_formats(){if(window.kindlycare_theme_init_post_formats){kindlycare_theme_init_post_formats()}kindlycare_init_media_elements(jQuery("body"));if(jQuery(".isotope_wrap:not(.inited)").length>0){KINDLYCARE_STORAGE.isotope_init_counter=0;kindlycare_init_isotope()}if(jQuery(".isotope_wrap .isotope_item_content.square.effect_dir:not(.inited)").length>0){jQuery(".isotope_wrap .isotope_item_content.square.effect_dir:not(.inited)").each(function(){jQuery(this).addClass("inited").hoverdir()})}if(KINDLYCARE_STORAGE.popup_engine=="pretty"){jQuery("a[href$='jpg'],a[href$='jpeg'],a[href$='png'],a[href$='gif']").attr("rel","prettyPhoto[slideshow]");var a=jQuery("a[rel*='prettyPhoto']:not(.inited):not(.esgbox):not([data-rel*='pretty']):not([rel*='magnific']):not([data-rel*='magnific'])").addClass("inited");try{a.prettyPhoto({social_tools:"",theme:"facebook",deeplinking:false})}catch(b){}}else{if(KINDLYCARE_STORAGE.popup_engine=="magnific"){jQuery("a[href$='jpg'],a[href$='jpeg'],a[href$='png'],a[href$='gif']").attr("rel","magnific");var a=jQuery("a[rel*='magnific']:not(.inited):not(.esgbox):not(.prettyphoto):not([rel*='pretty']):not([data-rel*='pretty'])").addClass("inited");try{a.magnificPopup({type:"image",mainClass:"mfp-img-mobile",closeOnContentClick:true,closeBtnInside:true,fixedContentPos:true,midClick:true,preloader:true,tLoading:KINDLYCARE_STORAGE.strings["magnific_loading"],gallery:{enabled:true},image:{tError:KINDLYCARE_STORAGE.strings["magnific_error"],verticalFit:true}})}catch(b){}}}jQuery(".post_item_product .product .images a.woocommerce-main-image:not(.hover_icon)").addClass("hover_icon hover_icon_view");if(jQuery(".post_counters_likes:not(.inited)").length>0){jQuery(".post_counters_likes:not(.inited)").addClass("inited").on("click",function(i){var g=jQuery(this);var h=g.hasClass("enabled")?1:-1;var d=g.data("postid");var c=Number(g.data("likes"))+h;var f=kindlycare_get_cookie("kindlycare_likes");if(f===undefined||f===null){f=""}jQuery.post(KINDLYCARE_STORAGE.ajax_url,{action:"post_counter",nonce:KINDLYCARE_STORAGE.ajax_nonce,post_id:d,likes:c}).done(function(j){var l={};try{l=JSON.parse(j)}catch(k){l={error:KINDLYCARE_STORAGE.ajax_error};console.log(j)}if(l.error===""){if(h==1){var m=g.data("title-dislike");g.removeClass("enabled").addClass("disabled");f+=(f.substr(-1)!=","?",":"")+d+","}else{var m=g.data("title-like");g.removeClass("disabled").addClass("enabled");f=f.replace(","+d+",",",")}g.data("likes",c).attr("title",m).find(".post_counters_number").html(c);kindlycare_set_cookie("kindlycare_likes",f,365)}else{kindlycare_message_warning(KINDLYCARE_STORAGE.strings["error_like"])}});i.preventDefault();return false})}if(jQuery(".sc_socials_share:not(.inited)").length>0){jQuery(".sc_socials_share:not(.inited)").each(function(){jQuery(this).addClass("inited").on("click",".social_item_popup > a.social_icons",function(d){var c=jQuery(this).data("link");window.open(c,"_blank","scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=480, height=400, toolbar=0, status=0");d.preventDefault();return false})})}if(jQuery(".sc_video_play_button:not(.inited)").length>0){jQuery(".sc_video_play_button:not(.inited)").each(function(){jQuery(this).addClass("inited").animate({opacity:1},1000).on("click",function(i){if(!jQuery(this).hasClass("sc_video_play_button")){return}var g=jQuery(this).removeClass("sc_video_play_button hover_icon hover_icon_play").data("video");if(g!==""){jQuery(this).empty().html(g);kindlycare_video_dimensions();var d=jQuery(this).find("video");var c=d.width();var f=d.height();
1kindlycare_init_media_elements(jQuery(this));jQuery(this).find("video").css({width:c,height:f}).attr({width:c,height:f})}i.preventDefault();return false})})}jQuery("a.tribe-events-read-more,.tribe-events-button,.tribe-events-nav-previous a,.tribe-events-nav-next a,.tribe-events-widget-link a,.tribe-events-viewmore a").addClass("sc_button sc_button_style_filled")}function kindlycare_init_media_elements(a){if(KINDLYCARE_STORAGE.media_elements_enabled&&a.find("audio,video").length>0){if(window.mejs){window.mejs.MepDefaults.enableAutosize=false;window.mejs.MediaElementDefaults.enableAutosize=false;a.find("audio:not(.wp-audio-shortcode),video:not(.wp-video-shortcode)").each(function(){if(jQuery(this).parents(".mejs-mediaelement").length==0){var b=jQuery(this);var c={enableAutosize:true,videoWidth:-1,videoHeight:-1,audioWidth:"100%",audioHeight:30,success:function(e){var f,d;if("flash"===e.pluginType){f=e.attributes.autoplay&&"false"!==e.attributes.autoplay;d=e.attributes.loop&&"false"!==e.attributes.loop;f&&e.addEventListener("canplay",function(){e.play()},false);d&&e.addEventListener("ended",function(){e.play()},false)}b.parents(".sc_audio,.sc_video").addClass("inited sc_show")}};jQuery(this).mediaelementplayer(c)}})}else{setTimeout(function(){kindlycare_init_media_elements(a)},400)}}}function kindlycare_show_system_message(){if(KINDLYCARE_STORAGE.system_message&&KINDLYCARE_STORAGE.system_message["message"]){if(KINDLYCARE_STORAGE.system_message["status"]=="success"){kindlycare_message_success(KINDLYCARE_STORAGE.system_message["message"],KINDLYCARE_STORAGE.system_message["header"])}else{if(KINDLYCARE_STORAGE.system_message["status"]=="info"){kindlycare_message_info(KINDLYCARE_STORAGE.system_message["message"],KINDLYCARE_STORAGE.system_message["header"])}else{if(KINDLYCARE_STORAGE.system_message["status"]=="error"||KINDLYCARE_STORAGE.system_message["status"]=="warning"){kindlycare_message_warning(KINDLYCARE_STORAGE.system_message["message"],KINDLYCARE_STORAGE.system_message["header"])}}}}}function kindlycare_toggle_popup(a){if(a.css("display")!="none"){kindlycare_hide_popup(a)}else{kindlycare_show_popup(a)}}function kindlycare_show_popup(a){if(a.css("display")=="none"){if(KINDLYCARE_STORAGE.css_animation){a.show().removeClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_out).addClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_in)}else{a.slideDown()}}}function kindlycare_hide_popup(a){if(a.css("display")!="none"){if(KINDLYCARE_STORAGE.css_animation){a.removeClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_in).addClass("animated fast "+KINDLYCARE_STORAGE.menu_animation_out).delay(500).hide()}else{a.fadeOut()}}}function kindlycare_comments_validate(b){b.find("input").removeClass("error_fields_class");var c={error_message_text:KINDLYCARE_STORAGE.strings["error_global"],error_message_show:true,error_message_time:4000,error_message_class:"sc_infobox sc_infobox_style_error",error_fields_class:"error_fields_class",exit_after_first_error:false,rules:[{field:"comment",min_length:{value:1,message:KINDLYCARE_STORAGE.strings["text_empty"]},max_length:{value:KINDLYCARE_STORAGE.comments_maxlength,message:KINDLYCARE_STORAGE.strings["text_long"]}}]};if(b.find('.comments_author input[aria-required="true"]').length>
10){c.rules.push({field:"author",min_length:{value:1,message:KINDLYCARE_STORAGE.strings["name_empty"]},max_length:{value:60,message:KINDLYCARE_STORAGE.strings["name_long"]}})}if(b.find('.comments_email input[aria-required="true"]').length>0){c.rules.push({field:"email",min_length:{value:7,message:KINDLYCARE_STORAGE.strings["email_empty"]},max_length:{value:60,message:KINDLYCARE_STORAGE.strings["email_long"]},mask:{value:KINDLYCARE_STORAGE.email_mask,message:KINDLYCARE_STORAGE.strings["email_not_valid"]}})}var a=kindlycare_form_validate(b,c);return !a}function kindlycare_login_validate(b){b.find("input").removeClass("error_fields_class");var a=kindlycare_form_validate(b,{error_message_show:true,error_message_time:4000,error_message_class:"sc_infobox sc_infobox_style_error",error_fields_class:"error_fields_class",exit_after_first_error:true,rules:[{field:"log",min_length:{value:1,message:KINDLYCARE_STORAGE.strings["login_empty"]},max_length:{value:60,message:KINDLYCARE_STORAGE.strings["login_long"]}},{field:"pwd",min_length:{value:4,message:KINDLYCARE_STORAGE.strings["password_empty"]},max_length:{value:30,message:KINDLYCARE_STORAGE.strings["password_long"]}}]});if(!a){jQuery.post(KINDLYCARE_STORAGE.ajax_url,{action:"login_user",nonce:KINDLYCARE_STORAGE.ajax_nonce,remember:b.find("#rememberme").val(),user_log:b.find("#log").val(),user_pwd:b.find("#password").val()}).done(function(c){var g={};try{g=JSON.parse(c)}catch(f){g={error:KINDLYCARE_STORAGE.ajax_error};console.log(c)}var d=b.find(".result");if(d.length==0){d=b.siblings(".result")}if(d.length==0){d=b.after('<div class="result"></div>').next(".result")}d.toggleClass("sc_infobox_style_error",false).toggleClass("sc_infobox_style_success",false);if(g.error===""){d.addClass("sc_infobox sc_infobox_style_success").html(KINDLYCARE_STORAGE.strings["login_success"]);setTimeout(function(){location.reload()},3000)}else{d.addClass("sc_infobox sc_infobox_style_error").html(KINDLYCARE_STORAGE.strings["login_failed"]+"<br>"+g.error)}d.fadeIn().delay(3000).fadeOut()})}return false}if(jQuery(".widget_area .widget_search").length>0){var $cont=jQuery(".widget_area .widget_search");$cont.each(function(){jQuery(this).find("input").attr("placeholder",KINDLYCARE_STORAGE.strings["placeholder_widget_search"])})}jQuery(document).ready(function(){jQuery(".shop_table thead .product-remove").remove();jQuery(".shop_table thead .product-thumbnail").remove();jQuery(".shop_table thead .product-name").attr("colspan",3)});function kindlycare_registration_validate(b){b.find("input").removeClass("error_fields_class");var a=kindlycare_form_validate(b,{error_message_show:true,error_message_time:4000,error_message_class:"sc_infobox sc_infobox_style_error",error_fields_class:"error_fields_class",exit_after_first_error:true,rules:[{field:"registration_username",min_length:{value:1,message:KINDLYCARE_STORAGE.strings["login_empty"]},max_length:{value:60,message:KINDLYCARE_STORAGE.strings["login_long"]}},{field:"registration_email",min_length:{value:7,message:KINDLYCARE_STORAGE.strings["email_empty"]},max_length:{value:60,message:KINDLYCARE_STORAGE.strings["email_long"]},mask:{value:KINDLYCARE_STORAGE.email_mask,message:KINDLYCARE_STORAGE.strings["email_not_valid"]}},{field:"registration_pwd",min_length:{value:4,message:KINDLYCARE_STORAGE.strings["password_empty"]},max_length:{value:30,message:KINDLYCARE_STORAGE.strings["password_long"]}},{field:"registration_pwd2",equal_to:{value:"registration_pwd",message:KINDLYCARE_STORAGE.strings["password_not_equal"]}}]});if(!a){jQuery.post(KINDLYCARE_STORAGE.ajax_url,{action:"registration_user",nonce:KINDLYCARE_STORAGE.ajax_nonce,user_name:b.find("#registration_username").val(),user_email:b.find("#registration_email").val(),user_pwd:b.find("#registration_pwd").val()}).done(function(c){var g={};try{g=JSON.parse(c)}catch(f){g={error:KINDLYCARE_STORAGE.ajax_error};console.log(c)}var d=b.find(".result");if(d.length==0){d=b.siblings(".result")}if(d.length==0){d=b.after('<div class="result"></div>').next(".result")}d.toggleClass("sc_infobox_style_error",false).toggleClass("sc_infobox_style_success",false);
1if(g.error===""){d.addClass("sc_infobox sc_infobox_style_success").html(KINDLYCARE_STORAGE.strings["registration_success"]);setTimeout(function(){jQuery(".popup_login_link").trigger("click")},3000)}else{d.addClass("sc_infobox sc_infobox_style_error").html(KINDLYCARE_STORAGE.strings["registration_failed"]+" "+g.error)}d.fadeIn().delay(3000).fadeOut()})}return false};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.