example/example.js
function clickRegion( e ) {
	
	let pos 	= {
		x : e.clientX,
		y : e.clientY
	},
	region 		= '',
	dividant 	= 4,
	right  		= window.innerWidth - (window.innerWidth / dividant),
	left   		= (window.innerWidth / dividant),
	top    		= (window.innerHeight / dividant),
	bottom 		= window.innerHeight - (window.innerHeight / dividant);

	if( pos.y <= top ) { region = 'top'; }
	else if(  pos.y >= bottom ) { region = 'bottom'; }

	if( pos.x <= left ) { region = 'left'; }
	else if(  pos.x >= right ) { region = 'right'; }

	return region;
}
function clickRegion( e ) {
	
	let pos 	= {
		x : e.clientX,
		y : e.clientY
	},
	region 		= '',
	dividant 	= 4,
	right  		= window.innerWidth - (window.innerWidth / dividant),
	left   		= (window.innerWidth / dividant),
	top    		= (window.innerHeight / dividant),
	bottom 		= window.innerHeight - (window.innerHeight / dividant);

	if( pos.y <= top ) { region = 'top'; }
	else if(  pos.y >= bottom ) { region = 'bottom'; }

	if( pos.x <= left ) { region = 'left'; }
	else if(  pos.x >= right ) { region = 'right'; }

	return region;
}
function clickRegion ( e ) { let pos = { x : e . clientX , y : e . clientY } , region = '' , dividant = 4 , right = window . innerWidth - ( window . innerWidth / dividant ) , left = ( window . innerWidth / dividant ) , top = ( window . innerHeight / dividant ) , bottom = window . innerHeight - ( window . innerHeight / dividant ) ; if ( pos . y <= top ) { region = 'top' ; } else if ( pos . y >= bottom ) { region = 'bottom' ; } if ( pos . x <= left ) { region = 'left' ; } else if ( pos . x >= right ) { region = 'right' ; } return region ; }
get click quadrant based on mouse position
get click quadrant based on mouse position