Skip to content

Instantly share code, notes, and snippets.

@Inquisitor-Sasha
Created September 30, 2013 03:23
Show Gist options
  • Save Inquisitor-Sasha/6759008 to your computer and use it in GitHub Desktop.
Save Inquisitor-Sasha/6759008 to your computer and use it in GitHub Desktop.
/* SIDEBAR BANNER SCRIPT
CREATED BY: Inquisitor Ehrenstein
CONTRIBUTORS:
LICENSE:
*/
var bannerCode = '';
var bannerDisplay = true;
if ( bannerDisplay == true ) {
if ( skin == 'vector' ) {
var bannerRef = document.getElementById('p-User_Fanon_Portals');
var bannerParent = bannerRef.parentNode;
var bannerNewLink = document.createElement('div');
bannerNewLink.id = 'right-banner';
bannerNewLink.innerHTML = bannerCode;
bannerParent.insertBefore(bannerNewLink, bannerRef);
$('#right-banner').css({ 'width' : '125px', 'height' : '300px', 'float' : 'right', 'clear' : 'right', 'border' : 'solid 2px #000000', 'color' : '#CCCCCC', 'background' : '#222222', 'padding' : '10px' });
}
} else {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment