Interview: Kayak CEO Steve Hafner on the future of travel – The Hustle

[e-mail-submission-type redirect-to-house=”true” button-textual content material=”Be a part of Free” embrace-tendencies-choose-in=”true” id=”primary-signup-type” fail-url=”” success-url=”https://thehustle.co/signup” default-supply=”thehustl…….

[e-mail-submission-type redirect-to-house=”true” button-textual content material=”Be a part of Free” embrace-tendencies-choose-in=”true” id=”primary-signup-type” fail-url=”” success-url=”https://thehustle.co/signup” default-supply=”thehustleco” default-advertising campaign=”house”]

<script type=”textual content material/javascript”>
var onloadCallback = pertype() {
grecaptcha.render(‘confirm-your-humanity’, {
‘sitekey’ : ‘6LdddrcZAAAAALyttpvOqiwQGwq5BNhgDz4tMQGE’
});
};
pertype getCookieValue(a) {
var b = doc.cookie.match(‘(^|[^;]+)\s*’ + a + ‘\s*=\s*([^;]+)’);
return b ? atob(decodeURIComponent(b.pop())) : ”;
}
pertype setHiddenFieldValue(wrappingDiv, searchParams, className, utmName, cookieName, defaultValue) {
var el = wrappingDiv.getElementsByClassName(className)[0];
var existingVal = el.getAttribute(‘worth’);
var newVal = searchParams.get(utmName) || getCookieValue(cookieName);
if ((existingVal == null || existingVal == ” || existingVal == defaultValue) && (newVal != null && newVal != ”)) {
el.setAttribute(‘worth’, newVal);
}
}
pertype setHiddenFieldValueFromUtm(
wrappingDiv,
searchParams,
className,
utmName,
defaultValue
) {
var el = wrappingDiv.getElementsByClassName(className)[0];
if (el != null) {
var existingVal = el.getAttribute(“worth”);
var newVal = searchParams.get(utmName);
if (newVal != null && newVal != “”) {
el.setAttribute(“worth”, newVal);
}
}
}
pertype initForm() {
var wrappingDivs = doc.getElementsByClassName(‘e-mail-submission’);
wrappingDivs.forEach(wrappingDiv => {
var sp = new URLSearchParams(window.location.search);
setHiddenFieldValue(wrappingDiv, sp, ‘funnel-supply’, ‘utm_supply’, ‘funnel_supply’, ‘thehustleco’);
setHiddenFieldValue(wrappingDiv, sp, ‘funnel-advertising campaign’, ‘utm_advertising campaign’, ‘funnel_advertising campaign’, ‘house’);
setHiddenFieldValue(wrappingDiv, sp, ‘funnel-medium’, ‘utm_medium’, ‘funnel_medium’, ”);
setHiddenFieldValue(wrappingDiv, sp, ‘funnel-referral’, ‘ref’, ‘funnel_referral’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-a’, ‘a’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-c’, ‘c’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-o’, ‘o’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-oc’, ‘oc’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-e’, ‘e’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-f’, ‘f’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-r’, ‘r’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-t’, ‘t’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-s1’, ‘s1’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-s2’, ‘s2’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-s3’, ‘s3’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-s4’, ‘s4’, ”);
setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-s5’, ‘s5’, ”);
var error_message = getCookieValue(‘funnel_error_message’);
if (error_message && error_message.trim() != ”) {
var error = wrappingDiv.getElementsByClassName(‘funnel-error’)[0];
var prev_e-mail = getCookieValue(‘funnel_e-mail’);
error_message = prev_e-mail + ” Isn’t legitimate. Please try as quickly as extra”;
error.innerHTML = error_message;
error.type = ”;
}
});
if (false) {
initCaptchaFormV2();
}
}
pertype initCaptchaFormV2() {
var v3RecaptchaResponseEl = doc.getElementById(‘recaptcha-response-v3’);
v3RecaptchaResponseEl.parentNode.removeChild(v3RecaptchaResponseEl);
var wrappingDiv = doc.getElementById(‘primary-signup-type’);
var subForm = wrappingDiv.getElementsByClassName(‘e-mail-submission’)[0];
var captchaVersion = doc.createElement(‘enter’);
captchaVersion.class = ‘g-recaptcha hidden-enter’;
captchaVersion.type = ‘hidden’;
captchaVersion.identify = ‘g-recaptcha-response-v2’;
captchaVersion.worth = ‘true’;
subForm.appendChild(captchaVersion);
var captchaEl = doc.createElement(‘div’);
captchaEl.id = ‘confirm-your-humanity’;
subForm.appendChild(captchaEl);
var captchaApiScriptEl = doc.createElement(‘script’);
captchaApiScriptEl.src = ‘https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=particular’;
captchaApiScriptEl.async = true;
captchaApiScriptEl.defer = true;
doc.head.appendChild(captchaApiScriptEl);
}
pertype appendCheckboxes() {
var chooseInDivs = doc.querySelectorAll(‘.tendencies-choose-in’);
chooseInDivs.forEach(el => {
if (el.getElementsByClassName(‘tendencies-choose-in-checkbox’).size < 1) {
var checkbox = doc.createElement(‘enter’);
checkbox.setAttribute(‘class’, ‘tendencies-choose-in-checkbox’);
checkbox.setAttribute(‘type’, ‘checkbox’);
checkbox.setAttribute(‘identify’, ‘tendencies_choose_in’);
var label = doc.createElement(‘label’);
label.setAttribute(‘class’, ‘tendencies-choose-in-textual content material’);
label.textual content materialContent = “Sure, I might Want to acquire updates on market alternatives earlier than they explode from Trends by The Hustle”;
el.appendChild(checkbox);
el.appendChild(label);
checkbox.click on();
}
})
}
window.addEventListener(‘DOMContentLoaded’, (event) => {
var funnel_e-mail_cookie = getCookieValue(‘funnel_e-mail’);
if (
(true) &&
(funnel_e-mail_cookie != null && funnel_e-mail_cookie != ”)
) {
window.location.substitute(‘/house’);
}
initForm();
if (true) {
appendCheckboxes();
}
});
</script> <div class=”e-mail-signup” id=primary-signup-type>
<div class=”funnel-error” type=”current:none;”></div>
<type class=”e-mail-submission” movement=”https://cms.thehustle.co/api/v1/contacts/wordpress_create” method=”submit”>
<div class=”e-mail-type-wrap”>
<enter class=”funnel-supply hidden-enter” type=”hidden” identify=”supply” worth=”thehustleco”>
<enter class=”funnel-advertising campaign hidden-enter” type=”hidden” identify=”advertising campaign” worth=”house”>
<enter class=”funnel-medium hidden-enter” type=”hidden” identify=”medium”>
<enter class=”funnel-referral hidden-enter” type=”hidden” identify=”referral_code”>
<enter class=”funnel-fail-url hidden-enter” type=”hidden” identify=”fail_url” worth=””>
<enter class=”funnel-a hidden-enter” type=”hidden” identify=”a” worth=””>
<enter class=”funnel-c hidden-enter” type=”hidden” identify=”c” worth=””>
<enter class=”funnel-o hidden-enter” type=”hidden” identify=”o” worth=””>
<enter class=”funnel-oc hidden-enter” type=”hidden” identify=”oc” worth=””>
<enter class=”funnel-e hidden-enter” type=”hidden” identify=”e” worth=””>
<enter class=”funnel-f hidden-enter” type=”hidden” identify=”f” worth=””>
<enter class=”funnel-r hidden-enter” type=”hidden” identify=”r” worth=””>
<enter class=”funnel-t hidden-enter” type=”hidden” identify=”t” worth=””>
<enter class=”funnel-s1 hidden-enter” type=”hidden” identify=”s1″ worth=””>
<enter class=”funnel-s2 hidden-enter” type=”hidden” identify=”s2″ worth=””>
<enter class=”funnel-s3 hidden-enter” type=”hidden” identify=”s3″ worth=””>
<enter class=”funnel-s4 hidden-enter” type=”hidden” identify=”s4″ worth=””>
<enter class=”funnel-s5 hidden-enter” type=”hidden” identify=”s5″ worth=””>
<enter class=”funnel-success-url hidden-enter” type=”hidden” identify=”success_url” worth=”https://thehustle.co/signup”>
<enter id=”recaptcha-response-v3″ class=”g-recaptcha hidden-enter” type=”hidden” identify=”g-recaptcha-response” worth=””>
<enter class=”signup-e-mail” type=”e-mail” identify=”e-mail” placeholder=”Your e-mail tackle” required>
<enter class=”e-mail-submit” type=”submit” worth=”Be a part of Free”>
</div>
<div class=”tendencies-choose-in”></div>
<div submit-success>
<template type=”amp-mustache”>
<p class=”c-message c-message–success”>Thanks for subscribing.</p>
</template>
</div>
<div submit-error>
<template type=”amp-mustache”>
<p class=”c-message c-message–failed”>Your submission failed. Please try as quickly as extra!</p>
</template>
</div>
</type>
</div>

Source: https://thehustle.co/interview-kayak-ceo-steve-hafner-on-the-future-of-travel/

Leave a Reply

Your email address will not be published. Required fields are marked *