Created
February 22, 2017 15:47
-
-
Save Xyvyrianeth/6771e3e9d9286949c7bbf32941b80b63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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