From 40669b1fd8ff2fcf9270adcdc97fb6fc13b4139e Mon Sep 17 00:00:00 2001
From: uvok cheetah
Date: Sat, 23 May 2020 15:45:33 +0200
Subject: Reformat code

---
 search.html | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/search.html b/search.html
index 38f17b3..1ec7433 100644
--- a/search.html
+++ b/search.html
@@ -40,30 +40,30 @@ layout: page
 <script>
   // search
   function query(queryterm) {
-  var result = idx.search(queryterm);
-  const rbase = document.getElementById("results")
-  rbase.textContent = "";
-  if(result.length) {
-    var root = rbase.appendChild(document.createElement("ul"));
-    result.forEach(r => {
-      const p = pages.find(p => p.id == r.ref);
-      var li = document.createElement("li")
-      var el = li.appendChild(document.createElement("a"));
-      el.textContent = p.title;
-      el.href = p.url;
-      el = li.appendChild(document.createElement("span"));
-      el.textContent = " [score: " + r.score.toString() + "]";
-      root.appendChild(li);
-    });
-  } else {
-    var el = document.createElement("p");
-    el.textContent = "No results";
-    rbase.appendChild(el);
-  }
-  document.getElementById("qterm").textContent = queryterm;
+      var result = idx.search(queryterm);
+      const rbase = document.getElementById("results")
+      rbase.textContent = "";
+      if (result.length) {
+          var root = rbase.appendChild(document.createElement("ul"));
+          result.forEach(r => {
+              const p = pages.find(p => p.id == r.ref);
+              var li = document.createElement("li")
+              var el = li.appendChild(document.createElement("a"));
+              el.textContent = p.title;
+              el.href = p.url;
+              el = li.appendChild(document.createElement("span"));
+              el.textContent = " [score: " + r.score.toString() + "]";
+              root.appendChild(li);
+          });
+      } else {
+          var el = document.createElement("p");
+          el.textContent = "No results";
+          rbase.appendChild(el);
+      }
+      document.getElementById("qterm").textContent = queryterm;
   };
   const qbox = document.getElementById("input_qterm");
   document.getElementById("qsubmit").onclick = ev => {
-    alert(qbox.value);
+      alert(qbox.value);
   };
 </script>
-- 
cgit v1.2.3