American Diabetes Association's Tour de Cure (2024)

American Diabetes Association's Tour de Cure (2)

About TourTeaming Up

SponsorshipLiving Red

American Diabetes Association's Tour de Cure (3)

About ADAFundraising Tools

FAQ

American Diabetes Association's Tour de Cure (4)

Donate to a participant:


Donate to a team:

Donate directly to ADA

American Diabetes Association's Tour de Cure (5)

Search By State:


Search By Event

American Diabetes Association's Tour de Cure (6)

Error: Invalid Login. Please try again.

forgot password?

About TourTeaming Up

SponsorshipLiving Red

About ADAFundraising Tools

FAQ

Donate to a participant:

Donate to a team:
Donate directly to ADA

Search By State:

OR

Over 30 years Connected and Mission Fuels our Passion to Find a Cure


Research

Committed to innovation and breakthrough research that will improve the lives of all people living with diabetes.

Learn more

Advocacy

Transforming lives with action. Learn about our advocacy priorities at the state and federal levels

Learn more

Resources

Providing resources on the latest diabetes research, treatment and technology advancements.

Learn more

Education

Promoting quality education for people with diabetes and professionals who care for those living with diabetes.

Learn more

Donate to your favorite participant or team!


Tour de Cure® fundraising has supported our efforts to advocate on behalf of over 37.3 million Americans living with diabetes, fund research to bring us closer to a cure and provide resources to health care professionals and anyone impacted by this disease. Your donation will have an impact for years to come.

Find a Team


Find a Rider


Tour de Cure is the American Diabetes Association’s premiere cycling and fundraising event. With health and safety in mind, the 2023 Tour de Cure will be in person at locations around the country.


American Diabetes Association's Tour de Cure (7)

Red Riders

Our Living Red initiative recognizes and supports individuals living with diabetes (Red Riders) participating in our virtual events. They are our heroes and our reason why!


Learn more

American Diabetes Association's Tour de Cure (8)

National Teams

Teams that have committed to engaging their employees in multiple virtual events nationwide, fundraising to support our mission.

Learn more

American Diabetes Association's Tour de Cure (9)

Teaming Up

Create a virtual team with your colleagues, friends and family members. Together, you can fundraise and join us in making an impact.

Learn more

About

About Tour
Teaming Up
Sponsorship
Living Red

Learn More

About ADA
Fundraising Tools
FAQ

© 2023 American Diabetes Association

All rights reserved. Use of this Web site constitutes acceptance of our Terms of Use and Privacy Policy.

The American Diabetes Association is the nation's leading 501(C)3 nonprofit charity providing diabetes research, information and advocacy.

Tour de Cure is the premier fundraising campaign of the American Diabetes Association ®, now with virtual engagement designed for anyone and everyone to participate. The campaign has been expanded to include more members of our community and bring them together to learn about diabetes, healthy living and to support people living with diabetes. Tour de Cure is a unique opportunity for businesses, clubs, friends and families to form virtual teams with the vision of a life free of diabetes and all its burdens.

Credit Card Verification Code

The Verification Code is imprinted on credit cards to help merchants verify transactions when the actual card is not present, such as Internet purchases or donations. The merchant uses this number as part of the authorization process with the card issuer.

Please use the images below to locate the verification code for your card type.

Visa, Master Card, and Discover

American Diabetes Association's Tour de Cure (11)

The verification code for Visa, Master Card, and Discover is a 3-digit number printed on the back of your card. It appears after the account number or last 4-digits of your account number, in the signature panel.

American Diabetes Association's Tour de Cure (12)

American Express

The American Express verification code is a 4-digit number printed on the front of your card. It appears above and to the right of the embossed account number.

Register


CREATE a new team

Become a captain of a new team.


JOIN a team

Join a team already registered for this event.


REGISTER as an individual

Participate without associating with a team.


Create a Team

American Diabetes Association's Tour de Cure (13)

You can create a team either through the "Register" button above where you'll first find the nearby event or by visiting the list of events associated with national company below.

Do not forget to associate your newly created team with this company.

');var UTGoalURL ="https://donations.diabetes.org/site/CRTeamraiserAPI?method=getCompaniesByInfo&api_key=adap1234&v=1.0&response_format=json&fr_id="+getURLParameter('fr_id')+"&company_id="+getURLParameter('company_id');jQADA.getJSON(UTGoalURL, function(data){var utgoal=commaSeparateNumber(data.getCompaniesResponse.company.goal/100);var utraised=commaSeparateNumber(data.getCompaniesResponse.company.amountRaised/100);jQADA('#goalamount').text('$'+utgoal);jQADA('#amountraised').text('$'+utraised);}).done(function(){renderThermo();});retrieveCompanyTeamParticipantAPI();jQADA('#bannerctacompanyjointeamlink').click(function(){jQADA('html, body').animate({scrollTop: jQuery('#companyTeamAPIListing').offset().top - 150}, 1000);});}jQADA('#localEvtSponsor').load('../site/TR?pg=informational&fr_id='+getURLParameter("fr_id")+'&type=fr_informational&sid=26844&pgwrap=n',function(){stripPfromLocalSponsor();});}if(jQADA.trim(jQADA('#s4val').text()) === '27'){RegHandler();}if(getURLParameter('pagename') === 'TC_All_Events'){getAllEvents();}//donation//whatcvvjQADA('.HelpLink:eq(0)').prop('id','whatcvvori');jQADA('#whatcvvori').hide();jQADA('What\'s CVV?').insertAfter(jQADA('#whatcvvori'));jQADA('#whatcvv').on('click', function(){jQADA.magnificPopup.open({ items: { src: '#cvvpop', type: 'inline' } });});//createteamnatcompjQADA('#bannerctacompanycreateteamlink').on('click', function(){jQADA.magnificPopup.open({ items: { src: '#createteamcompanypop', type: 'inline' } });});if(getURLParameter('pg') ==='national_company'){jQADA('#natcompname').text(jQADA('#title_container').text());jQADA('table[summary="layout table"]','#main_container').hide();jQADA('table[summary="layout table"]','#company_tally').find('tr:eq(1)').hide();var nc_logo_src=jQADA('div#logo_container img').attr('src');var join_ncteam_href='SPageServer?pagename=TC_Natl_Teams&natteam='+getURLParameter("company_id")+'&logosrc='+nc_logo_src;jQADA('#bannerctacompanyjointeamlink').attr('href', join_ncteam_href);/*jQADA('#ncGuideLinks').html('

Participant and Team Resources:

We are here to provide support and to start you off, here are some resources to help you be a successful fundraiser.

  • We have made fundraising easy. This Fundraising Guide has great ideas to help you reach your goal personally and with your team.
  • Interested in becoming a Team Captain? The Team Captain Guide has information about how to lead a successful fundraising team, recruit team members and engage your company for support.
');*///jQADA('#logo_container').append('
American Diabetes Association's Tour de Cure (14)
');jQADA('#NatComActualContent').html(jQADA('#fr_html_container').html());jQADA('#logo_container').prependTo(jQADA('#NatComActualContent'));//jQADA('#logo_container').append('American Diabetes Association's Tour de Cure (15)'); jQADA('#logo_container').css({'float':'right', 'margin':'10px'});//jQADA('#logo_container img').prop('style','float:right;margin:10px;'); //jQADA('#NatComActualContent').prepend(jQADA('#logo_container').html());jQADA('#top_events_title_container').hide();jQADA('#top_events_title_container').next().hide();jQADA('#top_teams_title_container').text('Top 10 '+jQADA('#title_container').text()+' Teams');jQADA('#top_participants_title_container').text('Top 10 '+jQADA('#title_container').text()+' Participants');jQADA('#top-teams-table').next().hide();jQADA('#top-participants-table').next().hide();//jQADA('#top_teams_title_container').hide();jQADA('#top_teams_title_container').next('div').hide();jQADA('

