change status bar text to better fit on small screens
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
*/
|
*/
|
||||||
updateStatusBar = function (e) {
|
updateStatusBar = function (e) {
|
||||||
var cursor_position = editor.getCursorPosition();
|
var cursor_position = editor.getCursorPosition();
|
||||||
$('.statusbar .position').text('Line: ' + (1 + cursor_position.row) + ', Column: ' + cursor_position.column);
|
$('.statusbar .position').text('Line: ' + (1 + cursor_position.row) + ', Col: ' + cursor_position.column);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
success: function (res, status, jqXHR) {
|
success: function (res, status, jqXHR) {
|
||||||
if (res.memory || res.duration) {
|
if (res.memory || res.duration) {
|
||||||
$('.statusbar .runtime-info').text('Mem usage: ' + res.memory + ' MB, Time: ' + res.duration + 'ms');
|
$('.statusbar .runtime-info').text('Mem: ' + res.memory + ' MB, Time: ' + res.duration + ' ms');
|
||||||
} else {
|
} else {
|
||||||
$('.statusbar .runtime-info').text('');
|
$('.statusbar .runtime-info').text('');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<a id="btn-ren">ren</a>
|
<a id="btn-ren">ren</a>
|
||||||
<a id="btn-del">del</a>
|
<a id="btn-del">del</a>
|
||||||
|
|
|
|
||||||
<span class="position">Line: 1, Column: 1</span>
|
<span class="position">Line: 1, Col: 1</span>
|
||||||
<span class="runtime-info"></span>
|
<span class="runtime-info"></span>
|
||||||
<input type="submit" name="subm" value="Run!"/>
|
<input type="submit" name="subm" value="Run!"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user