1
0
mirror of https://github.com/php/web-php.git synced 2026-04-26 16:38:04 +02:00
Commit Graph

159 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth cdf59074d3 Replace languages.inc globals with I18n\Languages consts (#1121)
The include/languages.inc file was not removed as it's used in other
repositories. It should be removed after migration.

Tests were added to ensure that the global variables and the constants
are in sync with each other.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-11-14 11:37:00 +03:00
Luffy 7478275ad1 Hosting jQuery locally (#1119) 2024-11-09 20:07:27 +03:00
Lucas Azevedo 8413b22090 Fix offcanvas menu open bug (#1116) 2024-11-09 20:07:10 +03:00
Lucas Azevedo b62f99f6de Update navbar design and improve search UI (#1084)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
2024-11-02 17:39:04 +03:00
Roy Orbitson 2dcf9c3796 Fuzzy search of docs (#1007) 2024-08-09 12:11:16 +08:00
Andreas Möller 59c070f557 Enhancement: Enable blank_line_after_opening_tag fixer (#875) 2023-12-07 16:57:19 +01:00
Andreas Möller 00342c402f Fix: Remove vim instruction (#880) 2023-12-07 15:01:52 +01:00
Christoph M. Becker 8463593803 Only "linked" parameters should have pointer cursor (#742)
If a parameter has no target to scroll to, it should not suggest
otherwise by changing the cursor to a pointer.  Since the scrolling is
done via JS, we should also change the cursor via JS.[1]

While we're at it, we also fix the potential JS error where we call the
`.offset()` method on an empty `jQuery` object.

[1] <https://github.com/php/doc-en/issues/2071#issuecomment-1354497367>
2023-08-10 12:55:25 +01:00
Gemorroj b3a970000f Update common.js (#740)
some minor improvements
2022-12-14 11:33:11 +00:00
Andreas Möller d9bcfed482 Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.
2022-08-22 18:59:14 +02:00
Kamil Tekiela 77a062033a Improve code formatting in JS (#656) 2022-07-15 14:15:34 +01:00
Kamil Tekiela 352f784292 Fix mousetrap.js (#655) 2022-07-15 10:09:11 +01:00
Kamil Tekiela de8556658d Update mousetrap.min.js 2022-07-13 17:31:07 +01:00
Kamil Tekiela 68e9bffca2 Upgrade hogan.js 2022-07-13 17:31:07 +01:00
Kamil Tekiela 89b9ef2e66 Delete jquery.ui.totop.js
UItoTop was dead script since https://github.com/php/web-php/commit/613a15b4954034a65072cd78d007072221779998
2022-07-13 17:31:07 +01:00
Kamil Tekiela 63dbe8c66d Update jquery.scrollTo.min.js 2022-07-13 17:31:07 +01:00
Kamil Tekiela 6dcd848697 Move jquery.scrollTo.min.js to a new file
Update footer.inc
2022-07-13 17:31:07 +01:00
Kamil Tekiela 25784fa653 Drop IE support including IE 7 & 9 shims 2022-07-13 17:31:07 +01:00
Kamil Tekiela 33a94e54bb Drop Modernizr (#653)
We only used it to check for data: URI support, but that's universally supported now https://caniuse.com/datauri
2022-07-13 15:38:53 +01:00
Andreas Möller b3c9551c93 Enhancement: Enable no_extra_blank_lines fixer
Closes GH-646.
2022-07-12 14:26:18 +02:00
Andreas Möller c68e5a9e4a Enhancement: Enable single_space_after_construct fixer
Closes GH-640.
2022-07-12 11:44:23 +02:00
Ayesh Karunaratne c1dce9083b Minor optimizations in CSS files to shed some weight (#612)
- Removes px suffix from 0px.
 - Combines CSS properties where they are immediately overridden in the same selector block, or can be combined without side effects.

 This saves about 50 bytes off the CSS scripts. it ain't much but it's honest work
2022-07-05 11:38:25 +01:00
Kazuya Takei 438c8baa34 Change escaping function to build URL for searching
Fixes GH-518.
Closes GH-519.
2022-05-30 15:43:58 +02:00
hakre 806766ba3c Improve fix of php bug 74493
improvement of 6cec58d9 (Use exact word for parameter scroll 74493,
2017-04-25). some options are rendered with surrounding white-space (e.g.
in front of "scale" for `bcdiv()`s' scale parameter [1].

fix is to not compare the word against surrounding spaces (UCS-0020) etc.
by removal through ECMAScript 5 15.5.4.20 String.prototype.trim(),
2009-12-03.

finally fix the lines' indent.

74493: https://bugs.php.net/bug.php?id=74493
[1]: https://php.net/manual/en/function.bcdiv.php
ref: 6cec58d94b

Closes GH-460.
2021-11-19 13:10:57 +01:00
Anna Filina d56830dfce Display custom 404 page when legacy manuals found
Closes GH-385.
2020-12-14 19:50:51 +01:00
Christoph M. Becker c18e2b3db7 Fix parameter scrolling for proper variadic parameters 2020-11-02 12:38:42 +01:00
Markus Staab 6c8c2aa18c enable css-native smooth scrolling
remove javascript scroll magic

add a top-margin to all elements which get referenced by anchor-urls, so they are not covered by the fixed header
2020-08-25 16:38:31 +01:00
Sara Golemon c0afd74bf7 Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
2/4 - Update remaining except archives/ and release/.
2019-05-31 12:31:21 -04:00
Peter Kokot dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Peter Kokot e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Alexey Pyltsyn baae5e9655 Update $.scrollTo to last version 2017-11-20 13:34:08 +03:00
JayPHP d897477592 Added bug URL 2017-04-26 09:18:21 +01:00
JayPHP 6cec58d94b Use exact word for parameter scroll #74493
https://bugs.php.net/bug.php?id=74493
2017-04-25 13:19:52 +01:00
Levi Morrison 7ab55c1162 Reduce permissions 2016-11-08 11:02:54 -07:00
Levi Morrison 01d789d4ed Fix anchor scrolling 2016-10-04 13:14:13 -06:00
Peter Cowburn cdad7277b2 fix "Uncaught TypeError: (intermediate value)(...) is not a function" JavaScript error 2015-06-23 23:41:07 +01:00
Peter Cowburn d21f458fc6 Merge branch 'pull-request/68' 2015-06-23 23:39:22 +01:00
Hannes Magnusson d3d5ba6fb0 Fix markdown syntax highlighting 2015-04-30 10:10:18 -07:00
Wes 72f7d11ff5 fix for "scroll to page anchor"
...and starting an attempt to clean this file.
2015-04-19 20:19:57 +02:00
Adam Harvey a8b4d0768d Dun't recoorse-a intu iffremes. Bork Bork Bork!
Sume-a Chrume-a ixtenseeuns ooperete-a by injecteeng iffremes intu zee coorrent
ducooment. Seence-a zeese-a cume-a frum deefffferent ooreegins, ettempteeng tu
iterete-a oofer zeem in jQooery cooses a seme-a ooreegin ixcepshun tu be-a
throon. Bork Bork Bork!

Ve-a'll joost ixcloode-a iffremes, seence-a ve-a dun't use-a zeem oon zee
seete-a. Bork Bork Bork!
2014-09-07 22:36:59 -07:00
Peter Cowburn a1e82fb9b9 fix "bork bork bork" firing multiple times 2014-09-07 13:30:22 +01:00
Peter Cowburn 4f389c0b02 Zee-a Swedish cheff mekes un iester eegg 2014-09-06 21:12:23 +01:00
Michael d5c8c1d7eb Finally remove XHTML from .js files
Last but not least
2014-06-04 20:08:05 +02:00
Paul Dragoonis e2b48d81c5 Adding collapsible functionality to the search results as the menu goes way below the screen. Adding some CSS classes to the markup and thus improving CSS/JS selector readability and performance. 2014-06-01 20:22:58 +01:00
Derick Rethans e94f7f3501 Stop the madness. 2014-04-01 11:52:29 +01:00
Hannes Magnusson d03cba664c Fix the element edges when zooming in 2014-03-31 23:44:02 -07:00
Adam Harvey 70231d3b44 Disable the search autocomplete for IE ≤ 8.
Fixes the JS fail in bug #66207, but does nothing about the styling.
2014-03-25 10:13:22 -07:00
Sherif Ramadan 6dcc26797c Patching typeahead.js to fix bug #66371 2014-01-14 05:54:28 -05:00
Ben Scholzen a5847c30c6 Do usernote fading with CSS transitions instead of jQuery 2014-01-08 13:33:37 +01:00
Hannes Magnusson 6ec0676fc0 Couple of more syntax things see bug#66371 2013-12-31 12:12:02 -08:00