Click here to see top fundraising teams

').insertAfter(jQADA('#top_teams_title_container'));var custtopncteamlink = jQADA('#bannerctacompanyjointeamlink').prop('href')+'&ldrboard=y&sortOptions=raisedamt';jQADA('#adapatchtopteamnclink').prop('href',custtopncteamlink);}FindEvtListener();}); //end doc readyfunction FindEvtListener(){jQADA('#selectedStateVal').on('change', function(){findEvtResponse('#selectedStateVal');});jQADA('#selectedStateValCTA').on('change', function(){findEvtResponse('#selectedStateValCTA');});jQADA('#selectedStateValCTAMobile').on('change', function(){findEvtResponse('#selectedStateValCTAMobile');});var currLoc = getURLParameter('pagename');var isDevHomepage = getURLParameter('showHomepage');if(stateval != "null"){if((currLoc.toLowerCase().indexOf("tc_homepage")!= -1)||((currLoc.toLowerCase().indexOf("tc_dev_dh")!=-1)&&(isDevHomepage === "yes"))) {luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByStateCallback,data: 'method=getTeamraisersByInfo&county='+stateval.toUpperCase()+'&list_sort_column=state&response_format=json&event_type=Tour%20de%20Cure'});} else {window.location = 'SPageServer?pagename=TC_homepage&stateval='+stateval;}}jQADA('#stateSearch').on('change', function(){luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByStateCallback,data: 'method=getTeamraisersByInfo&county='+ jQADA('#stateSearch option:selected').text().toUpperCase() +'&list_sort_column=state&response_format=json&event_type=Tour%20de%20Cure'});});jQADA('#stateSearchCTA').on('change', function(){if((currLoc.toLowerCase().indexOf("tc_homepage")!= -1)||((currLoc.toLowerCase().indexOf("tc_dev_dh")!=-1)&&(isDevHomepage === "yes"))) { statefromtopnav = 1;luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByStateCallback,data: 'method=getTeamraisersByInfo&county='+ jQADA('#stateSearchCTA option:selected').text().toUpperCase() +'&list_sort_column=state&response_format=json&event_type=Tour%20de%20Cure'}); } else {window.location = 'SPageServer?pagename=TC_homepage&stateval='+jQADA('#stateSearchCTA option:selected').text().toUpperCase();}});jQADA('#stateSearchCTAMobile').on('change', function(){if((currLoc.toLowerCase().indexOf("tc_homepage")!= -1)||((currLoc.toLowerCase().indexOf("tc_dev_dh")!=-1)&&(isDevHomepage === "yes"))) { statefromtopnav = 1;luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByStateCallback,data: 'method=getTeamraisersByInfo&county='+ jQADA('#stateSearchCTAMobile option:selected').text().toUpperCase() +'&list_sort_column=state&response_format=json&event_type=Tour%20de%20Cure'});} else {window.location = 'SPageServer?pagename=TC_homepage&stateval='+jQADA('#stateSearchCTAMobile option:selected').text().toUpperCase();}});}function DFHandler(){//Look for checked radio button to create pre-selected button on pageloadjQADA('div.donation-level-label-input-container input[checked="checked"]').closest('.donation-level-input-container').find('.donation-level-label-container').addClass('active');//Add active class to selected donation level (button)jQADA('.donation-level-amount-container, .donation-level-label-container').click(function() { jQADA('div.donation-level-input-container .active').removeClass('active'); jQADA(this).addClass('active'); });//Add active class to corresponding 'Other' button on input focusjQADA('.donation-level-user-entered input[type="text"]').focus(function(){ jQADA('div.active').removeClass('active'); jQADA(this).parent('div.donation-level-user-entered').siblings('label').children('.donation-level-label-container').addClass('active');})//Add '$' in front of other amount input fields//jQADA('div.donation-level-user-entered').prepend('$');jQADA('label[for=gdpr_consent_dropdown]').hide();jQADA('label[for=gdpr_consent_radio]').hide();jQADA('#gdpr_consent_radio').hide();if(jQADA('#billing_addr_country').length){checkMYGDPR();jQADA('#billing_addr_country').on('change', function(){checkMYGDPR();});}}function retrieveCompanyTeamParticipantAPI(){luminateExtend.api.request({ api: 'teamraiser', callback: getCompanyTeamsCallback, data: 'method=getTeamsByInfo&response_format=json&fr_id='+getURLParameter("fr_id")+'&list_page_size=1000&team_company_id='+getURLParameter("company_id"), requestType: 'GET' });}function getCompanyTeamsCallback(data){if (data.errorResponse) { alert("Error: "+data.errorResponse.message); } else if (data.getTeamSearchByInfoResponse.team) { var teamsListing = luminateExtend.utils.ensureArray(data.getTeamSearchByInfoResponse.team);var teamsListingSortedRaised = _.sortBy(teamsListing,function(teamsListing){return Number(teamsListing.amountRaised);}).reverse();var renderTeamInstances = ""; jQADA.each(teamsListingSortedRaised, function(){ var amtRaised = this.amountRaised; if(amtRaised != "0"){ amtRaised = amtRaised.slice(0,-2) } if(this.divisionName != "null"){ var whatDiv = this.divisionName; if(whatDiv.indexOf("Family") != -1){ var whatDivColor = "#558000"; var whatDivClass = "FamilyTeam"; } if (whatDiv.indexOf("Corporate") != -1){ var whatDivColor = "#ff9900"; var whatDivClass = "CorporateTeam"; } if (whatDiv.indexOf("Club") != -1){ var whatDivColor = "#ffcccc"; var whatDivClass = "ClubTeam"; } if (whatDiv.indexOf("School") != -1){ var whatDivColor = "#cc99ff"; var whatDivClass = "SchoolTeam"; } } renderTeamInstances += "

Team Name

"+this.name+"

Team Captain

"+this.captainFirstName+" "+this.captainLastName+"

Team Members

"+this.numMembers+"

Join

