Return to Snippet

Revision: 25233
at March 24, 2010 06:00 by tscheckenbach


Initial Code
if (google.loader.ClientLocation) {
  var loc = google.loader.ClientLocation;
  var countryCode = loc.address.country_code;
  if(countryCode != "DE" && countryCode != "AT" && countryCode != "CH"){
  	$s('body').append("<div id='overlay'>Visible for other Countries</div>");
  	$s("#overlay").modal({
  		closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>",
  		position: ["15%",],
  		opacity:80,
  		overlayId: 'overlay',
  		containerId: 'container',
  		onClose: container.close
  	});
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
Geolocation Overlay

Initial Tags
google

Initial Language
JavaScript