github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/stream/web/html/index.html (about) 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Websocket Stream</title> 6 <script src="./stream/main.js"></script> 7 <style> 8 table { 9 table-layout: fixed; 10 } 11 td { 12 border: 2px solid green; 13 } 14 td input { 15 width: 100%; 16 box-sizing: border-box; 17 } 18 </style> 19 </head> 20 <body> 21 <h2>Websocket Stream</h2> 22 <table> 23 <tr> 24 <td valign="top" width="25%"> 25 <p> 26 <form> 27 <p> 28 Count: <br> 29 <input id="count" name="count" type="number" min="1"/> 30 </p> 31 <p> 32 <button type="button" id="send">Send</button> 33 <button type="button" id="cancel">Cancel</button> 34 </p> 35 <p> 36 <button type="button" id="open">Open Connection</button> 37 </p> 38 </form> 39 </p> 40 </td> 41 <td valign="top" width="75%"> 42 <div id="output"/> 43 </td> 44 </tr> 45 </table> 46 </body> 47 </html>