{"id":62170,"date":"2017-05-10T16:45:03","date_gmt":"2017-05-10T21:45:03","guid":{"rendered":"http:\/\/toolsinaction.com\/?page_id=62170"},"modified":"2023-10-03T10:12:31","modified_gmt":"2023-10-03T15:12:31","slug":"newsletter","status":"publish","type":"page","link":"https:\/\/toolsinaction.com\/newsletter\/","title":{"rendered":"Newsletter"},"content":{"rendered":"<p>Do you want to stay up to date on the latest in the power tool world? \u00a0Sure, who doesn&#8217;t. \u00a0Sign up to the Tools in Action newsletter and stay up to date. \u00a0Don&#8217;t worry, we never sell, rent or lease your name. \u00a0Here is what you get when you sign up to the Best Power Tool Newsletter.<\/p>\n<ul class=\"td-arrow-list\">\n<li>Latest Power Tool Reviews<\/li>\n<li>Lastest OPE Reviews<\/li>\n<li>Stay up to date on Tool &amp; OPE News<\/li>\n<li>Automotactilly enter to win <strong>FREE TOOLS<\/strong><\/li>\n<li>See what&#8217;s new with Tools in Action<\/li>\n<li>Don&#8217;t have to wait for the mailman. \u00a0We will deliver it right to your email.<\/li>\n<li>Don&#8217;t have to walk to the end of the driveway. \u00a0Just open your email.<\/li>\n<li>We don&#8217;t spam<\/li>\n<\/ul>\n<p><span style=\"background-color: #ffff00;\">This is a double Opt-in newsletter so after you sign up, please check your email and verify your address.<\/span><\/p>\n<p style=\"text-align: center;\">\n            <div id=\"mailerlite-form_1\" data-temp-id=\"6758f3a6190c4\">\n                <div class=\"mailerlite-form\">\n                    <form action=\"\" method=\"post\" novalidate>\n                                                    <div class=\"mailerlite-form-title\"><h3>Newsletter<\/h3><\/div>\n                                                <div class=\"mailerlite-form-description\"><\/div>\n                        <div class=\"mailerlite-form-inputs\">\n                                                                                            <div class=\"mailerlite-form-field\">\n                                    <label for=\"mailerlite-1-field-email\">Email<\/label>\n                                    <input id=\"mailerlite-1-field-email\"\n                                           type=\"email\" required=\"required\"                                            name=\"form_fields[email]\"\n                                           placeholder=\"Email\"\/>\n                                <\/div>\n                                                                                            <div class=\"mailerlite-form-field\">\n                                    <label for=\"mailerlite-1-field-name\">Name<\/label>\n                                    <input id=\"mailerlite-1-field-name\"\n                                           type=\"text\"                                            name=\"form_fields[name]\"\n                                           placeholder=\"Name\"\/>\n                                <\/div>\n                                                        <div class=\"mailerlite-form-loader\">Please wait...<\/div>\n                            <div class=\"mailerlite-subscribe-button-container\">\n                                <button class=\"mailerlite-subscribe-submit\" type=\"submit\">\n                                    Sign Up                                <\/button>\n                            <\/div>\n                            <input type=\"hidden\" name=\"form_id\" value=\"1\"\/>\n                            <input type=\"hidden\" name=\"action\" value=\"mailerlite_subscribe_form\"\/>\n                            <input type=\"hidden\" name=\"ml_nonce\" value=\"6e7cb55d62\"\/>\n                        <\/div>\n                        <div class=\"mailerlite-form-response\">\n                                                            <h4><p><span style=\"color: #339966;\">Thank you for sign up!<\/span><\/p>\n<\/h4>\n                                                    <\/div>\n                    <\/form>\n                <\/div>\n            <\/div>\n        <script type=\"text\/javascript\" src='https:\/\/toolsinaction.com\/wp-content\/plugins\/official-mailerlite-sign-up-forms\/assets\/js\/localization\/validation-messages.js'><\/script>\n         <script type=\"text\/javascript\"> var selectedLanguage = \"\"; var validationMessages = messages[\"en\"]; if(selectedLanguage) { validationMessages = messages[selectedLanguage]; } window.addEventListener(\"load\", function () { var form_container = document.querySelector(`#mailerlite-form_1[data-temp-id=\"6758f3a6190c4\"] form`); let submitButton = form_container.querySelector('.mailerlite-subscribe-submit'); submitButton.disabled = true; fetch('https:\/\/toolsinaction.com\/wp-admin\/admin-ajax.php', { method: 'POST', headers:{ 'Content-Type': 'application\/x-www-form-urlencoded', }, body: new URLSearchParams({ \"action\" : \"ml_create_nonce\", \"ml_nonce\" : form_container.querySelector(\"input[name='ml_nonce']\").value }) }) .then((response) => response.json()) .then((json) => { if(json.success) { form_container.querySelector(\"input[name='ml_nonce']\").value = json.data.ml_nonce; submitButton.disabled = false; } }) .catch((error) => { console.error('Error:', error); }); form_container.addEventListener('submit', (e) => { e.preventDefault(); let data = new URLSearchParams(new FormData(form_container)).toString(); let validationError = false; document.querySelectorAll('.mailerlite-form-error').forEach(el => el.remove()); Array.from(form_container.elements).forEach((input) => { if(input.type !== 'hidden') { if(input.required) { if(input.value == '') { validationError = true; let error = document.createElement(\"span\"); error.className = 'mailerlite-form-error'; error.textContent = validationMessages.required; input.after(error); return false; } } if((input.type == \"email\") && (!validateEmail(input.value))) { validationError = true; let error = document.createElement(\"span\"); error.className = 'mailerlite-form-error'; error.textContent = validationMessages.email; input.after(error); return false; } } }); if(validationError) { return false; } fade.out(form_container.querySelector('.mailerlite-subscribe-button-container'), () => { fade.in(form_container.querySelector('.mailerlite-form-loader')); }); fetch('https:\/\/toolsinaction.com\/wp-admin\/admin-ajax.php', { method: 'POST', headers:{ 'Content-Type': 'application\/x-www-form-urlencoded', }, body: data }) .then((response) => { fade.out(form_container.querySelector('.mailerlite-form-inputs'), () => { fade.in(form_container.querySelector('.mailerlite-form-response')); }); }) .catch((error) => { console.error('Error:', error); }); }); }, false); var fade = { out: function(el, fn = false) { var fadeOutEffect = setInterval(function () { if (!el.style.opacity) { el.style.opacity = 1; } if (el.style.opacity > 0) { el.style.opacity -= 0.1; } else { el.style.display = 'none'; clearInterval(fadeOutEffect); } }, 50); if( typeof (fn) == 'function') { fn(); } }, in: function(el) { var fadeInEffect = setInterval(function () { if (!el.style.opacity) { el.style.opacity = 0; } if (el.style.opacity < 1) { el.style.opacity = Number(el.style.opacity) + 0.1; } else { el.style.display = 'block'; clearInterval(fadeInEffect); } }, 50); } }; function validateEmail(email){ if(email.match( \/^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$\/ )) { return true; } return false; } <\/script> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to stay up to date on the latest in the power tool world? \u00a0Sure, who doesn&#8217;t. \u00a0Sign up to the Tools in Action newsletter and stay up to date. \u00a0Don&#8217;t worry, we never sell, rent or lease your name. \u00a0Here is what you get when you sign up to the Best Power [&hellip;]<\/p>\n","protected":false},"author":191,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"tdm_status":"","tdm_grid_status":"","footnotes":""},"yst_prominent_words":[2623,19080,5537,9617,16697,2639,2638,3763,19084,16644,16648,2620],"class_list":["post-62170","page","type-page","status-publish"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P9eRFm-gaK","_links":{"self":[{"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/pages\/62170"}],"collection":[{"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/users\/191"}],"replies":[{"embeddable":true,"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/comments?post=62170"}],"version-history":[{"count":0,"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/pages\/62170\/revisions"}],"wp:attachment":[{"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/media?parent=62170"}],"wp:term":[{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/toolsinaction.com\/wp-json\/wp\/v2\/yst_prominent_words?post=62170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}