From: oes Date: Wed, 10 Apr 2002 13:51:19 +0000 (+0000) Subject: Updated to new Bookmarklet X-Git-Tag: v_2_9_14~85 X-Git-Url: http://www.privoxy.org/gitweb/%3Ctable?a=commitdiff_plain;h=3bc667f85feb88865afa1381795023dbf94521f2;p=privoxy.git Updated to new Bookmarklet --- diff --git a/doc/webserver/actions/index.php b/doc/webserver/actions/index.php index 30b56c24..37971a5f 100755 --- a/doc/webserver/actions/index.php +++ b/doc/webserver/actions/index.php @@ -8,9 +8,12 @@ This file belongs in ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/ - $Id: index.php,v 1.19 2002/04/09 13:06:29 oes Exp $ + $Id: index.php,v 1.21 2002/04/10 13:44:07 oes Exp $ $Log: index.php,v $ + Revision 1.20 2002/04/10 00:07:35 oes + Moved window sizing and positioning code to Bookmarklet + Revision 1.19 2002/04/09 13:06:29 oes Resize and jump to the right on load @@ -156,9 +159,9 @@ function error_abort($title, $message) * Bookmarklet that leads here: */ $my_address = "http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $PHP_SELF; -$bookmarklet = "javascript:void(window.open('$my_address?url='+escape(location.href), 'Feedback', " . - "'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());"; - +$bookmarklet = "javascript:w=Math.floor(screen.width/2);h=Math.floor(screen.height*0.9);void(window.open('$my_address?url='+escape(location.href)," . + "'Feedback','screenx='+w+',width='+w+',height='+h+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no," . + "copyhistory=no').focus());"; /* * Provide default if URL unset