I was cleaning up some code on my homepage and found one of my jquery functions I had written like so:
$(function(){
        var hash = window.location.hash;
        hash && $('[id^=search] a[href="' + hash + '"]').tab('show');
        $('[id^=search] a').click(function (e) {
        $(this).tab('show');
        var scrollmem = $('body').scrollTop();
        window.location.hash = this.hash;
        $('html,body').scrollTop(scrollmem);
  });
});
This particular piece changes tabs on the homepage when an external link contains a hash that matches with any hashes in my navigation. I hadn't worked with this snippet in a while (this was one of the first things I ever did for my website.) and I cannot for the life of me work out in my brain what hash && $('[id^=search] a[href="' + hash + '"]') translates to. If I were to think of it as plain english, what would it be?
 
     
     
     
    