From 3bc667f85feb88865afa1381795023dbf94521f2 Mon Sep 17 00:00:00 2001 From: oes Date: Wed, 10 Apr 2002 13:51:19 +0000 Subject: [PATCH] Updated to new Bookmarklet --- doc/webserver/actions/index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.39.2