Ride Calendar

Philadelphia Weekend Weather
 
'; window.location.href = 'https://phillybikeclub.org/bcpdo/ride/?calendar=' + thecal + '&date=' + prvdate; }); if (sessionStorage.calheight){ jQuery('body').css('display','block'); if (jQuery(window).width() < 1025) jQuery(document).scrollTop((jQuery('#1').offset().top -45)); else jQuery(document).scrollTop(sessionStorage.calheight); sessionStorage.removeItem("calheight"); }; setTimeout(function(){ jQuery('body').css('display','block'); }, 2000); jQuery('.popup-with-form').magnificPopup({ type: 'inline', preloader: false, focus: '#rname', callbacks: { beforeOpen: function() { if(jQuery(window).width() < 700) { this.st.focus = false; } else { this.st.focus = '#rname'; } } } }); jQuery('#rsvp-form').on('submit', function(e){ e.preventDefault(); var name = jQuery('#rname').val(); var email = jQuery('#remail').val(); if(name && email){ jQuery.get("index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=34&user[name]=" + name + "&user[email]=" + email + " "); jQuery.magnificPopup.open({ removalDelay:200, items:{ src: '

RSVP successful. Thank You!

', type: 'inline' }, }); } }); jQuery('.popup-with-join').on('click',function(e){ e.preventDefault(); jQuery('#list-title').html(jQuery(this).data('name')); jQuery('#join').data('list', jQuery(this).attr('id')); jQuery('#list-desc').html(jQuery(this).attr('title')); jQuery.magnificPopup.open({ items: { src: '#join' }, type: 'inline', preloader: false, focus: '#jname', callbacks: { beforeOpen: function() { if(jQuery(window).width() < 700) { this.st.focus = false; } else { this.st.focus = '#jname'; } } } },0); }); jQuery('#jsub').on('click', function(e){ e.preventDefault(); var list = jQuery('#join').data("list"); var name = jQuery('#jname').val(); var email = jQuery('#jemail').val(); if(name && email){ jQuery.get("index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=" + list + "&user[name]=" + name + "&user[email]=" + email + " "); jQuery.magnificPopup.open({ removalDelay:200, items:{ src: '

Successfully joined email list. Thank You!

', type: 'inline' }, }); } }); jQuery('#junsub').on('click', function(e){ e.preventDefault(); var list = jQuery('#join').data("list"); var email = jQuery('#jemail').val(); if(email){ jQuery.get("index.php?option=com_acymailing&ctrl=sub&task=optout&hiddenlists=" + list + "&user[email]=" + email + " "); jQuery.magnificPopup.open({ removalDelay:200, items:{ src: '

Successfully removed from email list.

', type: 'inline' }, }); } }); });