How 3 Millennials Started a Sustainable Fast-Casual Food Chain [VIDEO]


How 3 Millennials Started a Sustainable Fast-Casual Food Chain [VIDEO] | Inc.com

You’re about to be redirected

We notice you’re visiting us from a region where we have a local version of Inc.com.

READ THIS ARTICLE ON

or remain on inc.com

Get Inc. Straight to Your Inbox

SIGN UP FOR TODAY’S 5 MUST READS

‘);

$(‘.status’).css(‘display’, ‘flex’);

$.post(‘../lib/newsletter-signup.php’, formValues, function(data) {
if (data == ‘1’) {
$(‘.form-messages’).html(“Thank you for signing up for Inc. Must Reads!”);
document.cookie = “incNewsletterFlyinCompleted=true; expires=Fri, 1 Jan 2100 00:00:00 UTC; path=/”;
setTimeout(function() {
$(‘#newsletter-flyin’).remove();
}, 2000);
} else if (data == ‘-1’) {
$(‘.form-messages’).html(“This email address is already signed up.”);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 5000);
} else {
$(‘.form-messages’).html(“Something went wrong…”);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 2000);
}
});
} else {
$(‘.form-messages’).html(“Please enter a valid email address”);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 2000);
}

return false;
});
});

// $(document).ready(function(){
// var $form = $(‘.newsletter-subscribe-form’);
// $form.on(‘submit’, function(e) {
// e.preventDefault;
// $(‘.form-messages’).css(‘text-align’,’center’).html(‘Signing you up now!’);
// $(‘.status’).css(‘display’, ‘flex’);
// var registeringemail = $(‘#email_address’).val();
// if (registeringemail == ”) {
// $(‘.form-messages’).html(“Please enter your email address.”);

// setTimeout(function() {
// $(‘.status’).css(‘display’, ‘none’);
// }, 2000);
// } else {
// if( Inc.Utilities.isValidEmailAddress(registeringemail) ) {
// $.ajax({
// type: “POST”,
// data:{“formType”: “HomepageNews”, “email”: registeringemail, “country”:pageInfo.geo.countryname},
// url:”/rest/newhomenewsletters”,
// success:function(params) {
// if(params.overallstatus == “OK”){
// $(‘.form-messages’).html(“Thank you for signing up for Inc. Must Reads!”);
// setTimeout(function() {
// $(‘.status’).css(‘display’, ‘none’);
// $(‘#newsletter-flyin’).removeClass(‘show’);
// document.cookie = “incNewsletterFlyinCompleted=true; expires=Fri, 1 Jan 2100 00:00:00 UTC; path=/”;
// }, 2000);
// } else {
// $(‘.form-messages’).html(“Something went wrong…”);

// setTimeout(function() {
// $(‘.status’).css(‘display’, ‘none’);
// }, 2000);
// }
// }
// });
// } else {
// $(‘.form-messages’).html(“Please enter a valid email address”);

// setTimeout(function() {
// $(‘.status’).css(‘display’, ‘none’);
// }, 2000);
// }
// }
// return false;
// });
// });






Sweetgreen co-founder, Jonathan Neman and COO, Karen Kelley, recreate the decade-long journey to build their startup.

Published on: Nov 20, 2017









Source link

WP Twitter Auto Publish Powered By : XYZScripts.com
Exit mobile version