Skip to content

Commit 7363a80

Browse files
authored
Merge pull request #393 from MananAgarwal/new-theme
Display the number of results in tutorial search.
2 parents 1d951fe + 4c29a1c commit 7363a80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tutorials/themes/tutorials-theme/tutorialfilters.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
$(window).on('load', function() {
2020
if (!document.getElementsByClassName('result-card').length)
2121
{document.getElementById('search-results').innerHTML += '<h3>No tutorials found!</h3>';}
22+
else{
23+
document.getElementById('search-results').innerHTML = ('<h4>'+document.getElementsByClassName('result-card').length +' tutorials found</h4>') + document.getElementById('search-results').innerHTML;
24+
}
2225
});
2326

2427
//update filters

0 commit comments

Comments
 (0)