show and hide if end of url equals?
<p>I need to hide and show a DIV if the end of a URL equals = #trending</p>

<p>I have a function that does most of it, i'm just not sure how to get the very end of the url of the current page.</p>

<pre><code>function hideLgFooter() {
    var url = document.location.toString();
    var checkUrl = ;

    if (checkUrl == '#trending'){
        $('.footer-lg').show();
        $('.footer-sm').hide();
    }
}
</code></pre>
