codeforamerica / resident-web-use-research

[work in progress] Digital Front Door survey tool for resident research
8 stars 4 forks source link

Refactor survey results inline code #29

Closed milafrerichs closed 8 years ago

milafrerichs commented 8 years ago

What does this PR do?

Move inline script code to own file and namespace the initialization of he survey-results should be moved to away from the html code to add tests and make it more readable and obvious what's going on.

just move all the code into a namespace and add an init method add a few helpers methods (update_text, create_list) to seperate the DOM access from the code generating the result