Commit 9c8265ea authored by inertia's avatar inertia
Browse files

#65 search optimized (UI)

parent 8810bbad
......@@ -719,6 +719,14 @@ a[href*='tutorials-ruby'] {
padding-left: .90em;
}
#search-process {
background-image: url(../images/loading.gif);
background-size: .90em .90em;
background-repeat: no-repeat;
background-position: right top;
padding-left: .90em;
}
// See: https://github.com/turbolinks/turbolinks#displaying-progress
.turbolinks-progress-bar {
height: 5px;
......
......@@ -71,9 +71,11 @@
searchResultsEl.innerHTML = resultsHTML;
searchProcessEl.innerText = "Showing";
searchProcessEl.style.backgroundImage = "none";
} else {
searchResultsEl.style.display = "none";
searchProcessEl.innerText = "No";
searchProcessEl.style.backgroundImage = "none";
}
}
......@@ -92,7 +94,7 @@
searchInputEl = document.getElementById("search-input");
searchInputEl.value = query;
searchQueryEl.innerText = query;
searchQueryEl.innerHTML = '<a href="https://www.google.com/search?q=site%3Adevelopers.hive.io+' + query + '">' + query + '</a>';
searchQueryContainerEl.style.display = "inline";
for (var key in window.data) {
......
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