Country Dance & Song Society
Participate Photo by Ryan CarolloIn March 1915, in New York City, and then in Boston…

window.fbAsyncInit = function() { FB.init({ appId : '909317572483647', xfbml : true, version : 'v2.5' }); };
(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
//onLogin function onLogin(identity){
var url_string = window.location.href var url = new URL(url_string); var logout = url.searchParams.get("logout");
if( logout == 1 ){ //alert("Logout") SFIDWidget.logout() return false; }
//console.log(identity); showLoadMe(); jQuery.post( 'https://www.cdss.org/index.php?option=com_sflogin&task=login' , identity.custom_attributes).then( function( response ){
response = JSON.parse( response );
if( response.status ){
window.location.href = 'https://www.cdss.org/';
}else{ hideLoadMe(); if( response.error == 102 ){ alert("You are not allowed to login as your account is blocked by admin"); }
SFIDWidget.logout();
//alert( response.message ) } //console.log( response ); } )
}
//onLogout function onLogout(){ //clears the user’s Salesforce session and reloads the login button. SFIDWidget.init(); }
function showLoadMe(){ jQuery("#loadMe").modal({ backdrop: "static", //remove ability to close modal with click keyboard: false, //remove option to close with keyboard show: true //Display loader! }); }
function hideLoadMe(){ jQuery("#loadMe").modal("hide"); }