Simulador de lenguaje basado en la arquitectura de John von Nuemann, esta versión es para móviles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html>
  2. <html ng-app="JVON">
  3. <head>
  4. <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
  5. <meta name="format-detection" content="telephone=no">
  6. <meta name="msapplication-tap-highlight" content="no">
  7. <meta charset="utf-8" />
  8. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
  9. <title>JVON Movil</title>
  10. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  11. <link rel="icon" href="favicon.ico" type="image/x-icon">
  12. <script src="cordova.js"></script>
  13. <script src="scripts/platformOverrides.js"></script>
  14. <script src="scripts/index.js"></script>
  15. <script src="scripts/angular/angular.min.js"></script>
  16. <script src="scripts/angular/angular-touch.min.js"></script>
  17. <script src="scripts/angular/angular-sanitize.min.js"></script>
  18. <script src="scripts/cryptojs/rollups/aes.js"></script>
  19. <script src="scripts/cryptojs/rollups/hmac-sha512.js"></script>
  20. <script src="scripts/cryptojs/rollups/sha512.js"></script>
  21. <script src="scripts/cryptojs/components/mode-ecb-min.js"></script>
  22. <script src="scripts/cryptojs/components/pad-zeropadding-min.js"></script>
  23. <script src="scripts/values/code.js"></script>
  24. <script src="scripts/values/english.js"></script>
  25. <script src="scripts/values/spanish.js"></script>
  26. <script src="scripts/jvon-angular.js"></script>
  27. <script src="scripts/jvon-interpret.js"></script>
  28. <link rel="stylesheet" href="css/index.css" />
  29. </head>
  30. <body ng-controller="JVONController" id="jvon" onload="initialize();">
  31. <div ng-click="hide_help();" id="blur" class="blur"></div>
  32. <div id="input_prompt" class="input_prompt">
  33. <span class="input_prompt_vertical">
  34. {{strings.input_value}}
  35. <input autocomplete="off" type="text" name="rda" id="rda" />
  36. <input ng-click="rda_value_received();" type="button" value="Ingresar" />
  37. </span>
  38. </div>
  39. <div id="help_window" class="help_window" ng-bind-html="strings.help_text"></div>
  40. <div class="options_div"><input ng-click="show_help();" type="button" value="{{strings.help}}" /><select ng-change="change_language();" ng-model="language"><option value="0">{{strings.spanish}}</option><option value="1">{{strings.english}}</option></select></div>
  41. <br />
  42. <table class="main_table">
  43. <tr>
  44. <td class="main_td">
  45. {{strings.code}}<hr />
  46. <div class="scrollcode">
  47. <table align="center" class="table_background">
  48. <tr ng-repeat="(key, line) in code_lines">
  49. <td id="line1_{{key}}" ng-click="select_line(key, false);" class="table_cell line_number_td" >{{line.line}}</td>
  50. <td id="line2_{{key}}" class="table_cell"><select ng-model="line.command" ng-options="command.name for command in commands"></select></td>
  51. <td id="line3_{{key}}" class="table_cell"><input type="text" ng-model="line.value" /></td>
  52. </tr>
  53. </table>
  54. </div>
  55. <hr />
  56. <input ng-click="add_line();" id="add_line" type="button" value="{{strings.add_line}}" />
  57. <input ng-click="insert_line();" id="insert_line" type="button" value="{{strings.insert_line}}" />
  58. <input ng-click="delete_line();" id="delete_line" type="button" value="{{strings.delete_line}}" />
  59. <input ng-click="clear_code();" id="clear_code" type="button" value="{{strings.clear_code}}" />
  60. </td></tr><tr>
  61. <td class="main_td">
  62. {{strings.result}}
  63. <hr />
  64. <div class="scrollresult">
  65. <table align="center">
  66. <tr>
  67. <td class="result_table">
  68. <table align="center" class="table_background">
  69. <tr>
  70. <td class="title_td">Ln</td>
  71. <td class="title_td">Ac</td>
  72. <td class="title_td">80</td>
  73. <td class="title_td">81</td>
  74. <td class="title_td">82</td>
  75. <td class="title_td">83</td>
  76. <td class="title_td">84</td>
  77. <td class="title_td">85</td>
  78. <td class="title_td">Wrt</td>
  79. </tr>
  80. <tr ng-repeat="result in results">
  81. <td class="table_cell">{{result.line}}</td>
  82. <td class="table_cell">{{result.ac}}</td>
  83. <td class="table_cell">{{result.first}}</td>
  84. <td class="table_cell">{{result.second}}</td>
  85. <td class="table_cell">{{result.third}}</td>
  86. <td class="table_cell">{{result.fourth}}</td>
  87. <td class="table_cell">{{result.fifth}}</td>
  88. <td class="table_cell">{{result.sixth}}</td>
  89. <td class="table_cell">{{result.wrt}}</td>
  90. </tr>
  91. </table>
  92. </td>
  93. </tr>
  94. </table>
  95. </div>
  96. <hr />
  97. <input ng-click="execute_code();" id="execute_code" type="button" value="{{strings.execute_code}}" />
  98. <input ng-click="paused_code();" id="pause_code" type="button" value="{{strings.pause_code}}" />
  99. <input ng-click="stop_code();" id="stop_code" type="button" value="{{strings.stop_code}}" />
  100. {{strings.interval}}
  101. <select ng-change="change_speed();" ng-model="speed">
  102. <option value="0">0</option>
  103. <option value="1">1</option>
  104. <option value="2">2</option>
  105. <option value="3">3</option>
  106. <option value="4">4</option>
  107. <option value="5">5</option>
  108. </select>
  109. </td></tr><tr>
  110. <td class="main_td">
  111. {{strings.result}}
  112. <hr />
  113. <div class="scrollresult">
  114. <table align="center">
  115. <tr>
  116. <td class="result_table">
  117. <table align="center" class="table_background">
  118. <tr>
  119. <td class="title_td">{{strings.screen}}</td>
  120. </tr>
  121. <tr ng-repeat="line in screen">
  122. <td class="table_cell">{{line.result}}</td>
  123. </tr>
  124. </table>
  125. </td>
  126. </tr>
  127. </table>
  128. </div>
  129. </td>
  130. </tr>
  131. </table>
  132. </body>
  133. </html>