Search outdoorplantcare.com
Use the search box below to find any plant, problem, tool, or guide on the site. Results come from our search index of 200+ articles and tools.
<p id="search-page-status" style="margin-top: 12px; color: var(—text-soft); font-size: 14px;"></p> </div>
<script> (async function() { const input = document.getElementById('search-page-input'); const results = document.getElementById('search-page-results'); const status = document.getElementById('search-page-status'); let index = null; try { const r = await fetch('/search-index.json'); index = await r.json(); status.textContent = 'Searching ' + index.length + ' pages.'; } catch (e) { status.textContent = 'Could not load search index. Try refreshing.'; return; } function render(query) { if (!query || query.length < 2) { results.innerHTML = ''; status.textContent = 'Searching ' + index.length + ' pages.'; return; } const q = query.toLowerCase(); const matches = index.filter(function(item) { return (item.title + ' ' + (item.snippet || '') + ' ' + (item.body || '') + ' ' + (item.category || '')).toLowerCase().indexOf(q) !== -1; }).slice(0, 30); status.textContent = matches.length + ' result' + (matches.length === 1 ? '' : 's') + ' for "' + query + '"'; results.innerHTML = matches.map(function(m) { return '<a href="' + m.url + '" style="display: block; padding: 16px 0; border-bottom: 1px solid var(—rule); text-decoration: none; color: inherit;"><div style="font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(—text-soft); margin-bottom: 4px;">' + (m.category || '') + '</div><div style="font-weight: 600; color: var(—brand-dark); margin-bottom: 4px;">' + m.title + '</div><div style="font-size: 14px; color: var(—text-soft);">' + (m.snippet || '') + '</div></a>'; }).join(''); } input.addEventListener('input', function(e) { render(e.target.value); }); // Read q query param if present const qp = new URLSearchParams(window.location.search).get('q'); if (qp) { input.value = qp; render(qp); } })(); </script>