Skip to content

Instantly share code, notes, and snippets.

@Xyvyrianeth
Created February 22, 2017 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xyvyrianeth/6771e3e9d9286949c7bbf32941b80b63 to your computer and use it in GitHub Desktop.
Save Xyvyrianeth/6771e3e9d9286949c7bbf32941b80b63 to your computer and use it in GitHub Desktop.
setInterval(function() {
document.body.style.cssText = "background: radial-gradient(at center center, rgb(" + backgroundcolor + ") 0%, rgb(0, 0, 0) 100%)";
}, 0);
$("body #bottom .relative").append('<div id="BC-btn" class="ugly-button BG_btn" style="position:fixed; background-color:#0aaa0a; width:100px; text-align:left; font-family:' + fixedWidth + '; font-color:#999999; border-style:inset; border-width:2px; border-color:#999999; bottom:92px; right:9px">BG Color</div>');
$("#BC-btn").click(function(){ backgroundcolorprompt = prompt("What would you like to set the background color to?", backgroundcolorprompt); if (backgroundcolorprompt === "") { backgroundcolor = "0, 0, 0"; } else { backgroundcolor = HTD(backgroundcolorprompt); } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment