title: Hide a div based on the URL
body: <p>I am trying to hide a div whenever someone goes to a specific url.</p>
  
  <p>Something like this:</p>
  
  <pre><code>var url = document.location.href;
  
  if (url.indexOf('http://donorperfect.local/asp/loginfull.asp') &gt;= 0) {
      $('#hidebox').hide();
  } else {
      $('#hidebox').show();
  }
  
  write("&lt;div id=\"hidebox\"&gt;\n");
  write("&lt;p&gt;test&lt;/p&gt;\n");
  write("&lt;/div&gt;\n");
  </code></pre>