Skip to content

Instantly share code, notes, and snippets.

@internetoutfitters
Created November 13, 2011 18:07
Show Gist options
  • Save internetoutfitters/1362415 to your computer and use it in GitHub Desktop.
Save internetoutfitters/1362415 to your computer and use it in GitHub Desktop.
Social connect
function openImportServiceLogin(url, windowWidth, windowHeight) {
windowName = "connect_window";
var centerWidth = (window.screen.width - windowWidth) / 2;
var centerHeight = (window.screen.height - windowHeight) / 2;
window.open(url, windowName, 'resizable=0,scrollbars=1,width=' + windowWidth +
',height=' + windowHeight +
',left=' + centerWidth +
',top=' + centerHeight);
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment