Skip to content

Commit 66e1480

Browse files
committed
Add an 'Open in IDE' button for the frontpage + spec examples
1 parent 5720093 commit 66e1480

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,10 @@ input.runButton, input.resetButton, input.argsButton, input.inputButton, input.e
15821582
z-index: 2;
15831583
cursor: pointer;
15841584
}
1585+
input.openInEditorButton {
1586+
float: right;
1587+
width: auto;
1588+
}
15851589
input.runButton:hover, input.resetButton:hover, input.argsButton:hover, input.inputButton:hover, input.editButton:hover,input.runButton[disabled]
15861590
{
15871591
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );

js/run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ $(document).ready(function()
233233
+ (args.length > 0 ? '<input type="button" class="argsButton" value="Args">' : '')
234234
+ (stdin.length > 0 ? '<input type="button" class="inputButton" value="Input">' : '')
235235
+ '<input type="button" class="runButton" value="Run">'
236-
+ '<input type="button" class="resetButton" value="Reset"></div>'
236+
+ '<input type="button" class="resetButton" value="Reset">'
237+
+ '<input type="button" class="openInEditorButton" value="Open in IDE"></div>'
237238
);
238239
});
239240

0 commit comments

Comments
 (0)