web/scripts/javascript.js
// Loads elements corresponding to tab criteria

Loads elements corresponding to tab criteria
Loads elements corresponding to tab criteria
function switchTab(event, tab) {
	var tabcontents = document.getElementsByClassName('tabcontent');
	var tablinks = document.getElementsByClassName('tablink');
	for (var i = 0; i < tabcontents.length; i ++) {
		tabcontents[i].style.display = 'none';
		tablinks[i].className = tablinks[i].className.replace(' active', '');
	}
	document.getElementById(tab).style.display = 'block';
	if (event) {
		event.currentTarget.className += ' active';
	}
	updateSummary(tab);
}
function switchTab ( event , tab ) { var tabcontents = document . getElementsByClassName ( 'tabcontent' ) ; var tablinks = document . getElementsByClassName ( 'tablink' ) ; for ( var i = 0 ; i < tabcontents . length ; i ++ ) { tabcontents [ i ] . style . display = 'none' ; tablinks [ i ] . className = tablinks [ i ] . className . replace ( ' active' , '' ) ; } document . getElementById ( tab ) . style . display = 'block' ; if ( event ) { event . currentTarget . className += ' active' ; } updateSummary ( tab ) ; }
Loads elements corresponding to tab criteria
Loads elements corresponding to tab criteria