Skip to content

Commit 4d1536d

Browse files
committed
add java options
1 parent e9954fc commit 4d1536d

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
173173

174174

175175
function initAceAndOptions() {
176+
if ($('#pythonVersionSelector').val() === 'java') {
177+
$("#javaOptionsPane").show();
178+
} else {
179+
$("#javaOptionsPane").hide();
180+
}
176181
setAceMode(); // update syntax highlighting mode
177182
}
178183

‎v3/visualize.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@
150150
<button id="executeBtn" class="bigBtn" type="button">Visualize Execution</button>
151151
</p>
152152

153+
154+
<div id="javaOptionsPane" style="margin-top: 20px;">
155+
Extra Java options: pass in command-line arguments and feed user input to stdin (<i>coming soon!</i>)</i>
156+
</div>
157+
158+
153159
<div id="optionsPane" style="margin-top: 18px; line-height: 150%;">
154160
<select id="cumulativeModeSelector">
155161
<option value="false">hide exited frames (default)</option>

0 commit comments

Comments
 (0)