Skip to content

Commit

Permalink
feat: support OpenSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rplus committed Feb 10, 2022
1 parent dc48d0c commit ddec6c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<link rel="preload" href="./allF.json" as="fetch" crossorigin>
<link rel="stylesheet" href="./bundle.css">
<link rel="preconnect" href="https://images.weserv.nl">
<link rel="search" type="application/opensearchdescription+xml"
title="pokedex search" href="./opensearch.xml">
</head>

<body></body>
Expand Down
8 changes: 8 additions & 0 deletions assets/opensearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>pokedex</ShortName>
<Description>pokedex search</Description>
<Url type="text/html" method="get" template="https://rplus.github.io/pokedex/?q={searchTerms}"/>
<Image width="16" height="16">https://rplus.github.io/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://rplus.github.io/pokedex/</moz:SearchForm>
</OpenSearchDescription>

0 comments on commit ddec6c5

Please sign in to comment.