js/calendar.js
/**
* Handle response from authorization server.
*
* @param {Object} authResult Authorization result.
*/
Handle response from authorization server.
Handle response from authorization server .
function handleAuthResult(authResult) {
	var authorizeDiv = document.getElementById('authorize-div');
	if (authResult && !authResult.error) {
		authorizeDiv.style.display = 'none';
		loadCalendarApi();
	} else {
		authorizeDiv.style.display = 'inline';
	}
}
function handleAuthResult ( authResult ) { var authorizeDiv = document . getElementById ( 'authorize-div' ) ; if ( authResult && ! authResult . error ) { authorizeDiv . style . display = 'none' ; loadCalendarApi ( ) ; } else { authorizeDiv . style . display = 'inline' ; } }
Handle response from authorization server.
Handle response from authorization server .
// Hide auth UI, then load client library. // Show auth UI, allowing the user to initiate authorization by // clicking authorize button.