"; }); renderTeamInstances +=""; jQADA('#companyTeamAPIListing').append(renderTeamInstances); }}function commaSeparateNumber(val){ while (/(\d+)(\d{3})/.test(val.toString())){ val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); } return val;}function stripPfromLocalSponsor(){jQADA('p','#localEvtSponsor').replaceWith(function() { return jQADA(this).contents(); });jQADA('span','#localEvtSponsor').replaceWith(function() { return jQADA(this).contents(); });jQADA('img','#localEvtSponsor').removeAttr('width');jQADA('img','#localEvtSponsor').removeAttr('height');}function assignCustomTRPageTitle(){switch(getURLParameter('sid')){ case '26865': var pgTitle = "Community"; break; case '26840': var pgTitle = "Event Details"; break; case '26841': var pgTitle = "FAQ"; break; case '26845': var pgTitle = "Recognition Gifts"; break; case '26843': var pgTitle = "Red Riders"; break; case '26847': var pgTitle = "Volunteer"; break; case '26842': var pgTitle = "Fundraising and Champions"; break; case '26848': var pgTitle = "Fundraising Toolkit"; break; }jQADA('#currCustomPageTitle').text(pgTitle);}function topNavHandler(){jQADA('#submenu1A').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');/*if(jQADA('#submenu1A').hasClass('active')){jQADA('#submenu1A').removeClass('active');} else {jQADA('#submenu1A').addClass('active');}*/jQADA('#submenu1A').addClass('active');//jQADA('#submenugroup1A').toggle();jQADA('#submenugroup1A').show();jQADA('#submenugroup1C').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenu1B').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1C').removeClass('active');/*if(jQADA('#submenu1B').hasClass('active')){jQADA('#submenu1B').removeClass('active');} else {jQADA('#submenu1B').addClass('active');}*/jQADA('#submenu1B').addClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1C').hide();//jQADA('#submenugroup1B').toggle();jQADA('#submenugroup1B').show();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenu1C').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1A').removeClass('active');/*if(jQADA('#submenu1C').hasClass('active')){jQADA('#submenu1C').removeClass('active');} else {jQADA('#submenu1C').addClass('active');}*/jQADA('#submenu1C').addClass('active');jQADA('#submenugroup1A').hide();//jQADA('#submenugroup1C').toggle();jQADA('#submenugroup1C').show();jQADA('#submenugroup1B').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();});jQADA('#topnavDonate').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup1B').hide();//jQADA('#submenugroup2').toggle();jQADA('#submenugroup2').show();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#topnavRegister').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup4').hide();if((jQADA.trim(jQADA('#s4val').text()) === '26')||(jQADA.trim(jQADA('#s4val').text()) === '27')){if((jQADA.trim(jQADA('#isTRRegClose').text()) == "3") || (jQADA.trim(jQADA('#isTRRegClose').text()) == "4")){jQADA('#submenugroup3').hide(); alert('Online registration is now closed. Please register at the event. Online donations are still being accepted.');} else {if(getURLParameter('pg')!='national_company'){populateGatewayRegLink(getURLParameter('fr_id'));} else {jQADA('#submenugroup3').show();}}} else {//jQADA('#submenugroup3').toggle();jQADA('#submenugroup3').show();}});jQADA('#topnavLogin').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();if(isSecure != 1){//bring to stand alone login pagewindow.location='https://donations.diabetes.org/site/SPageServer?pagename=TC_tourcenter';} else {//jQADA('#submenugroup4').toggle();jQADA('#submenugroup4').show();}});jQADA('#ADAMobileMenu').click(function(){jQADA('#ADATopNavMobile').toggle();});jQADA('#ADAMobileSubMenu1A').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1B').removeClass('active');jQADA('#ADAMobileSubMenu1C').removeClass('active');if(jQADA('#ADAMobileSubMenu1A').hasClass('active')){jQADA('#ADAMobileSubMenu1A').removeClass('active');} else {jQADA('#ADAMobileSubMenu1A').addClass('active');}jQADA('#submenugroup1AMobile').toggle();jQADA('#submenugroup1CMobile').hide();jQADA('#submenugroup1BMobile').hide();jQADA('#submenugroup2Mobile').hide();jQADA('#submenugroup3Mobile').hide();jQADA('#submenugroup4Mobile').hide();});jQADA('#ADAMobileSubMenu1B').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1A').removeClass('active');jQADA('#ADAMobileSubMenu1C').removeClass('active');if(jQADA('#ADAMobileSubMenu1B').hasClass('active')){jQADA('#ADAMobileSubMenu1B').removeClass('active');} else {jQADA('#ADAMobileSubMenu1B').addClass('active');}jQADA('#submenugroup1AMobile').hide();jQADA('#submenugroup1CMobile').hide();jQADA('#submenugroup1BMobile').toggle();jQADA('#submenugroup2Mobile').hide();jQADA('#submenugroup3Mobile').hide();jQADA('#submenugroup4Mobile').hide();});jQADA('#ADAMobileSubMenu1C').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1B').removeClass('active');jQADA('#ADAMobileSubMenu1A').removeClass('active');if(jQADA('#ADAMobileSubMenu1C').hasClass('active')){jQADA('#ADAMobileSubMenu1C').removeClass('active');} else {jQADA('#ADAMobileSubMenu1C').addClass('active');}jQADA('#submenugroup1AMobile').hide();jQADA('#submenugroup1CMobile').toggle();jQADA('#submenugroup1BMobile').hide();jQADA('#submenugroup2Mobile').hide();jQADA('#submenugroup3Mobile').hide();jQADA('#submenugroup4Mobile').hide();});jQADA('#topnavDonateMobile').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1A').removeClass('active');jQADA('#ADAMobileSubMenu1B').removeClass('active');jQADA('#ADAMobileSubMenu1C').removeClass('active');jQADA('#submenugroup1AMobile').hide();jQADA('#submenugroup1BMobile').hide();jQADA('#submenugroup1CMobile').hide();jQADA('#submenugroup2Mobile').toggle();jQADA('#submenugroup3Mobile').hide();jQADA('#submenugroup4Mobile').hide();});jQADA('#topnavRegisterMobile').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1A').removeClass('active');jQADA('#ADAMobileSubMenu1B').removeClass('active');jQADA('#ADAMobileSubMenu1C').removeClass('active');jQADA('#submenugroup1AMobile').hide();jQADA('#submenugroup1BMobile').hide();jQADA('#submenugroup1CMobile').hide();jQADA('#submenugroup2Mobile').hide();jQADA('#submenugroup4Mobile').hide();if((jQADA.trim(jQADA('#s4val').text()) === '26')||(jQADA.trim(jQADA('#s4val').text()) === '27')){if((jQADA.trim(jQADA('#isTRRegClose').text()) == "3") || (jQADA.trim(jQADA('#isTRRegClose').text()) == "4")){jQADA('#submenugroup3Mobile').hide(); alert('Online registration is now closed. Please register at the event. Online donations are still being accepted.');} else {if(getURLParameter('pg')!='national_company'){populateGatewayRegLink(getURLParameter('fr_id'));} else {jQADA('#submenugroup3Mobile').toggle();}}} else {jQADA('#submenugroup3Mobile').toggle();}});jQADA('#topnavLoginMobile').click(function(){jQADA('.dropdown').removeClass('active');jQADA('#ADAMobileSubMenu1A').removeClass('active');jQADA('#ADAMobileSubMenu1B').removeClass('active');jQADA('#ADAMobileSubMenu1C').removeClass('active');jQADA('#submenugroup1AMobile').hide();jQADA('#submenugroup1BMobile').hide();jQADA('#submenugroup1CMobile').hide();jQADA('#submenugroup2Mobile').hide();jQADA('#submenugroup3Mobile').hide();if(isSecure !=1){window.location='https://donations.diabetes.org/site/SPageServer?pagename=TC_tourcenter';} else {jQADA('#submenugroup4Mobile').toggle();}});//hover statesvar timeout1A, timeout1B, timeout1C, timeout2, timeout3, timeout4;jQADA('#submenu1A').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenu1A').addClass('active');jQADA('#submenugroup1A').show();timeout1A = setTimeout(function(){ jQADA('#submenugroup1A').hide(); jQADA('#submenu1A').removeClass('active');}, 3000);jQADA('#submenugroup1C').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenugroup1A').on('mouseover', function(){jQADA('#submenugroup1A').show();clearTimeout(timeout1A);});jQADA('#submenugroup1A').on('mouseout', function(){jQADA('#submenugroup1A').hide();jQADA('#submenu1A').removeClass('active');});jQADA('#submenu1B').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1B').addClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenugroup1B').show();timeout1B = setTimeout(function(){ jQADA('#submenugroup1B').hide();jQADA('#submenu1B').removeClass('active');}, 3000);jQADA('#submenugroup1C').hide();jQADA('#submenugroup1A').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenugroup1B').on('mouseover', function(){jQADA('#submenugroup1B').show();clearTimeout(timeout1B);});jQADA('#submenugroup1B').on('mouseout', function(){jQADA('#submenugroup1B').hide();jQADA('#submenu1B').removeClass('active');});jQADA('#submenu1C').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1C').addClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenugroup1C').show();timeout1C = setTimeout(function(){ jQADA('#submenugroup1C').hide();jQADA('#submenu1C').removeClass('active');}, 3000);jQADA('#submenugroup1B').hide();jQADA('#submenugroup1A').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenugroup1C').on('mouseover', function(){jQADA('#submenugroup1C').show();clearTimeout(timeout1C);});jQADA('#submenugroup1C').on('mouseout', function(){jQADA('#submenugroup1C').hide();jQADA('#submenu1C').removeClass('active');});jQADA('#topnavDonate').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup2').show();timeout2 = setTimeout(function(){ jQADA('#submenugroup2').hide();}, 3000);jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide();});jQADA('#submenugroup2').on('mouseover', function(){jQADA('#submenugroup2').show();clearTimeout(timeout2);});jQADA('#submenugroup2').on('mouseout', function(){jQADA('#submenugroup2').hide();});jQADA('#topnavRegister').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup4').hide();jQADA('#submenugroup3').show();/*timeout3 = setTimeout(function(){ jQADA('#submenugroup3').hide();}, 3000);*/});jQADA('#submenugroup3').on('mouseover', function(){jQADA('#submenugroup3').show();//clearTimeout(timeout3);});jQADA('#submenugroup3').on('mouseout', function(){//jQADA('#submenugroup3').hide();setTimeout(function(){ jQADA('#submenugroup3').hide();}, 10000);});jQADA('#topnavLogin').on('mouseover', function(){jQADA('.dropdown').removeClass('active');jQADA('#submenu1A').removeClass('active');jQADA('#submenu1B').removeClass('active');jQADA('#submenu1C').removeClass('active');jQADA('#submenugroup1A').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();if(isSecure != 1){//bring to stand alone login page//window.location='https://donations.diabetes.org/site/SPageServer?pagename=TC_tourcenter';} else {//jQADA('#submenugroup4').toggle();jQADA('#submenugroup4').show();}/*timeout4 = setTimeout(function(){ jQADA('#submenugroup4').hide();}, 3000);*/});jQADA('#submenugroup4').on('mouseover', function(){jQADA('#submenugroup4').show();//clearTimeout(timeout4);});jQADA('#submenugroup4').on('mouseout', function(){jQADA('#submenugroup4').hide();});}function getURLParameter(name) { return decodeURI( (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1] );}function pfindDonation(searchPfind,isGlobal,fromWhere){if(isGlobal != 0){switch(searchPfind){case 'person':if(fromWhere==='mid'){var pfindfname = jQADA('#searchFirstNameHomepage').val();var pfindlname = jQADA('#searchLastNameHomepage').val();} else {var pfindfname = jQADA('#searchFirstName').val();var pfindlname = jQADA('#searchLastName').val();}window.location = '../site/TR?fr_id=10970&pg=pfind&searchFirstName='+pfindfname+'&searchLastName='+pfindlname+'&fr_search_type=participant&fr_find_search=Search&submit=true';break;case 'team':if(fromWhere==='mid'){var pfindtname = jQADA('#searchTeamHomepage').val();} else {var pfindtname = jQADA('#searchTeam').val();}window.location = '../site/TR?fr_id=10970&pg=pfind&searchTeam='+pfindtname+'&fr_search_type=team&fr_find_search=Search&submit=true';break;}} else {var sessionStoredTRID = jQADA('#s80TRIDval').text();if(sessionStoredTRID != "null"){switch(searchPfind){case 'person':if(fromWhere==='mid'){var pfindfname = jQADA('#searchFirstNameHomepage').val();var pfindlname = jQADA('#searchLastNameHomepage').val();} else {var pfindfname = jQADA('#searchFirstName').val();var pfindlname = jQADA('#searchLastName').val();}window.location = '../site/TR?fr_id='+sessionStoredTRID+'&pg=pfind&searchFirstName='+pfindfname+'&searchLastName='+pfindlname+'&fr_search_type=participant&fr_find_search=Search&submit=true';break;case 'team':if(fromWhere==='mid'){var pfindtname = jQADA('#searchTeamHomepage').val();} else {var pfindtname = jQADA('#searchTeam').val();}window.location = '../site/TR?fr_id='+sessionStoredTRID+'&pg=pfind&searchTeam='+pfindtname+'&fr_search_type=team&fr_find_search=Search&submit=true';break;}} else {switch(searchPfind){case 'person':var pfindfname = jQADA('#searchFirstName').val();var pfindlname = jQADA('#searchLastName').val();window.location = '../site/TR?fr_id='+getURLParameter("fr_id")+'&pg=pfind&searchFirstName='+pfindfname+'&searchLastName='+pfindlname+'&fr_search_type=participant&fr_find_search=Search&submit=true';break;case 'team':var pfindtname = jQADA('#searchTeam').val();window.location = '../site/TR?fr_id='+getURLParameter("fr_id")+'&pg=pfind&searchTeam='+pfindtname+'&fr_search_type=team&fr_find_search=Search&submit=true';break;}}}}function getCompanies(){luminateExtend.api.request({ api: 'CRTeamraiserAPI', callback: getCompaniesCB, data: 'method=getCompaniesByInfo&fr_id='+getURLParameter('fr_id')+'&list_page_size=1000&list_sort_column=total&list_ascending=false',//data: 'method=getCompaniesByInfo&fr_id=12950&list_page_size=1000&list_sort_column=total&list_ascending=false', requestType: 'POST', useHTTPS: true });}function getCompaniesCB(data){//console.log(data);if(data.getCompaniesResponse){var allcompanies = luminateExtend.utils.ensureArray(data.getCompaniesResponse.company);var listContent='

Umbrella Teams

';var counter=1;jQADA.each(allcompanies, function(){/*luminateExtend.api.request({ api: 'CRTeamraiserAPI', callback: getTopUmbrellaTeamCB, //data: 'method=getCompaniesByInfo&fr_id='+getURLParameter('fr_id'), data: 'method=getCompanyTeams&fr_id='+getURLParameter('fr_id')+'&company_id='+this.companyId, requestType: 'POST',requiresAuth: true, useHTTPS: true });*/if(counter < 6){var amtRaised = this.amountRaised;if(amtRaised != '0'){amtRaised = amtRaised.slice(0,-2);}listContent += '

'+this.companyName+'

$'+numberWithCommas(amtRaised)+'

';}counter++;});jQADA('#umbrellateam').html(listContent);var counter4=1;jQADA('#umbrellateam').find('.indicator-list-row').each(function () {jQADA(this).prepend('

'+counter4+'

');counter4++;});}}function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");}function getTopUmbrellaTeamCB(data){console.log(data);//allUmbrellaTeamsListing}//perform login via AJAX requestfunction login(whatForm) { luminateExtend.api.request({ api: 'CRConsAPI', callback: loginCallback, data: 'method=login', form: whatForm, requestType: 'POST', useHTTPS: true });}//callback function after loginfunction loginCallback(data) { if (data.errorResponse) { alert("Invalid login"); } else if (data.loginResponse) { location.reload(); //window.location.href="https://donations.diabetes.org/site/SPageServer?pagename=TC_tourcenter"; }}function truncate(str, n){ return (str.length > n) ? str.substr(0, n-1) + '…' : str;};//getMyZipEventsfunction getMyZipEvents(fromWhere,selectedDistance) {var currLoc = getURLParameter('pagename');var isDevHomepage = getURLParameter('showHomepage');if((currLoc.toLowerCase().indexOf("tc_homepage")!= -1)||((currLoc.toLowerCase().indexOf("tc_dev_dh")!=-1)&&(isDevHomepage === "yes"))){ if(fromWhere === 'topnav'){if((isNaN(jQADA('#zipSearchValCTA').val())==true) || (!jQADA('#zipSearchValCTA').val())){alert("Please provide correct zipcode!");} else {console.log('location is homepage or DEV homepage with homepage mode from topnav');myZip = jQADA('#zipSearchValCTA').val();luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByDistanceCallback,data: 'method=getTeamraisersByDistance&starting_postal=' + jQADA('#zipSearchValCTA').val() + '&search_distance=' + selectedDistance + '&list_sort_column=distance&response_format=json&event_type=Tour%20de%20Cure'});} } else if(fromWhere === 'topnavmobile') { if((isNaN(jQADA('#zipSearchValCTAMobile').val())==true) || (!jQADA('#zipSearchValCTAMobile').val())){alert("Please provide correct zipcode!");} else {console.log('location is homepage or DEV homepage with homepage mode from topnavmobile');myZip = jQADA('#zipSearchValCTAMobile').val();luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByDistanceCallback,data: 'method=getTeamraisersByDistance&starting_postal=' + jQADA('#zipSearchValCTAMobile').val() + '&search_distance=' + selectedDistance + '&list_sort_column=distance&response_format=json&event_type=Tour%20de%20Cure'});} } else { if(fromWhere==='homepageauto'){ console.log('location is homepage or DEV homepage with homepage mode from zipval url parameter'); if(isNaN(zipval)==true){ alert("Invalid zipcode"); window.location = 'SPageServer?pagename=TC_homepage' //window.location = 'SPageServer?pagename=TC_DEV_DH&showHomepage=yes'; } else { luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByDistanceCallback,data: 'method=getTeamraisersByDistance&starting_postal=' + zipval + '&search_distance=' + selectedDistance + '&list_sort_column=distance&response_format=json&event_type=Tour%20de%20Cure'}); } } else {if((isNaN(jQADA('#zipSearchVal').val())==true) || (!jQADA('#zipSearchVal').val())){alert("Please provide correct zipcode!");} else {console.log('location is homepage or DEV homepage with homepage mode from homepage zipsearch');myZip = jQADA('#zipSearchVal').val();luminateExtend.api.request({api: 'teamraiser',callback: getTeamraisersByDistanceCallback,data: 'method=getTeamraisersByDistance&starting_postal=' + jQADA('#zipSearchVal').val() + '&search_distance=' + selectedDistance + '&list_sort_column=distance&response_format=json&event_type=Tour%20de%20Cure'});} } }} else {if(fromWhere === 'topnav'){if((isNaN(jQADA('#zipSearchValCTA').val())==true) || (!jQADA('#zipSearchValCTA').val())){alert("Please provide correct zipcode!");} else {console.log('search from outside homepage from topnav');window.location = 'SPageServer?pagename=TC_homepage&zipval='+jQADA('#zipSearchValCTA').val();//window.location = 'SPageServer?pagename=TC_DEV_DH&showHomepage=yes&zipval='+jQADA('#zipSearchValCTA').val();}} else {if((isNaN(jQADA('#zipSearchValCTAMobile').val())==true) || (!jQADA('#zipSearchValCTAMobile').val())){alert("Please provide correct zipcode!");} else {console.log('search from outside homepage from topnavmobile');window.location = 'SPageServer?pagename=TC_homepage&zipval='+jQADA('#zipSearchValCTAMobile').val();//window.location = 'SPageServer?pagename=TC_DEV_DH&showHomepage=yes&zipval='+jQADA('#zipSearchValCTAMobile').val();}}}} window.getTeamraisersByDistanceCallback = { error: function(data) { jQADA('#teamraiser-event-search-errors').remove(); jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html(''); jQADA('#teamraiser-event-search-results').prepend('

