Commit Graph

6 Commits

Author SHA1 Message Date
Bryan Schumaker
ef5be29197 web: better controls
I split out the web controls to a new file, and can set the status of
the play button correctly when the page is loaded.  Finally, the
set_play_button() function is called on a timer so changes on the
application will be reflected on the web page eventually.
2010-12-27 19:00:27 -05:00
Bryan Schumaker
6fd7ea77a2 web: remove return value from send_request 2010-12-27 13:02:07 -05:00
Bryan Schumaker
3c2f4ac147 web: rename do_request to send_request 2010-12-27 13:01:48 -05:00
Bryan Schumaker
7455b408e6 web: set_attr_once()
The set_attr_once() function is the same as set_attr(), only it will
only set the value once.  Attributes like "version" should use this,
since the ocarina version shouldn't change often.
2010-12-27 12:49:19 -05:00
Bryan Schumaker
66a637815e utils.js: separate attr and id
I was using the attribute as the object id in the html page.  By
splitting the two, I can have the same attribute set in multiple places
on a single page independently.
2010-12-27 12:45:23 -05:00
Bryan Schumaker
1b9af74cdc Added utils.js
The utils.js file is an external javascript file that will make it
easier to set attributes / do controls from more than one page.
2010-12-27 12:41:33 -05:00