runner.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  5. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.0/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
  6. <link rel="stylesheet" type="text/css" href="css/ivprog-visual-1.0.css">
  7. <link rel="stylesheet" type="text/css" href="css/ivprog-term.css">
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  9. <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"
  10. integrity="sha256-KM512VNnjElC30ehFwehXjx1YCHPiQkOPmqnrWtpccM="
  11. crossorigin="anonymous"></script>
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.0/semantic.min.js" integrity="sha256-x1fC6BXl6BwnUhfQqqqC0Fd/n12wH+u8u9va6+E7xaA=" crossorigin="anonymous"></script>
  13. <script type="text/javascript" src="js/jquery.json-editor.min.js"></script>
  14. </head>
  15. <body>
  16. <div style="padding-top: 50px;content: ''"></div>
  17. <div class="ui container grid">
  18. <div class="four wide column">
  19. <div class="row">
  20. <textarea class="ui form control" name="input" id="input" cols="100" rows="30">
  21. programa {
  22. const real C = 5.5
  23. funcao inicio() {
  24. inteiro a = 8
  25. se (a * C > 80) {
  26. a = 0
  27. } senao {
  28. a = -1
  29. }
  30. }
  31. }
  32. </textarea>
  33. </div>
  34. <div class="row">
  35. <button class="ui button" id="btn">Run</button>
  36. </div>
  37. </div>
  38. <div class="six wide column">
  39. <div id="console">
  40. </div>
  41. </div>
  42. <div class="six wide column">
  43. <div style="overflow-y: scroll; height: 70%;">
  44. <pre id="json-renderer" class="ui right floated"></pre>
  45. </div>
  46. </div>
  47. </div>
  48. </body>
  49. <script>
  50. ( function () {
  51. ivprogCore.runner();
  52. })();
  53. </script>
  54. </html>