function checkSearchResult() {
    var url = window.location.href;
    if (url.includes("search")) {
        if (document.getElementsByClassName('search-result')) {
            return;
        } else {
            displayNoResult();
        }
    } else {
        return;
    }
}
// Checks search results page to see whether there were any results
Checks search results page to see whether there were any results
Checks search results page to see whether there were any results
function checkSearchResult() {
    var url = window.location.href;
    if (url.includes("search")) {
        if (document.getElementsByClassName('search-result')) {
            return;
        } else {
            displayNoResult();
        }
    } else {
        return;
    }
}
function checkSearchResult ( ) { var url = window . location . href ; if ( url . includes ( "search" ) ) { if ( document . getElementsByClassName ( 'search-result' ) ) { return ; } else { displayNoResult ( ) ; } } else { return ; } }
Checks search results page to see whether there were any results
Checks search results page to see whether there were any results