SERVER DATA: Array ( [SERVER_SOFTWARE] => Apache [REQUEST_URI] => /events-actions/?manage [PATH] => /bin:/usr/bin:/sbin:/usr/sbin [RAILS_ENV] => production [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [QUERY_STRING] => manage [REQUEST_METHOD] => GET [SERVER_PROTOCOL] => HTTP/1.0 [GATEWAY_INTERFACE] => CGI/1.1 [REDIRECT_URL] => /events-actions/ [REDIRECT_QUERY_STRING] => manage [REMOTE_PORT] => 38710 [SCRIPT_FILENAME] => /home/lacaaw/denimday/index.php [SERVER_ADMIN] => webmaster@denimdayinfo.org [DOCUMENT_ROOT] => /home/lacaaw/denimday [REMOTE_ADDR] => 54.226.113.250 [SERVER_PORT] => 80 [SERVER_ADDR] => 208.113.211.118 [SERVER_NAME] => denimdayinfo.org [SERVER_SIGNATURE] => [HTTP_IF_MODIFIED_SINCE] => Sun, 22 Oct 2017 22:50:03 GMT [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/) [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate [HTTP_HOST] => denimdayinfo.org [DH_USER] => lacaaw [ds_id_29050994] => [dsid] => 29050994 [SCRIPT_URI] => http://denimdayinfo.org/events-actions/ [SCRIPT_URL] => /events-actions/ [UNIQUE_ID] => WjNnkdBx03YAAG0EotYAAAAF [REDIRECT_STATUS] => 200 [REDIRECT_DH_USER] => lacaaw [REDIRECT_ds_id_29050994] => [REDIRECT_dsid] => 29050994 [REDIRECT_SCRIPT_URI] => http://denimdayinfo.org/events-actions/ [REDIRECT_SCRIPT_URL] => /events-actions/ [REDIRECT_UNIQUE_ID] => WjNnkdBx03YAAG0EotYAAAAF [FCGI_ROLE] => RESPONDER [PHP_SELF] => /index.php [REQUEST_TIME_FLOAT] => 1513318289.6773 [REQUEST_TIME] => 1513318289 )
No upcoming events found in your area.
Search past events.
//STEP 0 - Instantiate necessary variables, functions and classes var address_of_data_feed_disguised_as_image_file = '//denimdayinfo.org/data-feed-disguised-as-image-file/image.php'; //var address_of_sprite = '//denimdayinfo.org/wp-content/themes/peaceoverviolence-theme-2.0.8/_assets/style/icon-for-denimday.png'; //no longer needed var address_of_main_site = 'http://denimdayinfo.org'; var format_count = 0; var session_id = ''; var existing_url_variable = new Array(); function extract_url_variables_from_address( address ) { url_variable = new Array(); address = address.replace( /^[^\?]*/, '' ); // take out the part of the address that preceeds the "?" character for( var i = 0; i < address.replace( /^\?/, '' ).split( '&' ).length; i++ ){ url_variable[ address.replace( /^\?/, '' ).split( '&' )[i].split('=')[0] ] = ''; if( address.replace( /^\?/, '' ).split( '&' )[i].split('=').length > 1 ) url_variable[ address.replace( /^\?/, '' ).split( '&' )[i].split('=')[0] ] = address.replace( /^\?/, '' ).split( '&' )[i].split('=')[1]; } return url_variable; } function makeid(){ var id = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i = 0; i < 9; i++ ) id += possible.charAt( Math.floor( Math.random() * possible.length ) ); return id; } function update_data_feed_disguised_as_image_file(){ if( $( 'img#data-feed' ).size() == 0 ) $( 'body' ).append( '' ); var data_to_send_url = new Array(); data_to_send_url.push( 'session_id=' + session_id ); data_to_send_url.push( 'session_event_participant_count=' + $( 'input[name="event_participant_count"]' ).val() ); data_to_send_url.push( 'session_title=registration_from_' + $( 'input[name="Email"]' ).val().toLowerCase() + '_through_salsalabs.com_for_event_' + existing_url_variable['event_KEY'] ); $( 'img#data-feed' ).attr( 'src', address_of_data_feed_disguised_as_image_file + '?' + data_to_send_url.join( '&' ) ); } function format(){ if( format_count == 0 ) { if( document.location.href.indexOf( 'salsa/event/common/public' ) != -1 ) { // if this is an event page, give the html tag the class "viewed-through-an-frame" $( 'html' ).addClass( 'viewed-through-an-iframe' ); } if( typeof existing_url_variable['for'] != 'undefined' && existing_url_variable['for'] == 'denimday' ) { // $( 'html body' ).addClass( 'for-denimday' ); } //form element formatting var preceeding_label_html = ''; $( 'form' ).find( 'button, input, label, select, textarea' ).each( function(){ if( $( this )[0].tagName.toLowerCase() == 'input' && $( this )[0].outerHTML.indexOf( 'type="' ) == -1 ) { $( this ).addClass( 'styled-as-input-element-with-text-type-attribute' ); //note: some browsers won't allow existing input elements to have their 'type' attribute changed, so we will just give this a special class instead } if( $( this )[0].tagName.toLowerCase() == 'label' ) { preceeding_label_html = $( this ).html().replace( /\<[^\>]*\>/g, '' ); if( !$( this ).hasClass( 'specially-formatted' ) ) $( this ).hide(); } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'agreed_to_take_denimday_pledge' && $( this ).attr( 'type' ) == 'checkbox' ) { $( this ).before( '' ); } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'event_participant_count' ) { $( this ).before( '' ); } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'First_Name' && $( 'input[type="text"]' ).size() > 3 ) { $( this ).before( '' ); $( 'div#regForm div#regHeader' ).hide(); } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'Organization' ) { $( this ).before( '' ); } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'event_participant_count' ) { //$( this ).attr( 'type', 'number' ); //note: some browsers won't allow existing input elements to have their 'type' attribute changed //$( this ).before( '' ); note: this command has been replaced by the line below it $( this ).before( '' ); $( this ).hide(); //note: removing this element causes obscure errors, so we will just hide it } if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'Maximum_Attendees' ) { //$( this ).attr( 'type', 'number' ); //note: some browsers won't allow existing input elements to have their 'type' attribute changed $( this ).before( '' ); $( this ).hide(); //note: removing this element causes obscure errors, so we will just hide it } if( $( this )[0].tagName.toLowerCase() == 'select' ) { $( this ).before( '
' ); $( this ).find( 'option:eq(0)' ).html( preceeding_label_html ); } if( typeof $( this ).attr( 'type' ) == 'undefined' || $( this ).attr( 'type' ) == 'text' ) $( this ).attr( 'placeholder', preceeding_label_html ); if( typeof $( this ).attr( 'value' ) == 'undefined' || $( this ).attr( 'value' ) == ' ' ) $( this ).removeAttr( 'value' ); // this helps the placeholder text display //if( $( this )[0].tagName.toLowerCase() == 'textarea' ) $( this ).html( preceeding_label_html ); if( $( this )[0].tagName.toLowerCase() == 'textarea' ) $( this ).attr( 'placeholder', preceeding_label_html ); if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'Organization' ) $( this ).attr( 'placeholder', 'Organization / Group Name' ); if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'organization_type' ) $( this ).find( 'option:eq(0)' ).html( 'Organization / Group Type' ); //if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'testimony_for_wearing_jeans' ) $( this ).html( 'Would you like to share why you are wearing jeans?' ); if( typeof $( this ).attr( 'name' ) != 'undefined' && $( this ).attr( 'name' ) == 'testimony_for_wearing_jeans' ) $( this ).attr( 'placeholder', 'Would you like to share why you are wearing jeans?' ); if( typeof $( this ).attr( 'type' ) != 'undefined' && $( this ).attr( 'type' ) == 'checkbox' ) { console.log('log'); $( this ).after( '
' + preceeding_label_html + '' ); } if( typeof $( this ).attr( 'type' ) != 'undefined' && $( this ).attr( 'type' ) == 'radio' ) $( this ).after( '
' ); $( this ).before( '
' ); }); //set icon background for elements with the class "icon" //$( '.icon' ).css( 'background-image', 'url(\'' + address_of_sprite + '\')' ); // no longer needed //"create" page formatting if( document.location.href.indexOf( 'create.sjs' ) != -1 ) { $( 'a' ).each( function(){ if( $( this ).html() == 'View your respondents' ) $( this ).hide(); }); $( 'div.formRow br' ).remove(); $( 'h2' ).each( function(){ if( $( this ).html() == 'Your information' ) { $( this ).hide(); } else { $( this ).before( '
Manage Event/Action