hide plusone button after click

http://stackoverflow.com/q/6254100/154877

by Marcel

HTML

<div id="wrap">
    <g:plusone size="tall" callback="poHide"></g:plusone>
    <header>
        <h1>hide plusone button after click</h1>
    </header>
    <section>
        <h2>Curabitur blandit, enim quis hendrerit lacinia</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur blandit, enim quis hendrerit lacinia, ipsum turpis accumsan turpis, sit amet ullamcorper lacus diam.</p>
    </section>
    <footer>This is a code example for the Stack Overflow question <br><a href="http://stackoverflow.com/q/6254100/154877">"hide plusone button after click"</a></footer>
</div>
<script src="http://apis.google.com/js/plusone.js"></script>
<script>function poHide(){ $("#___plusone_0").fadeOut(); }</script>

CSS

body { color:#222; background:#fafafa; font:13px/1.4 'segoe ui', sans-serif; }
h1, h2 { margin:0 0 .5em; font:700 2.4em/1 'myriad pro', sans-serif; } h2 { color:#999; margin: 1em 0 .25em; font-size:1.6em; }
a { color:#06c; transition:.2s linear; -webkit-transition:.2s linear; } a:hover { color:#39f; }
p { margin:1em 0; } footer { color:#999; margin:3em 0 0; text-align:center; } footer a { color:#777; }
#wrap { width:500px; margin:1em auto; padding:1.5em; background:#fff; box-shadow:0 1em 2em rgba(0,0,0,.2); }

#___plusone_0 { float:right; margin:0 0 1em 1em; }