esp82xx
esp82xx copied to clipboard
Add programtic way of adding menu items to the index.html/webpage
Possibly do it at runtime too. It is a little annoying to have to decouple all the indexes from the main just to add whatever process-specific things are in it, like needed to be done in 20e932a of esp8266ws2812
<tr><td width=1>
<input type=submit onclick="ShowHideEvent( 'LEDs' ); KickLEDs();" value="LEDs"></td><td>
<div id=LEDs class="collapsible">
<table width=100% border=1><tr><td id=LEDCanvasHolder><CANVAS id=LEDCanvas width=512 height=100></CANVAS></td>
<td><input type=button onclick="ToggleLEDPause();" id=LEDPauseButton value="|| / >"></td></tr></table>
</div></td></tr>
Adding here for future use: http://www.w3schools.com/jsref/met_table_insertrow.asp