rbwatson/wlux_test_server — pull request #6 by jmcmanus (2012-11-29 05:08:38+00:00)
Title: Fixed issues from meeting. Added toolbar. Other changes.

This is the last one, I promise. I opened a pull request earlier, but I was playing around with the toolbar and got something that looks pretty decent so I decided to close that one and resubmit. No more changes from me, unless there's an issue that needs to be fixed.

## Summary of changes
* The body is now actually hidden until everything is loaded ( I was using setTimeout before instead of setInterval).
* Pass a single JSON object to the logger service instead of individual POST parameters.
* Logs are done synchronously now. Before they were done asynchronously, which means some transitions weren't logged if the browser decided to load the next page before honoring our request.
* Converted jsonp request to use jquery.
* Cleanup, improved flow and layout of instrumentation file.
* Cleanup of study_data.php, now uses GET.
* Correctly log End Study button click (there was some weirdness with how the event is passed from a click on a button wrapped in an anchor tag).
* Added google closure compiler (and instruction in readme) to compile / minify the javascript so it downloads and runs faster. Test sites only need to include a single file now, `wlux_instrumentation.min.js`.
* Added a toolbar to the top of the page, containing task text and the end study button. The study_data service now sends the task text as part of the jsonp. The toolbar hides automatically after a few seconds so the user doesn't necessarily have to worry about it blocking his view of the page.

You shouldn't need to edit anything to get it running on your server this time. I believe I've now replaced all the hard-coded urls with dynamically chosen urls based on whether it's being run locally or on your servers (see the pull request for wlux_test_site also).