cnlohr / esp82xx

Useful ESP8266 C Environment
Other
289 stars 107 forks source link

Add programtic way of adding menu items to the index.html/webpage #7

Open cnlohr opened 8 years ago

cnlohr commented 8 years ago

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>
cnlohr commented 8 years ago

Adding here for future use: http://www.w3schools.com/jsref/met_table_insertrow.asp