' + '

' + data.errorResponse.message + '

' + '

'); }, success: function(data) { jQADA('#teamraiser-event-search-errors').remove(); jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html(''); if (data.getTeamraisersResponse.totalNumberResults == 0) {jQADA('#teamraiser-event-search-results').prepend('

' + '

' + 'No nearby events found within 200 miles of following zipcode:'+myZip +'. Please try another search.' + '

' + '

'); } else {jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html('');jQADA('#teamraiser-event-selected-state').html(''); var teamraiserList = luminateExtend.utils.ensureArray(data.getTeamraisersResponse.teamraiser);//var countList = 1; jQADA.each(teamraiserList, function() {var evtDate = this.event_date;var edCutOffPos = evtDate.indexOf("T");var trDate=evtDate.split('T')[0];var trMonth=Number(trDate.split('-')[1])-1;var trMonthdgt = trMonth;var trDay=trDate.split('-')[2];if(trDay<10){trDay=trDay.replace('0','');}var trYear=trDate.split('-')[0];var dtToday = new Date();var evtDateVal = new Date();evtDateVal.setFullYear(trYear,trMonthdgt,trDay);//if(countList < 6){if(evtDateVal > dtToday){//switch(this.id){//default:jQADA('#teamraiser-event-search-results').append('

' + '

' + this.name + '
' + this.city + ', ' + this.state + ' on ' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

Register Explore

');//}//countList++;} else {//switch(this.id){//default:jQADA('#teamraiser-event-search-results').append('

' + '

' + this.name + '
' + this.city + ', ' + this.state + ' on ' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

Explore

');//}} }); }jQADA('#submenugroup1A').hide();jQADA('#submenugroup1B').hide();jQADA('#submenugroup1C').hide();jQADA('#submenugroup2').hide();jQADA('#submenugroup3').hide();jQADA('#submenugroup4').hide(); jQADA('#ADATopNavMobile').hide();jQADA('html, body').animate({scrollTop: jQADA('#findTourEvent').offset().top - 150}, 2000); }//success}function populateGatewayRegLink(whatFRID,whatTRName,whatTRDate){jQADA.magnificPopup.open({ items: { src: '#gatewayReg', type: 'inline' } });if((jQADA.trim(whatTRName)!="")||(jQADA.trim(whatTRDate)!="")){jQADA('#evtDetailInfo').html('

'+whatTRName+'
'+whatTRDate+'

