1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Hannes Magnusson
8d2156d2eb Dirty fix the bolding of events in your country 2009-05-11 11:01:42 +00:00
Hannes Magnusson
528f7ff9bf Fixed bug#38398 (A bug in a javascript code) (patch by Kalle) 2008-11-26 19:33:25 +00:00
Gabor Hojtsy
420a6791b1 so this is not needed at last (tested with IE) 2006-09-06 21:21:00 +00:00
Gabor Hojtsy
0b7e8fe860 try to solve the 3px IE problem with a CSS hack instead of onload flickering JS trickery 2006-09-06 13:35:26 +00:00
Gabor Hojtsy
cc4d7cd980 history restoration was deemed harmful 2006-09-06 12:52:57 +00:00
Gabor Hojtsy
766536d37c there are always people complaining about this search box autofill 2006-04-02 14:10:19 +00:00
Rasmus Lerdorf
351cfa6b6d Need to turn the +'s back into spaces here and decode the value so people
see the original search string they put in
2006-03-05 06:59:54 +00:00
Gabor Hojtsy
160e5b22fa break out of the loop in case we found where to insert the JS, and add the new DOM based suggesstion code 2005-01-10 12:57:26 +00:00
Gabor Hojtsy
b324375157 remove autoloading of suggestion code and add it only on the search page 2005-01-10 12:01:59 +00:00
Gabor Hojtsy
baf2992598 traverse the elements for the head element, since we cannot add an id on the head and otherwise cannot check for its name, since it is lowercase in XHTML mode and uppercase in HTML mode 2005-01-09 16:09:29 +00:00
Gabor Hojtsy
fa56dba508 decide on js suggestion loading in JavaScript, so that we can filter out misbehaving Mac browsers 2005-01-09 12:53:35 +00:00
Gabor Hojtsy
74433e7180 Opera seems to not like with(){} here, so get rid of it...
Patch by Curt Zirzow
2003-10-14 16:35:34 +00:00
Gabor Hojtsy
689238049c Workaround for the 3px IE display bug 2003-09-16 16:21:37 +00:00
Gabor Hojtsy
c7919b20c0 Put CSS and JS to their own place, and stop using JS for constant
styling. Use mirror specific style sheets instead which will be cached,
and applied faster than JS, and also work with JS disabled browsers.
2003-08-24 11:45:54 +00:00
Gabor Hojtsy
a63ba5d1d1 Set the background image in client scripting, so it will work
properly for www.php.net too. Also use convinience functions
to save a few bytes.
2003-08-23 17:33:20 +00:00
Gabor Hojtsy
8fe303bc05 Use divs to present the TOC items on manual
pages on the left side of the window

Add images according to php.net rules to these
two styles (toca, toci) depending on what mirror
they are used on

Also rewrite the TOC generator code a bit, so it
identifies items properly when their title and titleabbrev
differ [was a bug on many pages]

Also wrap too long function names, so we have the
same amount of content and nav area on pages with
long function names in the TOC [eg. xml functions]

The new div based approach means that we have *much*
less HTML to output, and the layout of the menu is better
than before, as the box images are aligned to the text.
Tested with Mozilla and Konqueror. Apart from pages with
long function names in the TOC, this should look very similar
to the display of the TOC before
2003-06-14 18:28:56 +00:00
Gabor Hojtsy
4d2ea15b8e If something is already typed in, then skip this 2003-06-07 07:55:46 +00:00
Gabor Hojtsy
115f678e05 Ups, first is the option, then comes the pattern 2003-06-06 18:52:46 +00:00
Gabor Hojtsy
1d86bcff06 Define the new searchHistory() JS function to restore
the last search done by a user

Include this in the onload event handler of the index page,
and in all other pages, where an onload handler is not already
defined

Add name to form, so we can call it by it's name

JS tested with Mozilla. As the functions and objects used
are rather old, it should work with all browsers. In case someone
knows a better way, go and fix it ;)
2003-06-05 19:41:55 +00:00
Gabor Hojtsy
ec5a78f5e9 Adding client side JS to make events in the user's
country bold. This JS file will be expanded in the future
to add features like last search keyword / last selected
search option remembering

This JS was tested in Mozilla, Galeon and Konqueror
with success and the code was human checked against
MSDN for Internet Explorer questions. It also includes
a BC check for browsers without DOM support.
2003-05-15 13:27:40 +00:00