Skip to content

Instantly share code, notes, and snippets.

@slickplaid
Created December 18, 2015 17:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slickplaid/950db663d79bd25497c9 to your computer and use it in GitHub Desktop.
Save slickplaid/950db663d79bd25497c9 to your computer and use it in GitHub Desktop.
Modify the color pallete of www.xhalr.com
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
};
})();
@slickplaid
Copy link
Author

Example gif if you're having trouble with it: http://i.imgur.com/DY9eaQB.gif

@bronkula
Copy link

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