');}else{jQADA('#evtDetailInfo').html('');}jQADA('#createTRTeam').click(function(){window.location = 'TRR?fr_tm_opt=new&pg=tfind&fr_id='+whatFRID;});jQADA('#joinTRTeam').click(function(){window.location = 'TRR?pg=tfind&fr_id='+whatFRID;});jQADA('#registerTRInd').click(function(){window.location = 'TRR?fr_tm_opt=none&pg=tfind&fr_id='+whatFRID;});jQADA('#registerTRVWalker').click(function(){window.location = 'TRR?fr_tm_opt=none&pg=tfind&fr_id='+whatFRID+'&vwalk=y';});}function renderThermo(){var goal = jQADA('#goalamount').text();if (goal != "$0.00") {var goalInt = formatDollarAmout(goal);} else {var goalInt = 0;}var raised = jQADA('#amountraised').text();if (raised != "$0.00") {var raisedInt = formatDollarAmout(raised);} else {var raisedInt = 0;}// set raised below to debug//raised = 50000;if (goalInt==0 || raisedInt==0) {var progress = 0;} else if (raisedInt >= goalInt) {var progress = -1;var actualpctprogress = Math.ceil((raisedInt/goalInt)*100);} else {var progress = Math.ceil((raisedInt/goalInt)*100);}if (progress == -1) { // goal surpassedif(jQADA('#pctprogress').length){jQADA('#pctprogress').text(actualpctprogress);}// animate thermometer filljQADA('#actualProgress').animate({width: '100%'}, 3500);} else { // goal not metvar progress_pct = progress+"%";// animate thermometer filljQADA('#actualProgress').animate({width: progress_pct}, 3500);if(jQADA('#pctprogress').length){jQADA('#pctprogress').text(progress);}}//Thermo PC2 toggle handler on personalif((getURLParameter('page_type') === 'fr_personal') || (getURLParameter('pg') === 'personal') || (getURLParameter('pg') === 'team') ||(getURLParameter('page_type') === 'fr_team_page')){if (jQADA('#frStatus1').length){ jQADA('#progressBox').show();}else{ jQADA('#progressBox').hide();}//fundraising honor rollif (jQADA('#frStatus2').length){ jQADA('#scrollListBox').show();var isEmptyAmtFHRraw = jQADA('#frStatus2').find('.team-honor-list-value').eq(0).text();var isEmptyAmtFHR = isEmptyAmtFHRraw.replace(/\s+/g, '');if( isEmptyAmtFHR === '' ){jQADA('#adacustomfhrbox .team-honor-list-value').hide();} }else{ jQADA('#scrollListBox').hide();}}}function formatDollarAmout(a) {var parsed = a.split("$");var amount = Math.floor(parsed[1].replace(/\,/g,'')); return parseInt(amount);}function renderTopFundraisersAndTeam(){var nextContainer = 0;var isData = 0;jQADA('#hidden-teamlists .indicator-list-row').each(function(){var topcatstring = jQADA(this).find('div.list-type-container').text();if(topcatstring.indexOf("Family/Friend") != -1){nextContainer = 1;isData = 0;} else if(topcatstring.indexOf("Corporate") != -1){nextContainer = 2;isData = 0;} else {isData = 1;}if(nextContainer===1){if(isData === 1){jQADA('#famfriend').append(jQADA(this));}}if(nextContainer===2){if(isData === 1){jQADA('#corpteam').append(jQADA(this));}} });var counter1=1;jQADA('#individualscontent').find('.indicator-list-row').each(function () {jQADA(this).prepend('

'+counter1+'

');counter1++;}); var counter2=1;jQADA('#famfriend').find('.indicator-list-row').each(function () {jQADA(this).prepend('

'+counter2+'

');counter2++;}); var counter3=1;jQADA('#corpteam').find('.indicator-list-row').each(function () {jQADA(this).prepend('

'+counter3+'

');counter3++;}); }function RegHandler(){jQADA('.campaign-banner-container').hide();jQADA('#title_container').show();jQADA('#title_container').css('color','#FFF');jQADA('label').css('max-width','700px');//var shirt_price='100';if(getURLParameter('pg') === 'utype'){jQADA('#user_type_login_container').insertBefore(jQADA('#user_type_new_participant_registration_container'));jQADA('#fr_responsive_register_new_participant_container').text('Register');}if(jQADA('#pg').val() === 'paymentForm'){jQADA('#responsive_payment_typecc_cvv_row').append('

**Please check all fields carefully and make sure they match your card to avoid a decline due to inaccuracies.

');}if(getURLParameter('pg') === 'ptype'){if(getURLParameter('vwalk') === 'y'){var radlength = parseInt(jQADA('input[name="fr_part_radio"]').length);var vwalkradloc = radlength-1;fr_part_radio_select(vwalkradloc);}//var shirt_area='

$'+shirt_price+'


American Diabetes Association's Tour de Cure (16)

Earn an Official Walk T-shirt!

$250


American Diabetes Association's Tour de Cure (17)

Earn Other Step Out Gear!

$1,000


American Diabetes Association's Tour de Cure (18)

Become a Champion to Stop Diabetes and receive exciting perks and gifts!

';//jQADA(shirt_area).insertAfter('div#part_type_fundraising_goal_input_container.input-container');//jQADA('span.donation-level-name:contains("$1000")').parent().attr('id', 'champ-level');//jQADA('American Diabetes Association's Tour de Cure (19)').insertAfter('#champ-level');jQADA('div#part_type_additional_gift_section_header').html('Jumpstart your fundraising by making a donation. Not only will it count towards your goal, but it will be easier to ask for a gift when you\'ve made one yourself - plus you\'ll earn a badge for your personal page!');jQADA('div.part-type-container img').nextAll('.part-type-decoration-messages').addClass('badge-inline');jQADA('div#part_type_selection_container > div.manageable-content').html('

* Choose your registration category

');jQADA('

I\'d like to raise the following amount to help Stop Diabetes!

').insertBefore('div#part_type_fundraising_goal_input_container.input-container > div.manageable-content > label#fund_goal_container');jQADA('

You can make an impact right away with your own donation to Stop Diabetes!

').insertBefore('div#part_type_additional_gift_section_header');jQADA('

My goal:

').insertBefore('#fr_goal');jQADA('.donation-level-name').css('font-size','1em');var mydfcampaignid = "";jQADA('#head-fr-goal').text('Aim high when you set your fundraising goal!');if(mydfcampaignid==='8762'){jQADA('

Most participants go above and beyond the minimum to qualify for our unique recognition gifts. Recognition Gifts are cumulative, and will be received once the fundraising milestones below are met.


American Diabetes Association's Tour de Cure (20)

Raise $130 ($30 for Youth 17 years of age and under)
"Challenge Accepted" kit featuring performance shirt. If registered as a red rider you will also receive Red Rider Jersey

American Diabetes Association's Tour de Cure (21)

Raise $500
30th Anniversary Signature Jersey and Finishers Medal

Raise $1000
Exclusive Champions Celebrations Box full of premium gifts

Raise $5000
Invitation Only Virtual Champions Coffee with Tracey Brown, CEO and Dr. Robert Gabbay, Chief Science and Medical Officer and VIP Gift Box


').insertAfter(jQADA('#head-fr-goal'));}jQADA('#head-self-don').text('Make an impact today!');jQADA('#suggested_goal_container').hide();//jQADA('

$340 Fundraising minimum to participate on event day

