Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.36 KB

search.md

File metadata and controls

38 lines (35 loc) · 1.36 KB
layout title
page
Search
      <script src="/assets/js/search.js" type="text/javascript"></script>
      <!-- Configuration -->
      <script>
          document.getElementById("search-input").addEventListener("keyup", (e) => {
              if (e.code === "Escape") {
                  document.getElementById("search-input").value = "";
              }
          }); 
          SimpleJekyllSearch({
              searchInput: document.getElementById('search-input'),
              resultsContainer: document.getElementById('results-container'),
              json: '/search.json'
          })
      </script>
      <script>
          SimpleJekyllSearch({
              searchInput: document.getElementById('search-input'),
              resultsContainer: document.getElementById('results-container'),
              json: '/search.json'
          })
      </script>