title: Dynamic content depending url params
body: <p>I have that jquery script:</p>
  
  <pre><code>function getParameterByName(name, url) {
      if (!url) url = window.location.href;
      name = name.replace(/[\[\]]/g, "\\$&amp;");
      var regex = new RegExp("[?&amp;]" + name + "(=([^&amp;#]*)|&amp;|#|$)"),
          results = regex.exec(url);
      if (!results) return null;
      if (!results[2]) return '';
      return decodeURIComponent(results[2].replace(/\+/g, " "));
  }
  
  var dynamicContent = getParameterByName('utm_term');
  
   $(document).ready(function() {
  
              if (dynamicContent == 'buy') {
          $('#buy').show();
      }
  
      else {
          $('#default-content').show();
      }
  });
  </code></pre>
  
  <p>It's working like this: if <code>utm_term</code> param in URL equal <code>'buy'</code> then block with <code>id="buy"</code> will show. If params are empty or URL don't have params then block with <code>id="default-content"</code> will show. </p>
  
  <p>And there is a question: I need that parameter in URL (<code>utm_term</code>) not equal some word, but just have it. </p>
  
  <p>Because now if URL have <code>utm_term=smth_buy</code>, I see <code>#default-content</code>, and I would see <code>#buy</code>.</p>
  
  <p>Any ideas?</p>