[email-submission-form button-text=”Join Free” include-trends-opt-in=”true” success-url=”https://thehustle.co/signup” default-source=”thehustleco” default-medium=”home-exit-popup” default-campaign=”home-page”]
<script type=”text/javascript”>
var onloadCallback = function() {
grecaptcha.render(‘verify-your-humanity’, {
‘sitekey’ : ‘6LdddrcZAAAAALyttpvOqiwQGwq5BNhgDz4tMQGE’
});
};
function getCookieValue(a) {
var b = document.cookie.match(‘(^|[^;]+)s*’ + a + ‘s*=s*([^;]+)’);
return b ? atob(decodeURIComponent(b.pop())) : ”;
}
function getCookie(name) {
var cookieArr = document.cookie.split(“;”);
for(var i = 0; i < cookieArr.length; i++) {
var cookiePair = cookieArr[i].split(“=”);
if(name == cookiePair[0].trim()) {
return decodeURIComponent(cookiePair[1]);
}
}
return null;
}
function setHiddenFieldValue(wrappingDiv, searchParams, className, utmName, cookieName, defaultValue) {
var el = wrappingDiv.getElementsByClassName(className)[0];
var existingVal = el.getAttribute(‘value’);
if (utmName == ‘ref’) {
var newVal = searchParams.get(utmName) || getCookie(cookieName);
} else {
var newVal = searchParams.get(utmName) || getCookieValue(cookieName);
}
if ((existingVal == null || existingVal == ” || existingVal == defaultValue) && (newVal != null && newVal != ”)) {
el.setAttribute(‘value’, newVal);
}
}
function setHiddenFieldValueFromUtm(
wrappingDiv,
searchParams,
className,
utmName,
defaultValue
) {
var el = wrappingDiv.getElementsByClassName(className)[0];
if (el != null)…