jquery-ui/demos
Michał Gołębiowski-Owczarek 600057f59c
Demos: Make autocomplete demos work on jqueryui.com
The `jqueryui.com` demos build process deAMDifies HTML files, replacing required
JS files with direct script tags. On the other hand, when running demos locally
from the jQuery UI repository, RequireJS is used.

This used to work fine until we got a new `search.js` file introduced in
gh-2187. The deAMDifying process doesn't touch non-HTML files which made loading
autocomplete demos crash on "require is not a function"

To resolve the issues without a major rearchitecture of the build process,
the `search.js` file now detects AMD and uses `require`, falling back to relying
on the `jQuery` global in the other case.

Closes gh-2274
Ref gh-2187
Ref jquery/jqueryui.com#216
2024-07-30 08:31:10 +02:00
..
accordion Docs: remove a duplicated "be" in an accordion demo 2024-04-12 17:12:36 +02:00
autocomplete All: Drop support for IE & some other browsers (but mostly IE) 2024-05-15 00:38:40 +02:00
button All: Remove deprecated .click() usage in demos/tests 2022-07-14 20:34:29 +02:00
checkboxradio Demos: Optimize *.png with zopflipng 2016-08-24 12:01:45 -04:00
controlgroup Update custom_render.html (#2242) 2024-04-25 23:53:11 +02:00
datepicker Demos:Tests: Avoid self-closing HTML tags 2023-05-10 10:53:57 +02:00
dialog Docs: Change a few most common domains from HTTP to HTTPS 2024-04-26 16:25:34 +02:00
draggable Update custom_render.html (#2242) 2024-04-25 23:53:11 +02:00
droppable Demos:Tests: Avoid self-closing HTML tags 2023-05-10 10:53:57 +02:00
effect Demos: Fix a typo with an extra semicolon 2017-05-10 12:32:40 -04:00
images Demos/tests: Losslessly recompress PNG/GIF images. 2013-08-26 10:18:15 -04:00
menu Demos: Add device-width viewport meta to all demos 2015-09-30 17:07:38 +02:00
position All: Remove usage of jQuery positional selectors 2020-01-22 16:44:34 +01:00
progressbar Demos: Add device-width viewport meta to all demos 2015-09-30 17:07:38 +02:00
resizable Demos: Add device-width viewport meta to all demos 2015-09-30 17:07:38 +02:00
selectable Demos: Add device-width viewport meta to all demos 2015-09-30 17:07:38 +02:00
selectmenu Update custom_render.html (#2242) 2024-04-25 23:53:11 +02:00
slider All: Remove the deprecated ui/core.js file 2024-05-15 00:38:40 +02:00
sortable Sortable: Remove reference to .disableSelection() from demos 2019-12-09 21:13:03 +01:00
spinner Update custom_render.html (#2242) 2024-04-25 23:53:11 +02:00
tabs demos: Replace search.php with $.ajaxTransport() mock 2024-01-03 01:31:36 +01:00
tooltip All: Drop support for IE & some other browsers (but mostly IE) 2024-05-15 00:38:40 +02:00
widget Update custom_render.html (#2242) 2024-04-25 23:53:11 +02:00
.eslintrc.json Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
bootstrap.js All: Drop support for IE & some other browsers (but mostly IE) 2024-05-15 00:38:40 +02:00
demos.css Demos: Add new infrastructure using a require.js bootstrap 2015-07-21 11:00:40 -04:00
index.html Controlgroup: Inital commit of new widget 2015-10-07 10:57:59 -04:00
search.js Demos: Make autocomplete demos work on jqueryui.com 2024-07-30 08:31:10 +02:00