started working on play mode. made the actuators look like buttons
added appearance of play mode
Merge branch 'develop' into play
added in loading screen for play mode
catch when we press a pin in play mode
made buttons toggle on/off rather than just tap. still do not look 3D enough though. maybe look at bootstrap button CSS?
made white border around pin endpoints slightly smaller
play mode does not need d3 or bootstrap css
oops play mode really does need bootstrap css for the button layout
using angular routes to switch between Connect Mode and Play Mode
added AppCtrl to be the top level controller, with ConnectCtrl and PlayModeCtrl just handling their stuff.
both Play Mode and Connect Mode have the #footer which allows showing/hiding pins
made pin_stub template have more generic naming. renamed will-be-shown class to clicked. also using ng-hide instead of my hide class
most of the renaming in the JS file of toggle_pin_show to pin_stub_click
the rest of the renaming in the JS file of toggle_pin_show to pin_stub_click, AND sending data to the server
working on coloring pins based on their ID mod 5
in ng-repeat i had been using (id, pin) as if visible_sensors, etc were all dictionaries mapping pin id to pin object. but these are lists, so what i thought was the ID was actually just the list index. luckily in every case where pin ID needed to be used for setting attributes i was using pin.id, which was correct, but yeah this was a bug. so now ng-repeat just says for pin in visible_sensors, etc
merging in master
iterate over visible_actuators as a list. it is not a dict. also color the pins in play mode based on their ID % 5, so that different pins get different colors but the same pin always gets the same color
full value for a pin on the client side is 100, not 1.