Hide div if user signed in
<p>I am working with Vanilla and want to hide a div if the user is signed in.</p>

<p>One of the coders gave me this code.</p>

<pre><code>&lt;script language="javascript"&gt;
 jQuery(document).ready(function($) {
 if (gdn.definition('SignedIn', '0') != '0') {
 &lt;div class="sp-container"&gt;
   &lt;p&gt;blah blah blah&lt;/p&gt;
 &lt;/div&gt;
 }
 });
 &lt;/script&gt;
</code></pre>

<p>The div class sp-container I want to hide IF user is signed in.</p>

<p>One of the members suggested, using</p>

<pre><code>    $('.sp-container').hide();
</code></pre>

<p>or</p>

<pre><code>    $('.sp-container').css({'visibility':'hidden'});
</code></pre>

<p>But I am not sure how to actually do that code. Or where and how to add it... any help please.</p>

<p>All I wish to do is, NOT display the div sp-container IF user is signed in.</p>
