|
7 | 7 | <meta name="description" content="JS Bin help documentation, tips, tricks, features and blog">
|
8 | 8 | <link rel="icon" href="/images/favicon.png">
|
9 | 9 | <link href="https://fonts.googleapis.com/css?family=Open+Sans:700,400" rel="stylesheet" type="text/css">
|
| 10 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> |
10 | 11 | <link rel="stylesheet" href="/css/help.css">{{ "<!--[if lt IE 9]>" | safeHTML }}
|
11 |
| - <script src="/js/html5shiv.min.js"></script> |
12 |
| - {{ "<![endif]-->" | safeHTML }} |
13 |
| - </head> |
14 |
| - <body data-url="{{ $.GitInfo }}" id="{{ $.URL | replaceRE `/(.*)/` "$1" | replaceRE `/` "-" }}-page"> |
15 |
| - <div id="container"> |
16 |
| - <header> |
17 |
| - <div class="inner"><a id="back" href="/"><span class="morewords">Back to JS Bin</span></a> |
18 |
| - <nav> |
| 12 | + <script src="/js/html5shiv.min.js"></script> |
| 13 | + {{ "<![endif]-->" | safeHTML }} |
| 14 | + </head> |
| 15 | + <body data-url="{{ $.GitInfo }}" id="{{ $.URL | replaceRE `/(.*)/` "$1" | replaceRE `/` "-" }}-page"> |
| 16 | + <div id="container"> |
| 17 | + <header> |
| 18 | + <div class="inner"><a id="back" href="/"><span class="morewords">Back to JS Bin</span></a> |
| 19 | + <nav> |
19 | 20 | <input id="search" placeholder="Search..." spellcheck="false" autocapitalize="off" autocorrect="off">
|
20 | 21 | <ol id="results" hidden></ol>
|
21 | 22 | <a {{if eq $.Section "blog" }}class="selected"{{ end }} href="/blog">Blog</a>
|
|
59 | 60 | s.parentNode.insertBefore(wf, s);
|
60 | 61 | })();
|
61 | 62 | </script>
|
62 |
| - <script src="/js/min.js"></script> |
| 63 | + <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> |
| 64 | + <script> |
| 65 | + docsearch({ |
| 66 | + appId: 'X7U969ZCKA', |
| 67 | + apiKey: '43c4a4be12146a98c44795c6078dd9d6', // use a SEARCH-ONLY api key here |
| 68 | + indexName: 'learn-jsbin', |
| 69 | + inputSelector: '#search', |
| 70 | + handleSelected: function (input, event, suggestion) { |
| 71 | + console.log(input, event, suggestion); |
| 72 | + }, |
| 73 | + |
| 74 | + debug: false // set to `true` if you want to inspect the dropdown menu's CSS |
| 75 | + }); |
| 76 | + </script> |
| 77 | + |
63 | 78 | <script src="/js/permalink.js"></script>
|
64 |
| - <script src="/js/search.js"></script> |
| 79 | + <script type="foo" src="/js/search.js"></script> |
65 | 80 | <script src="/js/xhr.js"></script>
|
66 | 81 | <script src="/js/keyboard.js"></script>
|
67 | 82 | <script src="/js/back-button.js"></script>
|
|
0 commit comments