mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 14:17:26 -04:00
Remove keybindings. Also do a better job of displaying evalall
This commit is contained in:
parent
c7a9d182d3
commit
38d060e216
3 changed files with 26 additions and 8 deletions
|
@ -208,6 +208,8 @@
|
|||
editor = ace.edit("editor");
|
||||
//editor.setTheme("ace/theme/twilight");
|
||||
|
||||
//safely delete all bindings
|
||||
editor.keyBinding.$defaultHandler.commandKeyBinding = {}
|
||||
|
||||
$("#language").on('change', function () {
|
||||
var language = $('#language option').filter(':selected').attr('data-lang');
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<link rel="stylesheet" href="/static/bs-336/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/static/bs-336/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
|
||||
<script src="/static/bs-336/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
||||
<!-- <script src="/static/bs-336/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> -->
|
||||
|
||||
<title>Perlbot Pastebin</title>
|
||||
[% PROCESS body_style %]
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
padding-left: 2em;
|
||||
}
|
||||
|
||||
td, th {border-left: thin solid black; border-top: thin solid black; margin: 1px;}
|
||||
td pre {border-radius: 0; border: none;}
|
||||
table {border-right: thin solid black; border-bottom: thin solid black}
|
||||
|
||||
@font-face {
|
||||
font-family: "AnonymousPro";
|
||||
src: url("/static/fonts/AnonymousPro-Regular.woff2") format('woff2');
|
||||
|
@ -69,14 +73,26 @@
|
|||
<pre id="editor"></pre>
|
||||
</div>
|
||||
</div>
|
||||
[% FOR lang IN eval.keys %]
|
||||
<div class="row">
|
||||
[% IF eval.keys.size == 0 %]
|
||||
ZERO
|
||||
[% ELSIF eval.keys.size == 1 %]
|
||||
<div id="eval" class="col-md-12">
|
||||
<h3>Program Output as [% lang %]:</h3>
|
||||
<h3>Program Output</h3>
|
||||
[% FOR lang IN eval.keys %]
|
||||
<pre>[% eval.$lang | html %]</pre>
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<div class="col-md-1"></div>
|
||||
<table id="eval" class="col-md-8">
|
||||
<tr><th>Language</th><th>Output</th></tr>
|
||||
[% FOR lang IN eval.keys.sort %]
|
||||
<tr><td style="width: 1px; white-space: nowrap; padding-right: 5em;">[% lang %]</td><td><pre>[% eval.$lang | html %]</pre></td></tr>
|
||||
[% END %]
|
||||
</table>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<input value="Fork and Edit" type="submit" id="submit" />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue