From 5ced7f2bc57176f399d8964183bfe453b1b91eff Mon Sep 17 00:00:00 2001 From: tommy tomson Date: Fri, 30 Mar 2012 13:48:34 +0200 Subject: add themes diabook-red & diabook-aerith --- view/theme/diabook-red/fpostit/fpostit.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 view/theme/diabook-red/fpostit/fpostit.js (limited to 'view/theme/diabook-red/fpostit/fpostit.js') diff --git a/view/theme/diabook-red/fpostit/fpostit.js b/view/theme/diabook-red/fpostit/fpostit.js new file mode 100755 index 000000000..d183c7573 --- /dev/null +++ b/view/theme/diabook-red/fpostit/fpostit.js @@ -0,0 +1,6 @@ +javascript: (function() { + 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)); + a_funct = function() { + if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) location.href = the_url}; + if (/Firefox/.test(navigator.userAgent)) {setTimeout(a_funct, 0)} + else {a_funct()}})()" \ No newline at end of file -- cgit v1.2.3