optimizely/marketing-website — pull request #722 by dtothefp (2014-11-26 20:07:09+00:00)
Title: add query string consideration and regeneration

This PR addresses https://optimizely.atlassian.net/browse/MKT-751 a request by Toby Urff to allow initializing properties in the /resources/sample-size-calculator with query string parameters. For this I repurposed some code from the experiment run by Toby. Also, a new query parameter of `tails=1` or `tails=2` was exposed to specify the tails of the experiment.

To test go on your local server to:

http://0.0.0.0:9000/dist/resources/sample-size-calculator/?conversion=16&effect=76&power=70&significance=91&tails=2

Change some of the input boxes, sliders, and check boxes. Watch to make sure the query params update.

Then go to url without query params:
http://0.0.0.0:9000/dist/resources/sample-size-calculator/

It should be initialized with the same values every time:
```js
defaultVals = {
conversion: 3,
effect: 20,
power: 80,
significance: 95,
tails: 1
};
```