Verified Commit b5290e52 authored by Camil Staps's avatar Camil Staps 🚀

open help text when searching for "how to use"

parent 510686a6
......@@ -867,6 +867,9 @@ function formsubmit() {
var q = form_str.getInputOrContentEditableValue().replace(/\u00a0/g, ' ');
if (q === '') {
sresults.innerHTML = '<p>Can\'t search for the empty string</p>';
} else if (q.match(/how to use/i)) {
document.getElementById('helptext').classList.add('visible');
document.getElementById('searchlinks').children[2].classList.add('active');
} else {
sresults.innerHTML = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment