Skip to content

Commit f77d1ee

Browse files
author
Sylvain Pace
authored
feat(jquerymobile): add search on documentation with DocSearch as https://jquery.com/
1 parent 515c250 commit f77d1ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

themes/jquery/footer-mobile.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
</footer>
99

1010
<?php wp_footer(); ?>
11+
<!-- at the end of the BODY -->
12+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({apiKey: '207328b0f1c18555c9021d05157dd651',
13+
indexName: 'jquerymobile',
14+
inputSelector: 'input[name=\'s\']',
15+
debug: true // Set debug to true if you want to inspect the dropdown
16+
})" async></script>
1117

1218
</body>
1319
</html>

0 commit comments

Comments
 (0)