Why an IVF Treatment for Infertility Could Work – Credihealth Blog

0
38


Why an IVF Treatment for Infertility Could Work – Credihealth Blog 0){powerkitButtonsData={‘ids’:powerkitButtonsIds.join(),’post_id’:powerkitButtonsBox.attr(‘data-post-id’),’url’:powerkitButtonsBox.attr(‘data-share-url’),};}$.ajax({type:’GET’,url:’https://www.credihealth.com/blog/wp-json/social-share/v1/get-shares’,data:powerkitButtonsData,beforeSend:function(){powerkitButtonsBox.addClass(‘pk-share-buttons-loading’);},success:function(response){if(!$.isEmptyObject(response)&&!response.hasOwnProperty(‘code’)){$.each(response,function(index,data){if(index!==’total_count’){var powerkitButtonsItem=powerkitButtonsBox.find(‘.pk-share-buttons-item[data-id=”‘+index+'”]’);if(data.hasOwnProperty(‘count’)&&data.count){powerkitButtonsItem.removeClass(‘pk-share-buttons-no-count’).addClass(‘pk-share-buttons-item-count’);powerkitButtonsItem.find(‘.pk-share-buttons-count’).html(data.count);}else{powerkitButtonsItem.addClass(‘pk-share-buttons-no-count’);}}});if(powerkitButtonsBox.hasClass(‘pk-share-buttons-has-total-counts’)&&response.hasOwnProperty(‘total_count’)){var powerkitButtonsTotalBox=powerkitButtonsBox.find(‘.pk-share-buttons-total’);if(response.total_count){powerkitButtonsTotalBox.find(‘.pk-share-buttons-count’).html(response.total_count);powerkitButtonsTotalBox.show().removeClass(‘pk-share-buttons-total-no-count’);}}}powerkitButtonsBox.removeClass(‘pk-share-buttons-loading’);},error:function(){powerkitButtonsBox.removeClass(‘pk-share-buttons-loading’);}});});});})(jQuery);]]>

Source