Created
December 18, 2015 17:01
-
-
Save slickplaid/950db663d79bd25497c9 to your computer and use it in GitHub Desktop.
Modify the color pallete of www.xhalr.com
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
var BreatheMod = (function() { | |
// Colors. Change these to whatever you want. | |
var backgroundColor = '#000'; | |
var innerCircleColor = '#333'; | |
function formatColorString(color) { | |
return 'background-color: '+color+';'; | |
}; | |
function changeBackgroundColor(color) { | |
return document.body.style = formatColorString(color); | |
}; | |
function changeInnerCircleColor(color) { | |
var inCirc = document.getElementsByClassName('circle-inner')[0]; | |
return inCirc.style = formatColorString(color); | |
}; | |
// Set your colors on paste into console. | |
changeBackgroundColor(backgroundColor); | |
changeInnerCircleColor(innerCircleColor); | |
return { | |
changeBackgroundColor: changeBackgroundColor, | |
changeInnerCircleColor: changeInnerCircleColor | |
}; | |
})(); |
Probably won't work with the upcoming versions, but the old version is still up at http://www.xhalr.com/index1.0.php. Cheers!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example gif if you're having trouble with it: http://i.imgur.com/DY9eaQB.gif