title: Detect referring URL hide DIV using jquery
body: <p>Is there a way to use "referring URL" and when the referring website is detected, e.g., coming from example.com, then target landing page would hide <code>&lt;div class="helloworld"&gt;&lt;/div&gt;</code> that is displayed on the page?</p>
  
  <pre><code>   $(document).ready(function() {  
          if(document.referrer.indexOf(window.location.hostname) == "example.com"){  
                  var referrer =  document.referrer;
                             $(".helloworld").hide();
              }
      });
  &lt;div class="helloworld"&gt;hidden when example.com is the referring URL&lt;/div&gt;
  </code></pre>
  
  <p>Any help with the jquery to write this out</p>