crfManager.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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="formDiv">
  22. </div>
  23. <div id="debugDiv" style="display:block">
  24. <h3>Debug notes</h3>
  25. <textarea cols="95" rows="5" id="debugArea">
  26. </textarea>
  27. </div>
  28. <script type "text/javascript">
  29. window.onload=init;
  30. function init(){
  31. config.document=document;
  32. config.window=window;
  33. config.div="formDiv";
  34. config.debugArea="debugArea";
  35. config.role="crfSponsor";
  36. clear();
  37. print("StartingX");
  38. //add a button with callback
  39. config.button = config.document.createElement("button");
  40. config.button.innerHTML = "Generate description";
  41. let el=config.document.getElementById(config.div);
  42. //print(el);
  43. el.appendChild(config.button);
  44. config.button.onclick=generateDescription;
  45. }
  46. </script>