We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb89fc commit 070f610Copy full SHA for 070f610
public/index.js
@@ -31,7 +31,11 @@ xhrRequest("/latest", displayResults);
31
button.addEventListener("click", function(e) {
32
e.preventDefault();
33
var q = input.value.toLowerCase().trim();
34
- if (q) {
+ if (q === '') {
35
+ input.style.boxShadow = "0 0 10px red";
36
+ input.placeholder = "Please type some text";
37
+ } else {
38
+ input.style.boxShadow = "0 0 0 grey";
39
clearContents();
40
var query = "?q=" + q;
41
var url = "/search" + query;
0 commit comments