').insertAfter(jQADA('#fund_goal_container'));jQADA('input[type=text]').prop('style','width:200px !important;');AddGiftRegHandler();}if(getURLParameter('pg') === 'waiver'){jQADA('div.registration-page-container div.section-header').html('Waiver');jQADA('span#agree_container').addClass('bold');}if(getURLParameter('pg') === 'regsummary'){jQADA('div.registration-page-container div.section-header').html('Registration Summary');jQADA('#ut_title_container').html('Review and Complete Registration');jQADA('a.detail-show-link.detail-toggle-link img').attr('src', '../ws/so/so2014/img/arrow-right.png');}if(jQADA('#pg').val() === 'paymentForm'){jQADA('#reg_billing_info_block').insertBefore('#reg_payment_info_block');}if(jQADA('#pg').val() === 'reg'){jQADA('div#additional_questions_container.sub-section-body > div.survey-question-container.field-required > div.form-content > span.input-container > label > span.input-label:contains("Your T-shirt size")').addClass('cstm-shirt-txt');//jQADA('.cstm-shirt-txt').text('Your T-shirt size (You will receive a commemorative Step Out T-shirt when you achieve the fundraising minimum of $'+shirt_price+'!):');jQADA('span#password_hdr_container').html('Choose Your Fundraising Center Log In Information');//jQADA('li.input-container > input').attr('type', 'checkbox');jQADA('.survey-question-container:last').hide();checkMYGDPR();jQADA('#cons_country').on('change', function(){checkMYGDPR();}); }if(getURLParameter('pg') === 'rthanks'){var rthanks_total=jQADA('#total_amt').text();var rthanks_market=jQADA('#fair_market_amt').text();var rthanks_deductible=jQADA('#tax_deductible_amt').text();// build urlvar rthanksbase_url=jQADA('a#part_ctr_container').attr("href");var rthanksbaseURLChecker = setInterval(function () { if((rthanksbase_url != "")&&(typeof rthanksbase_url != "undefined")){if((rthanks_total != "")&&(typeof rthanks_total != "undefined")){rthanksurl=rthanksbase_url+"&typop=y&totalamt="+rthanks_total+"&mrkt="+rthanks_market+"&dedct="+rthanks_deductible;}else {rthanksurl=rthanksbase_url;}if(jQADA.trim(jQADA('#regIsTC').text()).toLowerCase() === 'true'){if(jQADA.trim(jQADA('#regTCLMSGroup').text()).toLowerCase() != 'false'){window.location = rthanksurl;}else{luminateExtend.api.request({api: 'survey',callback: VMSSurveyCallback,data: 'method=submitSurvey&survey_id=30161',requestType: 'POST',requiresAuth:true});}} else {window.location = rthanksurl;}clearInterval(rthanksbaseURLChecker);} }, 1e3);}}window.VMSSurveyCallback = { error: function(data) {}, success: function(data) { window.location = rthanksurl; }};function AddGiftRegHandler(){//Look for checked radio button to create pre-selected button on pageload//jQADA('div.donation-level-row-container input[checked="checked"]').closest('.donation-level-row-container').find('.donation-level-row-decoration-container').addClass('active');//Add active class to selected donation level (button)jQADA('.donation-level-row-decoration-container').click(function() { jQADA('div.donation-level-row-decoration-container').removeClass('active'); jQADA(this).addClass('active'); });//Add active class to corresponding 'Other' button on input focusjQADA('.input-container input[type="text"]').focus(function(){ jQADA('div.active').removeClass('active'); })//make last one width autojQADA('.donation-level-row-decoration-container:last').css({'width':'auto'});}function checkMYGDPR() { if (jQADA('#pg').val()==='reg'){var myGDPRCountry = jQADA('#cons_country').val();} myGDPRCountry = myGDPRCountry.toLowerCase(); switch (myGDPRCountry) { case "austria": case "belgium": case "bulgaria": case "croatia": case "cyprus": case "czech republic": case "denmark": case "estonia": case "finland": case "france": case "germany": case "greece": case "hungary": case "ireland": case "italy": case "latvia": case "lithuania": case "luxembourg": case "malta": case "netherlands": case "poland": case "portugal": case "romania": case "slovakia": case "slovenia": case "spain": case "sweden": case "united kingdom": if (jQADA('#pg').val()==='reg'){jQADA('#next_step').hide();jQADA('#fr_email_opt_in').prop('checked',false);jQADA('#cons_email_opt_in').prop('checked',false);jQADA('#s_rememberMe').prop('checked',false);jQADA('.survey-question-container:last').show();jQADA('.survey-question-container:last').find('select').on('change',function(){if(jQADA(this).val()==='True'){jQADA('#next_step').show();} else {jQADA('#next_step').hide();}})}break;default:if (jQADA('#pg').val()==='reg'){var myGDPRresponse =jQADA('.survey-question-container:last').find('select');myGDPRresponse.val('NOREPLY');jQADA('.survey-question-container:last').hide();jQADA('#next_step').show();jQADA('#fr_email_opt_in').prop('checked',true);jQADA('#cons_email_opt_in').prop('checked',true);jQADA('#s_rememberMe').prop('checked',true);} }}function customizeTeamRoster(){jQADA('#teamRosterBox .team-roster-participant-name a').each(function(){jQADA(this).attr('class','participantLink');jQADA(this).parent().prepend(this); });jQADA('#teamRosterBox .team-roster-star').attr('src','../ws/so/so2013/img/milestone-badges/team_captain.png');jQADA('#teamRosterBox .team-roster-participant-name img').each(function(){ var imgsrc = jQADA(this).attr('src'); var imgalt = jQADA(this).attr('alt'); if (imgalt === 'Team Captain') {imgsrc = '../ws/so/so2013/img/milestone-badges/team_captain.png'; imgalt = 'Team Captain'; } if (imgalt === 'Stop Diabetes'){ imgsrc = '../ws/so/so2013/img/milestone-badges/self_donor.png'; imgalt = 'Made a Personal Donation'; } if (imgalt === 'Hang the Banner'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_350.png'; imgalt = '$350: Hang the Banner'; } if (imgalt === 'Fast Walker'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_200.png'; imgalt = '$200: Fast Walker'; } if (imgalt === 'Shining Bright'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_600.png'; imgalt = '$600: Shining Bright'; } if (imgalt === 'Champion to Stop Diabetes'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_1000.png'; imgalt = '$1,000: Champion to Stop Diabetes'; } if (imgalt === 'Stacking Up'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_2000.png'; imgalt = '$2,000: Stacking Up'; } if (imgalt === 'Leading the Pack'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_3000.png'; imgalt = '$3,000: Leading the Pack'; } if (imgalt === 'Star'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_5000.png'; imgalt = '$5,000: You\'re a Star'; } if (imgalt === 'Trophy Worthy'){ imgsrc = '../ws/so/so2013/img/milestone-badges/level_10000.png'; imgalt = '$10,000: Trophy Worthy'; } jQADA(this).attr('src',imgsrc); jQADA(this).attr('alt',imgalt); });jQADA('#teamRosterBox .team-roster-participant-name').each(function(){var whatLink = jQADA(this).find('a').attr('href');//console.log(whatLink);if(typeof whatLink != "undefined"){whatPX = getStringURLParameter('px',whatLink);var whatDFID = jQADA.trim(jQADA('#whatDFID').text());console.log('whatDFID is '+whatDFID);//console.log("px is "+whatPX);var hrefval = 'https://donations.diabetes.org/site/Donation2?df_id='+whatDFID+'&PROXY_ID='+whatPX+'&PROXY_TYPE=20&FR_ID='+getURLParameter("fr_id");console.log(hrefval);jQADA(this).next().append('Donate');}});jQADA('

To make a general donation to the team that will not count toward any individual participant, click here.

').insertAfter('#teamRosterBox');}function getStringURLParameter(searchTerm,searchString){return decodeURI( (RegExp(searchTerm + '=' + '(.+?)(&|$)').exec(searchString) || [, null])[1] );}function findEvtResponse(whatSelID){console.log(whatSelID);var whatSelEvt = jQADA(whatSelID).val();console.log(whatSelEvt);if (whatSelEvt != ""){window.location.href='../site/TR?pg=entry&fr_id='+whatSelEvt;}}function getMyRegisteredEvents(){var myCIDvalue = jQADA.trim(jQADA('#myCIDval').text());luminateExtend.api.request({api: 'teamraiser', callback: getMyRegisteredTR, data: 'method=getRegisteredTeamraisers&cons_id='+myCIDvalue+'&response_format=json&event_type=Tour%20de%20Cure'}); }window.getMyRegisteredTR = { error: function(data) { jQADA('#teamraiser-registered-event-errors').remove(); jQADA('#teamraiser-registered-event-results').html('');jQADA('#loadingRegisteredEvt').hide(); /*jQADA('.teamraiser-registered-event-form').prepend('

' + '

' + data.errorResponse.message + '

' + '

');*/jQADA('.teamraiser-registered-event-form').prepend('

' + '

' + '

You may have not currently registered in any current event yet. Register to a nearby event near you.

' + '

' + '

'); }, success: function(data) { jQADA('#teamraiser-registered-event-errors').remove(); jQADA('#teamraiser-registered-event-results').html(''); jQADA('#loadingRegisteredEvt').hide(); if(data.getRegisteredTeamraisersResponse.totalNumberResults == 0) { jQADA('.teamraiser-registered-event-form').prepend('

' + '

' + '

You may have not currently registered in any current event yet. Register to a nearvy event near you.

' + '

' + '

'); } else { jQADA('#teamraiser-registered-event-results').html(''); var teamraiserList = luminateExtend.utils.ensureArray(data.getRegisteredTeamraisersResponse.teamraiser); var activeEvtCount = 0; jQADA.each(teamraiserList, function() {if((this.status === '1')||(this.status === '2')||(this.status === '3')){ jQADA('#teamraiser-registered-event-results .well').append('

' + '

' + this.name + '

Visit Your Center »

' + this.city + ', ' + this.state + '
'+ luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

');activeEvtCount++;} }); if(activeEvtCount == 0){ jQADA('.teamraiser-registered-event-form').prepend('

' + '

' + 'You have not registered in any current event yet.' + '

' + '

'); } else if (activeEvtCount == 1){ jQADA('#teamraiser-registered-event-results .well').hide(); jQADA('#teamraiser-registered-event-results').append('

Redirecting you to your Participant Center. Please wait...

'); window.location.href= jQADA('#VYC0').attr('href'); } else { jQADA('#teamraiser-registered-event-results').prepend('

You are currently registered for the following event(s):

'); } } }}function getAllEvents(){luminateExtend.api.request({ api: 'teamraiser', callback: getAllTeamraisersCallback, data: 'method=getTeamraisersByInfo&response_format=json&event_type=Tour%20de%20Cure&country=United%20States&list_page_size=1000&list_page_offset=0&list_sort_column=event_date&list_ascending=false' });}window.getAllTeamraisersCallback = { error: function(data) { jQADA('#results-event-search-errors').remove(); jQADA('#results-event-search-results').html(''); jQADA('.results-event-search-form').prepend('

' + '

' + data.errorResponse.message + '

' + '

'); }, success: function(data) { jQADA('#results-event-search-errors').remove(); jQADA('#results-event-search-results').html(''); if (data.getTeamraisersResponse.totalNumberResults == 0) {jQADA('.results-all-event-search-form').prepend('

' + '

' + 'No events found.' + '

' + '

'); } else { jQADA('#results-all-event-search-results').html(''); var teamraiserList = luminateExtend.utils.ensureArray(data.getTeamraisersResponse.teamraiser);var activeEvtArray = new Array(); jQADA.each(teamraiserList, function() {var evtDate = this.event_date;var edCutOffPos = evtDate.indexOf("T");var trDate=evtDate.split('T')[0];var trMonth=Number(trDate.split('-')[1])-1;var trMonthdgt = trMonth;var trDay=trDate.split('-')[2];if(trDay<10){trDay=trDay.replace('0','');}var trYear=trDate.split('-')[0];var dtToday = new Date();var evtDateVal = new Date();evtDateVal.setFullYear(trYear,trMonthdgt,trDay);if(evtDateVal > dtToday){//switch(this.id){//default:activeEvtArray.push('

' + '

' + this.name + '

' + this.city + ', ' + this.state + '
' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

Register

' + '

');//}} else {//switch(this.id){//default:jQADA('#results-all-event-search-results .well').append('

' + '

' + this.name + '

' + this.city + ', ' + this.state + '
' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

View Detail

' + '

');//} }});//paste back that array for custom orderfor(var i=0; i

Upcoming Events

').insertBefore(jQADA('div.evtisactive:first'));jQADA('

Past Events

').insertAfter(jQADA('div.evtisactive:last')); } }}window.getTeamraisersByStateCallback = { error: function(data) { firstLoad = 0; jQADA('#teamraiser-event-search-errors').remove(); jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html(''); jQADA('#teamraiser-event-search-results').prepend('

' + '

' + data.errorResponse.message + '

' + '

'); }, success: function(data) { firstLoad = 0; jQADA('#teamraiser-event-search-errors').remove(); jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html(''); if (data.getTeamraisersResponse.totalNumberResults == 0) { /*jQADA('#teamraiser-event-search-results').prepend('

' + '

' + 'No nearby events found. Please try another search.' + '

' + '

');*/jQADA('#teamraiser-event-search-results').append('

2023 Tour de Cure: Nationwide (Virtual)
September 23, 2023

Register Explore

');if((stateval != "null")||(statefromtopnav===1)){jQADA('html, body').animate({scrollTop: jQADA('#findTourEvent').offset().top - 150}, 1000);} } else {jQADA('#teamraiser-event-search-results').html('');jQADA('#teamraiser-event-selected-state').html(''); var teamraiserList = luminateExtend.utils.ensureArray(data.getTeamraisersResponse.teamraiser);//var countList = 1;var teamraiserListSort = _.sortBy(teamraiserList,"event_date"); jQADA.each(teamraiserListSort, function() {var evtDate = this.event_date;var edCutOffPos = evtDate.indexOf("T");var trDate=evtDate.split('T')[0];var trMonth=Number(trDate.split('-')[1])-1;var trMonthdgt = trMonth;var trDay=trDate.split('-')[2];if(trDay<10){trDay=trDay.replace('0','');}var trYear=trDate.split('-')[0];var dtToday = new Date();var evtDateVal = new Date();evtDateVal.setFullYear(trYear,trMonthdgt,trDay);//if(countList < 6){if(evtDateVal > dtToday){//switch(this.id){//default:jQADA('#teamraiser-event-search-results').append('

' + '

' + this.name + '
' + this.city + ', ' + this.state + ' on ' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

Register Explore

');//}//countList++;} else {//switch(this.id){//default:jQADA('#teamraiser-event-search-results').append('

' + '

' + this.name + '
' + this.city + ', ' + this.state + ' on ' + luminateExtend.utils.simpleDateFormat(this.event_date, 'MMMM d, yyyy') + '

' + '

Explore

');//}} });//resort class name othersvar divevt = jQADA('#teamraiser-event-search-results div.teamraiser-event-search-row');var resortOthStateDiv = divevt.sort(function (a,b){return jQADA(a).prop('class') > jQADA(b).prop('class');});jQADA('#teamraiser-event-search-results').html(resortOthStateDiv);jQADA('#teamraiser-event-search-results').prepend('

Within your selected state:


');if((stateval != "null")||(statefromtopnav===1)){jQADA('html, body').animate({scrollTop: jQADA('#findTourEvent').offset().top - 150}, 1000);} } }//success}
American Diabetes Association's Tour de Cure (2024)

References

Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6117

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.