christycui/christycui.github.io — pull request #3 by huangginny (2014-12-06 08:11:12+00:00)
Title: Preserve background color

Basically now if you turn on the green background color and press "Talk to me," the "Say hi" page would also be in green. This is the only link that I have changed, but I think you can modify the other buttons/links yourself :) Also I'm not sure whether I've put my code in the right place since I'm not familiar with the Jekyll thingy... but anyways I'm just giving you the code that you can use

**The idea:**
When redirecting to another page, do not use \.... Use a button to call a js function, function redirect(url), to redirect the page for you. The btn-link would make the button look exactly like a link. **Note:** The "Talk to me" button is not horizontally aligned with the others for some reason... I'll leave you to figure that out if you still want this feature

As you might have noticed, I passed a parameter to the url, so /talk_to_me becomes /talk_to_me?background=on. Then, on page load, I used the function getParameterByName(name) to extract the value of the parameter "background". Then I apply the value to "body" tag. Basically that's it.

If you still want this feature you can change every link in your page from \...\.s to \...\ :+1: