document.querySelectorAll('form').forEach(function(e) { e.addEventListener('submit', function(e) { e.preventDefault(); var form = this; // Pull data. var first_name = form.querySelector('input[name="fname"]').value; var last_name = form.querySelector('input[name="lname"]').value; var email = form.querySelector('input[name="email"]').value; var phone_number = ''; if (form.querySelector('input[data-title="Areacode"]')) phone_number = form.querySelector('input[data-title="Areacode"').value + '' + document.querySelector('input[data-title="Prefix"').value + '' + document.querySelector('input[data-title="Line"').value; window.analytics.track('Form Submitted', { first_name: first_name, last_name: last_name, email: email, phone_number: phone_number }); window.analytics.identify(analytics.user().anonymousId(), { first_name: first_name, last_name: last_name, email: email, phone_number: phone_number }); }); });
Name *
Name

BECOME A sponsor AT CODE TENDERLOIN

We are looking for funding to create a space where experienced programers and coders can work with the youth of the neighborhood and expose the world of "Tech" to a new community.

This is a grassroots project that is a labor of love for all involved. The love of our home, our neighbors, our city. With the support of both the corporations in the Tenderloin as well as the non-profit service organizations, there is a great deal of momentum building around Code Tenderloin.