tests/Leaflet/sl-application.js
/* =====================
** Popup windows
** =====================
** Creates an unobtrusive popup window */
Popup windows
Creates an unobtrusive popup window
Popup windows Creates an unobtrusive popup window
function popUpExample()
{
	$('a.popup').click(function(){
		var href = $(this).attr('href');
		var width = screen.width - 760;
		var height = screen.height - 550;
		var left = (screen.width - width)/2;
		var top = (screen.height - height)/2;
		window.open(href, 'popup', 'height='+ height +',width='+ width +',left='+ left +',top='+ top +',toolbar=no,scrollbars=yes');
		return false;		
	});
}
function popUpExample ( ) { $ ( 'a.popup' ) . click ( function ( ) { var href = $ ( this ) . attr ( 'href' ) ; var width = screen . width - 760 ; var height = screen . height - 550 ; var left = ( screen . width - width ) / 2 ; var top = ( screen . height - height ) / 2 ; window . open ( href , 'popup' , 'height=' + height + ',width=' + width + ',left=' + left + ',top=' + top + ',toolbar=no,scrollbars=yes' ) ; return false ; } ) ; }
Popup windows
Creates an unobtrusive popup window
Popup windows Creates an unobtrusive popup window