]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/fpostit/fpostit.js
Merge branch 'master' of https://github.com/friendica/friendica
[friendica.git] / view / theme / diabook / fpostit / fpostit.js
1 javascript: (function() {
2                                         the_url = 'localhost/view/theme/diabook/fpostit/fpostit.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text));
3                                                 a_funct = function() {
4                                                         if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) location.href = the_url};
5                                                         if (/Firefox/.test(navigator.userAgent)) {setTimeout(a_funct, 0)} 
6                                                         else {a_funct()}})()"