]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy/fpostit/fpostit.js
minor dispy* fixes
[friendica.git] / view / theme / dispy / fpostit / fpostit.js
1 javascript: (function() {
2                                         the_url = 'view/theme/dispy/fpostit/fpostit.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' +
3                                                 encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ?
4                                                 document.getSelection() : document.selection.createRange().text));
5                                         a_funct = function() {
6                                                         if (!window.open(the_url, 'fpostit','location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) {
7                                                                 location.href = the_url
8                                                         };
9                                                 if (/Firefox/.test(navigator.userAgent)) {
10                                                                 setTimeout(a_funct, 0)
11                                                         } else {
12                                                                 a_funct();
13                                                         }
14                                                 })();"