diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2011-02-20 22:55:41 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2011-02-20 22:55:41 -0500 |
commit | a742e43c387d089b344c0e293cf1b4292ee57c58 (patch) | |
tree | cd5d34ffe07f583b52221f1732f4faef482f77ef /web/smootlight.html | |
parent | 2b2b8ffc0d9978778aa38525a55cdddf2942cef7 (diff) |
Added dynamically generated behavior menu to Web interface
The menu makes a GET request to obtain the available behaviors as a
JSON list; it then generates a dropdown from which a behavior can be
selected. You should change installationEntryPointURL in control.js
to point to the appropriate resource.
Diffstat (limited to 'web/smootlight.html')
-rw-r--r-- | web/smootlight.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/smootlight.html b/web/smootlight.html index b52a7e2..ff50964 100644 --- a/web/smootlight.html +++ b/web/smootlight.html @@ -2,11 +2,28 @@ <head> <title>SmootLight</title> <script type='text/javascript' src='js/smootCanvas.js'></script> +<script type='text/javascript' src='http://code.jquery.com/jquery-1.5.min.js'></script> +<script type='text/javascript' src='js/control.js'></script> + +<style type='text/css'> + .invisible { + display: none; + } +</style> </head> <body> <canvas id='canvas' style='margin: 50px 25px;' width='800px' height='500px'></canvas> <div id='connection'></div> <div id='framerate'></div> + + <div id='control'> + <form id='preferences' action='#'> + <select id='behaviors'> + <option>Loading behaviors…</option> + </select> + <input id='refreshBehaviorListButton' type='button' value='Refresh behavior list' onclick='refreshBehaviorList()' class='invisible' /> + </form> + </div> </body> </html>
\ No newline at end of file |