<!DOCTYPE html>
<head>
<title>zen habits - breathe zen habits</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="https://zenhabits.net/wp-content/themes/zh4/style.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="zen habits RSS Feed" href="https://zenhabits.net/feed/" />
<link rel="pingback" href="https://zenhabits.net/xmlrpc.php" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="https://use.typekit.net/abd7hms.css">
<meta name="description" content="breathe" />
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
<link rel="canonical" href="https://zenhabits.net/" />
<link rel="next" href="https://zenhabits.net/page/2/" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="zen habits - breathe" />
<meta property="og:description" content="breathe" />
<meta property="og:url" content="https://zenhabits.net/" />
<meta property="og:site_name" content="zen habits" />
<meta property="og:image" content="https://zenhabits.net/wp-content/uploads/2020/08/clear.jpg" />
<meta property="og:image:width" content="2500" />
<meta property="og:image:height" content="1530" />
<meta name="twitter:card" content="summary_large_image" />
<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://zenhabits.net/#website","url":"https://zenhabits.net/","name":"zen habits","description":"breathe","potentialAction":[{"@type":"SearchAction","target":"https://zenhabits.net/?s={search_term_string}","query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"CollectionPage","@id":"https://zenhabits.net/#webpage","url":"https://zenhabits.net/","name":"zen habits - breathe","isPartOf":{"@id":"https://zenhabits.net/#website"},"description":"breathe","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://zenhabits.net/"]}]}]}</script>
<link rel='dns-prefetch' href='//s.w.org' />
<link rel="alternate" type="application/rss+xml" title="zen habits » Feed" href="https://zenhabits.net/feed/" />
<link rel="alternate" type="application/rss+xml" title="zen habits » Comments Feed" href="https://zenhabits.net/comments/feed/" />
<script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/zenhabits.net\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.6"}};
!function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
<style type="text/css">
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link rel='stylesheet' id='wp-block-library-css' href='https://zenhabits.net/wp-includes/css/dist/block-library/style.min.css?ver=5.6' type='text/css' media='all' />
<link rel='stylesheet' id='activecampaign-form-block-css' href='https://zenhabits.net/wp-content/plugins/activecampaign-subscription-forms/activecampaign-form-block/build/style-index.css?ver=1611193166' type='text/css' media='all' />
<link rel="https://api.w.org/" href="https://zenhabits.net/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://zenhabits.net/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://zenhabits.net/wp-includes/wlwmanifest.xml" />
<script src="https://cdn.usefathom.com/script.js" data-site="RRJTYWVN" defer></script>
<script type="text/javascript">!function(e,t){(e=t.createElement("script")).src="https://cdn.convertbox.com/convertbox/js/embed.js",e.id="app-convertbox-script",e.async=true,e.dataset.uuid="655a8601-43e8-4f0a-994e-9e738c602642",document.getElementsByTagName("head")[0].appendChild(e)}(window,document);</script>
<script>var cb_wp=cb_wp || {};cb_wp.is_user_logged_in=false;</script><link rel="icon" href="https://zenhabits.net/wp-content/uploads/2020/05/favicon.ico" sizes="32x32" />
<link rel="icon" href="https://zenhabits.net/wp-content/uploads/2020/05/favicon.ico" sizes="192x192" />
<link rel="apple-touch-icon" href="https://zenhabits.net/wp-content/uploads/2020/05/favicon.ico" />
<meta name="msapplication-TileImage" content="https://zenhabits.net/wp-content/uploads/2020/05/favicon.ico" />
</head>
<body>
<header class="header">
<div class="wide-container">
<div class="title">
<h1><a href="/">zen habits</a></h1>
</div>
<nav class="header-nav"><div class="menu-header-nav-container"><ul id="menu-header-nav" class="menu"><li id="menu-item-20517" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20517"><a href="https://zenhabits.net/training/">training</a></li>
<li id="menu-item-20518" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20518"><a href="https://zenhabits.net/books/">books</a></li>
<li id="menu-item-20519" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20519"><a href="https://zenhabits.net/about/">about</a></li>
<li id="menu-item-20520" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20520"><a href="https://zenhabits.net/archives/">Archives</a></li>
</ul></div></nav>
<div class="byline">
<h1><a href="https://zenhabits.net/more">breathe</a></h1>
</div>
</div>
</header>
<div class="container">
<h2><a href="https://zenhabits.net/trustable/" rel="bookmark" title="Permanent Link to Becoming Trustable">Becoming Trustable</a></h2>
<div class="post">
<h4>By <a href="http://leobabauta.com/">Leo Babauta</a></h4>
<p>As a husband, a father, a man … one of the things I crave most is for my loved ones to trust me. It’s something I want with my team, my readers, my coaching clients, the members of my Sea Change and Fearless Training programs.</p>
<p>And I’ve worked hard over the years to become more trustable.</p>
<p>It’s really a magical thing, when people start trusting you. When your wife and kids trust you, it can melt your heart. They can relax, and feel taken care of. When your clients trust you, you can go deeper with them. When you trust yourself, you can relax more in any activity.</p>
<p>There’s magic in becoming trustable.</p>
<p>In this article, I’d like to share some of what I’ve learned. To be clear: I am not perfect, and I don’t always do everything perfectly. This isn’t about perfection, but about being someone that people can count on — including taking responsibility when you’ve fallen short of what they were expecting.</p>
<h3 id="an-example-what-happens-in-a-marriage-when-you-re-trustable">An Example: What Happens in a Marriage When You’re Trustable</h3>
<p>A marriage is a great example of where the magic of trustability can transform things. In a marriage, one partner will crave the radiant love (not necessarily sexual love) of the other partner — a husband craving the abundant feminine love of his wife, for example. (Note: This can apply to any gendered relationship — I’m going to use man/woman because that’s the one I know best.)</p>
<p>But she can’t fully give her radiant love and affection if she can’t relax. And she can’t relax if she’s always worried about whether things are going to be taken care of, anxious about whether her life is safe, whether you’re going to follow through on what you said you’d do. I can’t tell you how many men I’ve worked with who said this is one of their wives’ main complaint!</p>
<p>When our partner doesn’t trust us and complains that we don’t do what we say we’re going to do … we can take that as criticism. We can say, “Why does she always have to complain about me??” But what we’re missing is truly getting her experience, of having to worry about things she doesn’t want to worry about. She feels tense, and she can’t relax enough to give her radiant love.</p>
<p>When they can relax, and know that things are taken care of … they can give their love more easily and abundantly. Which is what we crave.</p>
<p>And so the magic comes when we become trustable — all of a sudden, they can relax more. And their love flows more easily and abundantly. It’s a wonderful magic!</p>
<p>It turns out, this is how all relationships often work, including professional relationships — when they can trust us and relax, a deeper relationship can form. Magic happens.</p>
<h3 id="how-to-become-more-trustable">How to Become More Trustable</h3>
<p>When we understand how all of the above works … then the question becomes, “How do I become more trustable?”</p>
<p>And my answer is that it doesn’t happen overnight. And it’s a never-ending process, like any kind of mastery. You’re never done growing in this area.</p>
<p>But it is possible to grow tremendously here!</p>
<p>I’m going to give some of the key learnings here:</p>
<ul><li><strong>Do your best to practice keeping your word</strong>. That means when you say you’re going to do something, really commit to making that happen. Sometimes that means sacrificing some comfort to make it happen. But make it a top priority, and take it seriously.</li><li><strong>When you can’t keep your word, own up to it</strong>. Let them know ahead of time if you’re not able to do it. If you messed up, take responsibility and apologize, and let them know what you’ll do going forward to avoid the same mistake repeating. Do what you need to do to fix things.</li><li><strong>Breathe deeply and slow down</strong>. When we’re jumpy and anxious, they will feel it. When we stand solidly, breathe deeply, and go slower … they feel this as solidity and trustability. As with all of this, it’s a learning process — you’ll have moments of anxiety, but you can learn to breathe deeply even here. You’ll have moments of fidgetyness and jumpiness … but you can learn to slow down even here, with practice.</li><li><strong>Create structure for yourself and them</strong>. When you are committed to making certain things happen (taking care of the car, getting the groceries, paying the bills) … it will help greatly to have structure, like a schedule with reminders. When will this get taken care of? You might alter the structure, but having a structure for you and those around you helps them to know that things are in order and will be taken care of. Practice creating structure for others when it would serve them (without forcing it on them) — offer a plan, a schedule, a clear decision, an agreement.</li><li><strong>When they complain about something you haven’t done … listen</strong>. Hold space for their complaint, and instead of taking it personally, see if there’s some way you can help them. But listen first, and get them. Then see what you can do to make it right, to create structure so they can trust it will get done, to clean up any mess you’ve accidentally made. You don’t need to feel blame or shame, but just get them.</li><li><strong>Take things seriously</strong>. But not too seriously! OK, it’s good to have a sense of humor … but if you dismiss their concerns, or say, “Yeah yeah don’t worry” … they will worry. They can’t trust that you’re going to do your best. Give it your all. Hear their concerns. Make it clear that you’re going to take care of it.</li><li><strong>Take full responsibility</strong>. Especially when you want to blame them. Instead of pointing the finger … look at what you might have done to contribute to this, or to allow this situation to happen. Have you not been clear? Have you not created an agreement around this? Have you not been acknowledging them for how great they are? Have you not been taking care of things? When you think you shouldn’t have to take on responsibility — that’s when you can take on more.</li><li><strong>Take care of yourself</strong>. If you can’t take care of yourself, how can you be trusted to take care of them? This means clean up your messes, put things in order, do some basic personal hygiene, take care of your emotions, give yourself rest when you’re feeling stressed or burned out. Being trustable doesn’t mean you have to take on so much that you’re overworked.</li><li><strong>Always look for ways to be more trustable</strong>. Where have you dropped the ball? Is there something you could do to feel more solid to them? Where have you avoided taking on responsibility? Where have you let things lapse into a mess? This is a continual area of growth. You don’t have to be perfect, but you can continue to grow. For life.</li></ul>
<p>If you take some of this on, a little at a time, I would be willing to bet that things will magically start to change for you in all of your relationships. And it just feels freaking good to be trusted!</p>
</div>
<div class="all_posts">
<h3><a href="/archives/">See all posts »</a></h3>
</div>
</div>
<footer>
<div class="wide-container">
<div class="products">
<h1>Life-changing training programs and live experiences</h1>
<h1 class="grey">from Zen Habits:</h1>
<div class="product-cards">
<a href="https://seachange.zenhabits.net/">
<div class="product-card">
<img src="https://zenhabits.net/wp-content/themes/zh4/images/logos/sc-logo.svg" />
<p>Transformation,<br>one change at a time</p>
</div>
</a>
<a href="https://fearless.zenhabits.net/">
<div class="product-card">
<img src="https://zenhabits.net/wp-content/themes/zh4/images/logos/ft-logo.svg" />
<p>Fall in love with<br>uncertainty</p>
</div>
</a>
<a href="https://ignite.zenhabits.net/fearless-mastery?utm_source=zen_habits&utm_medium=website&utm_campaign=fearless_mastery&utm_content=footer_box">
<div class="product-card">
<img src="https://zenhabits.net/wp-content/themes/zh4/images/logos/fm-logo.svg" />
<p>6-month mastermind<br>and Costa Rica intensive</p>
</div>
</a>
</div>
</div>
<div class="get-updates">
<div style="text-align: center;">
<form method="POST" action="https://zenhabits.activehosted.com/proc.php" id="_form_1_" class="_form _form_1 _inline-form _inline-style _dark" novalidate>
<input type="hidden" name="u" value="1" />
<input type="hidden" name="f" value="1" />
<input type="hidden" name="s" />
<input type="hidden" name="c" value="0" />
<input type="hidden" name="m" value="0" />
<input type="hidden" name="act" value="sub" />
<input type="hidden" name="v" value="2" />
<div class="_form-content">
<div class="_form_element _x11465611 _inline-style _clear">
<div class="_form-title subscribe-cta">
Get Zen Habits in Your Inbox
</div>
</div>
<div class="_form_element _x44360788 _inline-style ">
<div class="_field-wrapper">
<input type="text" name="firstname" placeholder="Type your first name" />
</div>
</div>
<div class="_form_element _x71003473 _inline-style ">
<div class="_field-wrapper">
<input type="text" name="email" placeholder="Type your email" required />
</div>
</div>
<div class="_button-wrapper _inline-style">
<button id="_form_1_submit" class="_submit" type="submit">
Get Updates
</button>
</div>
<div class="_clear-element">
</div>
</div>
<div class="_form-thank-you" style="display:none;">
</div>
</form>
</div><script type="text/javascript">
window.cfields = [];
window._show_thank_you = function(id, message, trackcmp_url) {
var form = document.getElementById('_form_' + id + '_'), thank_you = form.querySelector('._form-thank-you');
form.querySelector('._form-content').style.display = 'none';
thank_you.innerHTML = message;
thank_you.style.display = 'block';
if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {
// Site tracking URL to use after inline form submission.
_load_script(trackcmp_url);
}
if (typeof window._form_callback !== 'undefined') window._form_callback(id);
};
window._show_error = function(id, message, html) {
var form = document.getElementById('_form_' + id + '_'), err = document.createElement('div'), button = form.querySelector('button'), old_error = form.querySelector('._form_error');
if (old_error) old_error.parentNode.removeChild(old_error);
err.innerHTML = message;
err.className = '_error-inner _form_error _no_arrow';
var wrapper = document.createElement('div');
wrapper.className = '_form-inner';
wrapper.appendChild(err);
button.parentNode.insertBefore(wrapper, button);
document.querySelector('[id^="_form"][id$="_submit"]').disabled = false;
if (html) {
var div = document.createElement('div');
div.className = '_error-html';
div.innerHTML = html;
err.appendChild(div);
}
};
window._load_script = function(url, callback) {
var head = document.querySelector('head'), script = document.createElement('script'), r = false;
script.type = 'text/javascript';
script.charset = 'utf-8';
script.src = url;
if (callback) {
script.onload = script.onreadystatechange = function() {
if (!r && (!this.readyState || this.readyState == 'complete')) {
r = true;
callback();
}
};
}
head.appendChild(script);
};
(function() {
if (window.location.search.search("excludeform") !== -1) return false;
var getCookie = function(name) {
var match = document.cookie.match(new RegExp('(^|; )' + name + '=([^;]+)'));
return match ? match[2] : null;
}
var setCookie = function(name, value) {
var now = new Date();
var time = now.getTime();
var expireTime = time + 1000 * 60 * 60 * 24 * 365;
now.setTime(expireTime);
document.cookie = name + '=' + value + '; expires=' + now + ';path=/';
}
var addEvent = function(element, event, func) {
if (element.addEventListener) {
element.addEventListener(event, func);
} else {
var oldFunc = element['on' + event];
element['on' + event] = function() {
oldFunc.apply(this, arguments);
func.apply(this, arguments);
};
}
}
var _removed = false;
var form_to_submit = document.getElementById('_form_1_');
var allInputs = form_to_submit.querySelectorAll('input, select, textarea'), tooltips = [], submitted = false;
var getUrlParam = function(name) {
var regexStr = '[\?&]' + name + '=([^&#]*)';
var results = new RegExp(regexStr, 'i').exec(window.location.href);
return results != undefined ? decodeURIComponent(results[1]) : false;
};
for (var i = 0; i < allInputs.length; i++) {
var regexStr = "field\\[(\\d+)\\]";
var results = new RegExp(regexStr).exec(allInputs[i].name);
if (results != undefined) {
allInputs[i].dataset.name = window.cfields[results[1]];
} else {
allInputs[i].dataset.name = allInputs[i].name;
}
var fieldVal = getUrlParam(allInputs[i].dataset.name);
if (fieldVal) {
if (allInputs[i].dataset.autofill === "false") {
continue;
}
if (allInputs[i].type == "radio" || allInputs[i].type == "checkbox") {
if (allInputs[i].value == fieldVal) {
allInputs[i].checked = true;
}
} else {
allInputs[i].value = fieldVal;
}
}
}
var remove_tooltips = function() {
for (var i = 0; i < tooltips.length; i++) {
tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);
}
tooltips = [];
};
var remove_tooltip = function(elem) {
for (var i = 0; i < tooltips.length; i++) {
if (tooltips[i].elem === elem) {
tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);
tooltips.splice(i, 1);
return;
}
}
};
var create_tooltip = function(elem, text) {
var tooltip = document.createElement('div'), arrow = document.createElement('div'), inner = document.createElement('div'), new_tooltip = {};
if (elem.type != 'radio' && elem.type != 'checkbox') {
tooltip.className = '_error';
arrow.className = '_error-arrow';
inner.className = '_error-inner';
inner.innerHTML = text;
tooltip.appendChild(arrow);
tooltip.appendChild(inner);
elem.parentNode.appendChild(tooltip);
} else {
tooltip.className = '_error-inner _no_arrow';
tooltip.innerHTML = text;
elem.parentNode.insertBefore(tooltip, elem);
new_tooltip.no_arrow = true;
}
new_tooltip.tip = tooltip;
new_tooltip.elem = elem;
tooltips.push(new_tooltip);
return new_tooltip;
};
var resize_tooltip = function(tooltip) {
var rect = tooltip.elem.getBoundingClientRect();
var doc = document.documentElement, scrollPosition = rect.top - ((window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0));
if (scrollPosition < 40) {
tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _below';
} else {
tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _above';
}
};
var resize_tooltips = function() {
if (_removed) return;
for (var i = 0; i < tooltips.length; i++) {
if (!tooltips[i].no_arrow) resize_tooltip(tooltips[i]);
}
};
var validate_field = function(elem, remove) {
var tooltip = null, value = elem.value, no_error = true;
remove ? remove_tooltip(elem) : false;
if (elem.type != 'checkbox') elem.className = elem.className.replace(/ ?_has_error ?/g, '');
if (elem.getAttribute('required') !== null) {
if (elem.type == 'radio' || (elem.type == 'checkbox' && /any/.test(elem.className))) {
var elems = form_to_submit.elements[elem.name];
if (!(elems instanceof NodeList || elems instanceof HTMLCollection) || elems.length <= 1) {
no_error = elem.checked;
}
else {
no_error = false;
for (var i = 0; i < elems.length; i++) {
if (elems[i].checked) no_error = true;
}
}
if (!no_error) {
tooltip = create_tooltip(elem, "Please select an option.");
}
} else if (elem.type =='checkbox') {
var elems = form_to_submit.elements[elem.name], found = false, err = [];
no_error = true;
for (var i = 0; i < elems.length; i++) {
if (elems[i].getAttribute('required') === null) continue;
if (!found && elems[i] !== elem) return true;
found = true;
elems[i].className = elems[i].className.replace(/ ?_has_error ?/g, '');
if (!elems[i].checked) {
no_error = false;
elems[i].className = elems[i].className + ' _has_error';
err.push("Checking %s is required".replace("%s", elems[i].value));
}
}
if (!no_error) {
tooltip = create_tooltip(elem, err.join('<br/>'));
}
} else if (elem.tagName == 'SELECT') {
var selected = true;
if (elem.multiple) {
selected = false;
for (var i = 0; i < elem.options.length; i++) {
if (elem.options[i].selected) {
selected = true;
break;
}
}
} else {
for (var i = 0; i < elem.options.length; i++) {
if (elem.options[i].selected && !elem.options[i].value) {
selected = false;
}
}
}
if (!selected) {
elem.className = elem.className + ' _has_error';
no_error = false;
tooltip = create_tooltip(elem, "Please select an option.");
}
} else if (value === undefined || value === null || value === '') {
elem.className = elem.className + ' _has_error';
no_error = false;
tooltip = create_tooltip(elem, "This field is required.");
}
}
if (no_error && elem.name == 'email') {
if (!value.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)) {
elem.className = elem.className + ' _has_error';
no_error = false;
tooltip = create_tooltip(elem, "Enter a valid email address.");
}
}
if (no_error && /date_field/.test(elem.className)) {
if (!value.match(/^\d\d\d\d-\d\d-\d\d$/)) {
elem.className = elem.className + ' _has_error';
no_error = false;
tooltip = create_tooltip(elem, "Enter a valid date.");
}
}
tooltip ? resize_tooltip(tooltip) : false;
return no_error;
};
var needs_validate = function(el) {
return el.name == 'email' || el.getAttribute('required') !== null;
};
var validate_form = function(e) {
var err = form_to_submit.querySelector('._form_error'), no_error = true;
if (!submitted) {
submitted = true;
for (var i = 0, len = allInputs.length; i < len; i++) {
var input = allInputs[i];
if (needs_validate(input)) {
if (input.type == 'text') {
addEvent(input, 'blur', function() {
this.value = this.value.trim();
validate_field(this, true);
});
addEvent(input, 'input', function() {
validate_field(this, true);
});
} else if (input.type == 'radio' || input.type == 'checkbox') {
(function(el) {
var radios = form_to_submit.elements[el.name];
for (var i = 0; i < radios.length; i++) {
addEvent(radios[i], 'click', function() {
validate_field(el, true);
});
}
})(input);
} else if (input.tagName == 'SELECT') {
addEvent(input, 'change', function() {
validate_field(this, true);
});
} else if (input.type == 'textarea'){
addEvent(input, 'input', function() {
validate_field(this, true);
});
}
}
}
}
remove_tooltips();
for (var i = 0, len = allInputs.length; i < len; i++) {
var elem = allInputs[i];
if (needs_validate(elem)) {
if (elem.tagName.toLowerCase() !== "select") {
elem.value = elem.value.trim();
}
validate_field(elem) ? true : no_error = false;
}
}
if (!no_error && e) {
e.preventDefault();
}
resize_tooltips();
return no_error;
};
addEvent(window, 'resize', resize_tooltips);
addEvent(window, 'scroll', resize_tooltips);
window._old_serialize = null;
if (typeof serialize !== 'undefined') window._old_serialize = window.serialize;
_load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js", function() {
window._form_serialize = window.serialize;
if (window._old_serialize) window.serialize = window._old_serialize;
});
var form_submit = function(e) {
e.preventDefault();
if (validate_form()) {
// use this trick to get the submit button & disable it using plain javascript
document.querySelector('#_form_1_submit').disabled = true;
var serialized = _form_serialize(document.getElementById('_form_1_'));
var err = form_to_submit.querySelector('._form_error');
err ? err.parentNode.removeChild(err) : false;
_load_script('https://zenhabits.activehosted.com/proc.php?' + serialized + '&jsonp=true');
}
return false;
};
addEvent(form_to_submit, 'submit', form_submit);
})();
</script>
</div>
<div class="join-cta">
<h2>Join 2,000,000 breath-taking readers:</h2>
<ul>
<li><a href="https://twitter.com/zen_habits" target="_blank">Twitter</a></li>
<li><a href="https://www.facebook.com/groups/OfficialZenHabits/" target="_blank">Facebook</a></li>
<li><a href="https://www.patreon.com/zenhabits" target="_blank">Patreon</a></li>
</ul>
</div>
<nav class="footer-menu">
<div class="menu-footer-menu-container"><ul id="menu-footer-menu" class="menu"><li id="menu-item-20521" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20521"><a href="https://zenhabits.net/uncopyright/">Uncopyright</a></li>
</ul></div> </nav>
</div>
</footer>
<script type='text/javascript' id='site_tracking-js-extra'>
/* <![CDATA[ */
var php_data = {"ac_settings":{"tracking_actid":1000583938,"site_tracking_default":0,"site_tracking":1},"user_email":""};
/* ]]> */
</script>
<script type='text/javascript' src='https://zenhabits.net/wp-content/plugins/activecampaign-subscription-forms/site_tracking.js?ver=5.6' id='site_tracking-js'></script>
<script type='text/javascript' src='https://zenhabits.net/wp-includes/js/wp-embed.min.js?ver=5.6' id='wp-embed-js'></script>
</body>
</html>