Talk:Snippets/Top icons
Latest comment: 12 years ago by HTFFanBrandon04 in topic This snippet is not working anymore
This snippet is not working anymore
editWhy isn't this spinnet working on my wikis? Did I miss one or more step(s)?
My code:
<div class="Top_icon_dynamic"> [[File:Padlock.svg|20px]] </div>
Some built-in JavaScript:
/** * Icons on the top right of the article. * See also CSS * * @source: www.mediawiki.org/wiki/Snippets/Top_icons * @rev: 3 */ jQuery( document ).ready( function ( $ ) { $( '.Top_icon_raw' ) .removeClass( 'Top_icon_raw' ) .addClass( 'Top_icon_dynamic' ) .prependTo( '#firstHeading' ); } );
And some CSS:
/** * Icons on the top right of the article. * See also JS * * @source: http://www.mediawiki.org/wiki/Snippets/Top_icons * @rev: 2 */ /* Hide without javascript */ .Top_icon_raw { display: none; } /* With JavaScript */ .Top_icon_dynamic { float: right; padding-left: 10px; font-size: 50%; width: auto !important; } .Top_icon_raw p, .Top_icon_dynamic p { padding: 0; margin: 0; }