Skip to content

Instantly share code, notes, and snippets.

@dnoseda
Created December 31, 2011 00:07
Show Gist options
  • Save dnoseda/1542143 to your computer and use it in GitHub Desktop.
Save dnoseda/1542143 to your computer and use it in GitHub Desktop.
window.twttr=window.twttr||{};
var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,u=encodeURIComponent(F.location.href),t=encodeURIComponent(F.title);
if(C>A){
G=Math.round((C/2)-(A/2))
}
window.twttr.shareWin=window.open('http://linksdeviernes.com/add.php?url='+u+'&titulo='+t,'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');
@dnoseda
Copy link
Author

dnoseda commented Dec 31, 2011

versión bookmarklet: https://gist.github.com/1542176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment