source/eoc-main.js
// create function for when a wave is selected
create function for when a wave is selected
create function for when a wave is selected
function showForWave(wave, text) {
			mainMap.attr('class', 'wave ' + wave);
			d3.select(text).style('display', 'block');
			d3.select('#info-btn').attr('class', 'btn-lg');
			d3.select('#waves').selectAll('a').style('background-color', null);
			d3.select('#' + wave).select('a').style('background-color', '#eeeeee');
			if (mainTextTip.style('display') == 'block') {
				mainTextTip.style('display', 'none');
			}
			$('.maintexttip').empty();
			d3.select('#info-btn').text('Tell me more about the wave');
		}
function showForWave ( wave , text ) { mainMap . attr ( 'class' , 'wave ' + wave ) ; d3 . select ( text ) . style ( 'display' , 'block' ) ; d3 . select ( '#info-btn' ) . attr ( 'class' , 'btn-lg' ) ; d3 . select ( '#waves' ) . selectAll ( 'a' ) . style ( 'background-color' , null ) ; d3 . select ( '#' + wave ) . select ( 'a' ) . style ( 'background-color' , '#eeeeee' ) ; if ( mainTextTip . style ( 'display' ) == 'block' ) { mainTextTip . style ( 'display' , 'none' ) ; } $ ( '.maintexttip' ) . empty ( ) ; d3 . select ( '#info-btn' ) . text ( 'Tell me more about the wave' ) ; }
create function for when a wave is selected
create function for when a wave is selected
// hide main texttip if needed // clear main texttip