| <!doctype html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"/> |
| |
| <!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--> |
| |
| <title>Search Articles</title> |
| <link rel="stylesheet" href="https://fonts.xz.style/serve/inter.css"> |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css"> |
| |
| <script |
| src="https://code.jquery.com/jquery-3.5.1.js" |
| integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" |
| crossorigin="anonymous"> |
| </script> |
| |
| <script |
| src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"> |
| </script> |
| |
| <script src="./search.js"></script> |
| </head> |
| <body> |
| <h1>Search in articles</h1> |
| <hr/> |
| <form id="search"> |
| <input id="searchText" type="text" width="40"/> |
| <input type="submit" value="Search"/> |
| </form> |
| <div id="results"/> |
| |
| <div id="template" style="display:none"> |
| <h2>Articles containing "{{data.query}}"</h2> |
| <ul> |
| {{#each data.result.article}} |
| <li class="seeAlso"> |
| <a href="{{this.path}}.html">{{this.title}}</a> |
| </li> |
| {{/each}} |
| </ul> |
| </div> |
| </body> |
| </html> |