Merge branch 'main' into drafts

This commit is contained in:
John Bowdre 2024-07-17 20:47:41 -05:00
commit 807837aa7f
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@ function displayResults (results, store) {
searchResults.innerHTML = 'No results found.'; searchResults.innerHTML = 'No results found.';
} }
} }
const params = new URLSearchParams(window.location.search); const searchParams = new URLSearchParams(window.location.search);
const query = params.get('query'); const query = searchParams.get('query');
if (query) { if (query) {
document.getElementById('search-query').setAttribute('value', query); document.getElementById('search-query').setAttribute('value', query);
const idx = lunr(function () { const idx = lunr(function () {

View file

@ -55,6 +55,6 @@
<h3>status.lol</h3> <h3>status.lol</h3>
<script src="https://status.lol/jbowdre.js?time&link&fluent&pretty"></script> <script src="https://status.lol/jbowdre.js?time&link&fluent&pretty"></script>
<hr> <hr>
<h3>recent track</h3> <h3>latest track</h3>
<script src="https://recentfm.rknight.me/now.js?u=pushpianotire&e=🎶"></script> <script src="https://recentfm.rknight.me/now.js?u=pushpianotire&e=🎶"></script>