';break;case"default":n='
';break;case"comments":n='
';break;case"related":n='
'}var i=r.feed.entry;if(i){if("related"==t){1==i.length&&"recent"!=s&&(i=(r=getRecentPostsData(t,a)).feed.entry);for(let e=0;e'+msgError()+"
";break;default:n=msgError()}switch(t){case"msimple":n+="
",e.append(n).addClass("msimple"),e.find("a:first").attr("href",function(e,t){switch(s){case"recent":t=t.replace(t,"/search");break;default:t=t.replace(t,"/search/label/"+s)}return t});break;default:n+="
",e.html(n)}e.find("span.entry-image").pbtThumb()},error:function(){switch(t){case"msimple":e.append('
'+msgError()+"
");break;default:e.html(msgError())}}})}function getMega(e,t,a,s,o){o.match("getposts")&&("msimple"==t?getPosts(e,t,a,s):e.append('
'+msgError()+"
"))}function getWidget(e,t,a,s,o){o.match("getposts")&&("default"==t||"comments"==t?getPosts(e,t,a,s):e.html(msgError()))}function getRelated(e,t,a,s,o){getPosts(e,t,a,s,o)}function disqusComments(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://"+e+".disqus.com/blogger_item.js",document.getElementsByTagName("head")[0].appendChild(t)}function beautiAvatar(e){$(e).attr("src",function(e,t,a){return a="//1.bp.blogspot.com/-QN2lgvtYZco/YN3mUSryAVI/AAAAAAAAADs/KrR-etCcvUMcPl06jopTs9pzq59IAXhMQCLcBGAsYHQ/s35/avatar.jpg",t=(t=(t=t.replace("//resources.blogblog.com/img/blank.gif",a)).replace("//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SA=s35",a)).replace("/s35","/s39")})}function pbtFixedSidebar(e){$(e).each(function(e){fixedSidebar="undefined"==typeof fixedSidebar||fixedSidebar,1==fixedSidebar&&(e=1==fixedMenu?93:25,$(this).theiaStickySidebar({containerSelector:"#content-wrapper > .container",additionalMarginTop:e,additionalMarginBottom:25}))})}fixedMenu="undefined"==typeof fixedMenu||fixedMenu,viewAllText="undefined"!=typeof viewAllText?viewAllText:pbtMessages.viewAll,$("#starter-pro-main-nav").pbtMenu().find(".widget").addClass("show-menu"),$(".show-search").click(function(e){e.preventDefault(),$("body").addClass("search-active"),$("#main-search-wrap").fadeIn(170).find("input").focus()}),$(".search-close").click(function(e){e.preventDefault(),$("body").removeClass("search-active"),$("#main-search-wrap").fadeOut(170).find("input").blur()}),$("html").each(function(){var e=$(this),t=localStorage.darkMode;darkMode="undefined"!=typeof darkMode&&darkMode,userDarkMode="undefined"==typeof userDarkMode||userDarkMode,1!=darkMode&&0!=userDarkMode&&("true"==t&&(e.addClass("is-dark"),darkModeLogo(t)),$(".darkmode-toggle").click(function(a){a.preventDefault(),e.toggleClass("is-dark"),t="true"!=t?"true":"false",localStorage.darkMode=t,darkModeLogo(t)}))}),$(".sidebar .social-icons a").each(function(e){var t=$(this),a=t.attr("href").split("#");a[1]&&""!=(e=a[1].trim())&&t.append('
'+e+""),t.attr("href",a[0].trim())}),$(".MailChimp .widget-content").each(function(e,t){var a=$(this),s=a.data("shortcode");s&&(e=pbtShortCode(s,"title"),t=pbtShortCode(s,"text"),0!=e&&a.find(".mailchimp-title").text(e),0!=t&&a.find(".mailchimp-text").text(t))}),$(".post-body a").each(function(){var e=$(this),t=e.text(),a=t.toLowerCase(),s=pbtShortCode(t,"text");a.match("getbutton")&&0!=s&&(e.replaceText(/([^{\}]+(?=}))/g,"
$1"),e.find("em").replaceText("$","%s"),e.each(function(){var e=$(this),t=e.text(),a=pbtShortCode(t,"text"),s=pbtShortCode(t,"icon"),o=pbtShortCode(t,"color"),r=pbtShortCode(t,"size"),n=pbtShortCode(t,"info"),i=e.parent().attr("style");e.addClass(0!=r?"button btn x2":"button btn").text(a.replace("%s","$")),i&&i.match("center")&&e.addClass("is-c"),0!=n?(e.addClass(0!=s?"x2 "+s:"x2"),e.append('
'+n.replace("%s","$")+"")):0!=s&&e.addClass(s),0!=o&&e.addClass("color").attr("style","background-color:"+o+";")}))}),$(".post-body b").each(function(){var e=$(this),t=e.text(),a=t.toLowerCase().trim();a.match(/(?:\$ads\=\{1\})/g)&&e.replaceWith('
'),a.match(/(?:\$ads\=\{2\})/g)&&e.replaceWith('
'),a.match("{gettoc}")&&(t=0!=(t=pbtShortCode(t,"title"))?t:"Table of Contents",e.replaceWith('
'),$(".pbt-toc-title").each(function(){var e=$(this);e.click(function(t){t.preventDefault(),e.toggleClass("is-expanded"),$("#pbt-toc").slideToggle(170)})}),$("#pbt-toc").toc({content:"#post-body",headings:"h2,h3,h4"}),$("#pbt-toc li a").each(function(){var e=$(this);e.click(function(t){return t.preventDefault(),$("html,body").animate({scrollTop:$(e.attr("href")).offset().top-20},500),!1})})),a.match("{contactform}")&&(e.replaceWith('
'),$("#post-body .contact-form-widget").append($("#ContactForm1 .contact-form-form"))),a.match("{leftsidebar}")&&($("body").addClass("is-left"),e.remove()),a.match("{rightsidebar}")&&($("body").addClass("is-right").removeClass("is-left"),e.remove()),a.match("{fullwidth}")&&($("body").addClass("no-sidebar"),e.remove())}),$("#starter-pro-new-before-ad").each(function(){var e=$(this);e.length&&$("#before-ad").appendTo(e)}),$("#starter-pro-new-after-ad").each(function(){var e=$(this);e.length&&$("#after-ad").appendTo(e)}),$("#starter-pro-main-before-ad .widget").each(function(){var e=$(this);e.length&&e.appendTo($("#before-ad"))}),$("#starter-pro-main-after-ad .widget").each(function(){var e=$(this);e.length&&e.appendTo($("#after-ad"))}),$("#starter-pro-post-footer-ads .widget").each(function(){var e=$(this);e.length&&e.appendTo($("#post-footer-ads"))}),$(".post-body blockquote").each(function(){var e=$(this),t=e.text().toLowerCase().trim(),a=e.html();if(t.match("{alertsuccess}")){const t=a.replace("{alertSuccess}","");e.replaceWith('
'+t+"
")}if(t.match("{alertinfo}")){const t=a.replace("{alertInfo}","");e.replaceWith('
'+t+"
")}if(t.match("{alertwarning}")){const t=a.replace("{alertWarning}","");e.replaceWith('
'+t+"
")}if(t.match("{alerterror}")){const t=a.replace("{alertError}","");e.replaceWith('
'+t+"
")}if(t.match("{codebox}")){const t=a.replace("{codeBox}","");e.replaceWith('
'+t+"
")}}),$(".share-links .pbt-window").click(function(e){e.preventDefault();var t=$(this),a=t.data("url"),s=t.data("width"),o=t.data("height");window.open(a,"_blank","scrollbars=yes,resizable=yes,toolbar=0,width="+s+",height="+o+",top=50,left=50").focus()}),$(".share-links .show-hid a").click(function(e){e.preventDefault(),$(this).parent().parent().toggleClass("expanded")}),$(".about-author .author-text").each(function(){var e=$(this),t=e.find("a");t.length&&(t.each(function(){var e=$(this),t=e.text().trim(),a=e.attr("href");e.replaceWith('
')}),e.parent().append('
'),e.find("li").appendTo(e.parent().find(".author-links")))}),$("#starter-pro-main-nav-menu li.mega-menu").each(function(e,t){var a=$(this),s=a.find("a").data("shortcode");s&&(e=s.toLowerCase(),getMega(a,"msimple",5,pbtShortCode(s,"label"),e))}),$("#sidebar .HTML .widget-content").each(function(e,t,a,s){var o=$(this),r=$(window),n=o.data("shortcode");n&&(e=n.toLowerCase(),t=pbtShortCode(n,"results"),a=pbtShortCode(n,"label"),s=pbtShortCode(n,"type"),r.on("load resize scroll",function n(){r.scrollTop()+r.height()>=o.offset().top&&(r.off("load resize scroll",n),getWidget(o,s,t,a,e))}).trigger("scroll"))}),$("#starter-pro-related-posts .HTML").each(function(e,t){var a=$(this).data("shortcode");if(a){function s(){return e=pbtShortCode(a,"title"),t=pbtShortCode(a,"results"),[e,t]}$("#related-wrap").each(function(e,t,a){var o=$(this),r=o.find(".related-tag"),n=$(window),i=o.find(".starter-pro-related-content"),c=s();e=0!=c[1]?c[1]:3,0!=c[0]&&o.find(".related-title .title > span").text(c[0]),t=r.data("label"),a=r.data("id"),n.on("load resize scroll",function s(){n.scrollTop()+n.height()>=i.offset().top&&(n.off("load resize scroll",s),getRelated(i,"related",e,t,a))}).trigger("scroll")})}}),$(".starter-pro-blog-post-comments").each(function(){var e=$(this),t=e.data("shortcode"),a=pbtShortCode(t,"type"),s="comments-system-"+a,o=e.find("#top-continue .comment-reply");switch(a){case"disqus":var r=pbtShortCode(t,"shortname");0!=r&&(disqus_shortname=r),disqusComments(disqus_shortname),e.addClass(s+" is-visible");break;case"facebook":var n=pbtShortCode(t,"lang"),i=0!=n?"https://connect.facebook.net/"+n+"/all.js#xfbml=1&version=v11.0":"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0";$("head").append(''),e.addClass(s).find("#comments").html('
'),e.addClass("is-visible");break;case"hide":e.addClass("is-hidden");break;default:e.addClass("comments-system-blogger is-visible"),$(".entry-meta .entry-comments-link").addClass("show"),o.addClass("btn"),beautiAvatar(".avatar-image-container img")}var c=e.find(".comments .comment-reply"),l=e.find(".comments #top-continue"),d=e.find("#top-ce.comment-replybox-thread");c.click(function(e){e.preventDefault(),l.show(),d.hide()}),l.click(function(e){e.preventDefault(),l.hide(),d.show()})}),$(function(){$(".entry-image-wrap .entry-image,.author-avatar-wrap .author-avatar").pbtThumb(),$("#mobile-menu").each(function(){var e=$(this),t=$("#starter-pro-main-nav-menu").clone();t.attr("id","main-mobile-nav"),t.find(".mega-items").remove(),t.find(".mega-menu > a").each(function(e,t){var a=$(this),s=a.data("shortcode");s&&(t="recent"==(e=pbtShortCode(s,"label"))?"/search":"/search/label/"+e,a.attr("href",t))}),t.appendTo(e),$(".mobile-menu-toggle, .hide-mobile-menu, .overlay").click(function(e){e.preventDefault(),$("body").toggleClass("nav-active")}),$(".mobile-menu .has-sub > a").after(''),$(".mobile-menu .mega-menu").find(".submenu-toggle").remove(),$(".mobile-menu ul li .submenu-toggle").click(function(){var e=$(this);e.parent().hasClass("has-sub")&&(e.parent().hasClass("expanded")?e.parent().removeClass("expanded").find("> .m-sub").slideToggle(170):e.parent().addClass("expanded").children(".m-sub").slideToggle(170))})}),$(".mm-footer .mm-social").each(function(){var e=$(this),t=$("#starter-pro-about-section ul.social").clone();t.removeClass("social-bg-hover"),t.appendTo(e)}),$(".mm-footer .mm-menu").each(function(){var e=$(this);$("#footer-menu ul.link-list").clone().appendTo(e)}),$(".header-inner").each(function(){var e=$(this);if(1==fixedMenu&&e.length>0){var t=$(document).scrollTop(),a=e.offset().top,s=e.height(),o=a+s+s;$(window).scroll(function(){var s=$(document).scrollTop();s>o?e.addClass("is-fixed"):(s
t?e.removeClass("show"):setTimeout(function(){e.addClass("show")},100),t=s})}}),pbtFixedSidebar("#main-wrapper, #sidebar-wrapper"),$("#post-body iframe").each(function(){var e=$(this);e.attr("src").match("www.youtube.com")&&e.wrap('
')}),$("p.comment-content").each(function(){var e=$(this);e.replaceText(/(https:\/\/\S+(\.png|\.jpeg|\.jpg|\.gif))/g,''),e.replaceText(/(?:https:\/\/)?(?:www\.)?(?:youtube\.com)\/(?:watch\?v=)?(.+)/g,'
[embed]https://www.youtube.com/watch?v=$1[/embed]
')}),$("#starter-pro-load-more-link").each(function(){var e=$(this),t=e.data("load");t&&e.show(),e.click(function(a){a.preventDefault(),e.hide(),$.ajax({url:t,success:function(a){var s=$(a).find(".blog-posts");s.find(".index-post").addClass("post-animated post-fadeInUp"),$(".blog-posts").append(s.html()),(t=$(a).find("#starter-pro-load-more-link").data("load"))?e.show():(e.hide(),$("#blog-pager .no-more").addClass("show"))},beforeSend:function(){$("#blog-pager .loading").show()},complete:function(){$("#blog-pager .loading").hide(),$(".index-post .entry-image-wrap .entry-image").pbtThumb(),pbtFixedSidebar("#main-wrapper, #sidebar-wrapper")}})})}),$("#starter-pro-cookie-consent").each(function(){var e=$(this),t=e.find(".widget.Text").data("shortcode");e.length>0&&(t&&(ok=pbtShortCode(t,"ok"),days=pbtShortCode(t,"days"),0!=ok&&e.find("#cookie-consent-btn").text(ok),days=0!=days?Number(days):7),"1"!==$.cookie("starter_pro_cookie_consent")&&(e.css("display","block"),$(window).on("load",function(){e.addClass("is-visible")})),$("#cookie-consent-btn").off("click").click(function(t){t.preventDefault(),t.stopPropagation(),$.cookie("starter_pro_cookie_consent","1",{expires:days,path:"https://www.doginmylife.com/"}),e.removeClass("is-visible"),setTimeout(function(){e.css("display","none")},500)}),cookieChoices={})}),$("#back-top").each(function(){var e=$(this);$(window).on("scroll",function(){$(this).scrollTop()>=100?e.fadeIn(170):e.fadeOut(170),e.offset().top>=$("#footer-wrapper").offset().top-34?e.addClass("on-footer"):e.removeClass("on-footer")}),e.click(function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},500)})})});
//]]>
[ad_2]