crfManager.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <style>
  2. .box{
  3. width:120px;
  4. height:120px;
  5. }
  6. .gold{ background-color: gold; }
  7. .red{ background-color: red; }
  8. .large{
  9. font-size: 30px;
  10. }
  11. .center{
  12. text-align: center;
  13. }
  14. .stretch{
  15. padding: 50px;
  16. }
  17. </style>
  18. <table cellspacing="2" cellpadding="5" border="0">
  19. <tr><td>Version: </td><td><strong id="version">0.0</strong></td></tr>
  20. </table>
  21. <div id="descDiv">
  22. </div>
  23. <div id="formDiv">
  24. </div>
  25. <div id="debugDiv" style="display:block">
  26. <h3>Debug notes</h3>
  27. <textarea cols="95" rows="5" id="debugArea">
  28. </textarea>
  29. </div>
  30. <script type "text/javascript">
  31. window.onload=init;
  32. function init(){
  33. config.document=document;
  34. config.window=window;
  35. config.div="formDiv";
  36. config.debugArea="debugArea";
  37. config.role="crfManager";
  38. clear();
  39. print("StartingX");
  40. //add a button with callback
  41. config.button = config.document.createElement("button");
  42. config.button.innerHTML = "Generate description";
  43. let el=config.document.getElementById('descDiv');
  44. el.appendChild(config.button);
  45. config.button.onclick=generateDescription;
  46. generateFormArray();
  47. }
  48. </script>