diff options
| author | Jieiku | 2023-05-22 22:37:44 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 22:37:44 -0700 |
| commit | 6dcec618d0ff0a2270f787f62267a0622275c69d (patch) | |
| tree | f0dd674fe43331db55ddae38808749de0323f030 /static/search_facade_stork.js | |
| parent | 71d977d49afbf93e0c736815e36d59664991fa18 (diff) | |
| download | abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.gz abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.bz2 abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.zip | |
Load Tinysearch/Stork On Demand
Diffstat (limited to 'static/search_facade_stork.js')
| -rw-r--r-- | static/search_facade_stork.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/static/search_facade_stork.js b/static/search_facade_stork.js deleted file mode 100644 index fc1459d..0000000 --- a/static/search_facade_stork.js +++ /dev/null @@ -1,16 +0,0 @@ -window.onload = function() { - document.getElementById('searchinput').onclick = function() { - var baseUrl = document.querySelector("meta[name='base']").getAttribute("content"); - if (baseUrl.slice(-1) == "/") { - baseUrl = baseUrl.slice(0, -1); - } - var sha256='07a791ddc469ec9b7e93fa64a81899b6c12bb3143e8bd0d1aee0b6dacc885b7e'; - var sha384='ePgzx2d0I+A6dkB+OTuOp13dsBEsL9f847ocaay/uDpwIyj0DUwOm7sEB01VpEiL'; - var loadSearch = document.createElement('script'); - loadSearch.src = baseUrl + '/search_bundle_stork.min.js?h=' + sha256; - loadSearch.setAttribute('integrity', 'sha384-' + sha384); - loadSearch.setAttribute('type', 'module'); - document.head.appendChild(loadSearch); - document.getElementById('searchinput').onclick = ''; - } -}; |
