webapp/src/main/webapp/lib/commons.js
/**
 * When the user clicks on the menu button, toggle between hiding and showing
 * the dropdown content.
 * 
 * @returns nothing
 * @since 0.3.0
 */
When the user clicks on the menu button, toggle between hiding and showing
the dropdown content.


When the user clicks on the menu button toggle between hiding and showing the dropdown content .
function toggleMenu(event, menuName) {
	var menu = document.getElementById(menuName);
	menu.classList.toggle("show");
	var menuOffset = event.currentTarget.getBoundingClientRect().width - menu.getBoundingClientRect().width;
	menu.style.left = menuOffset + "px";
}
function toggleMenu ( event , menuName ) { var menu = document . getElementById ( menuName ) ; menu . classList . toggle ( "show" ) ; var menuOffset = event . currentTarget . getBoundingClientRect ( ) . width - menu . getBoundingClientRect ( ) . width ; menu . style . left = menuOffset + "px" ; }
When the user clicks on the menu button, toggle between hiding and showing
 the dropdown content.
When the user clicks on the menu button toggle between hiding and showing the dropdown content .