javascript/event_handlers.js
/**
 * Clear css named "active" from previous active room to make it inactive
 * and add "active" to current selected button.
 */
Clear css named "active" from previous active room to make it inactive
and add "active" to current selected button.
Clear css named " active " from previous active room to make it inactive and add " active " to current selected button .
function switchDivArea(target){
	var divPrivateMsgArea = document.querySelector('div.main-private-message');
	var divMsgArea = document.getElementById("msg-area");
	if(target == "room"){
		divPrivateMsgArea.style.display = 'none';
		divMsgArea.style.display = 'block';
		active_private_id = null;
	}else{
		divPrivateMsgArea.style.display = 'block';
		divMsgArea.style.display = 'none';
	}
}
function switchDivArea ( target ) { var divPrivateMsgArea = document . querySelector ( 'div.main-private-message' ) ; var divMsgArea = document . getElementById ( "msg-area" ) ; if ( target == "room" ) { divPrivateMsgArea . style . display = 'none' ; divMsgArea . style . display = 'block' ; active_private_id = null ; } else { divPrivateMsgArea . style . display = 'block' ; divMsgArea . style . display = 'none' ; } }
Clear css named "active" from previous active room to make it inactive
 and add "active" to current selected button.
Clear css named " active " from previous active room to make it inactive and add " active " to current selected button .