1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 22:26:01 -04:00

Remove keybindings. Also do a better job of displaying evalall

This commit is contained in:
Ryan Voots 2017-09-02 16:00:04 -04:00
parent c7a9d182d3
commit 38d060e216
3 changed files with 26 additions and 8 deletions

View file

@ -208,6 +208,8 @@
editor = ace.edit("editor"); editor = ace.edit("editor");
//editor.setTheme("ace/theme/twilight"); //editor.setTheme("ace/theme/twilight");
//safely delete all bindings
editor.keyBinding.$defaultHandler.commandKeyBinding = {}
$("#language").on('change', function () { $("#language").on('change', function () {
var language = $('#language option').filter(':selected').attr('data-lang'); var language = $('#language option').filter(':selected').attr('data-lang');

View file

@ -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.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"> <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> <title>Perlbot Pastebin</title>
[% PROCESS body_style %] [% PROCESS body_style %]

View file

@ -19,6 +19,10 @@
padding-left: 2em; 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-face {
font-family: "AnonymousPro"; font-family: "AnonymousPro";
src: url("/static/fonts/AnonymousPro-Regular.woff2") format('woff2'); src: url("/static/fonts/AnonymousPro-Regular.woff2") format('woff2');
@ -69,14 +73,26 @@
<pre id="editor"></pre> <pre id="editor"></pre>
</div> </div>
</div> </div>
[% FOR lang IN eval.keys %]
<div class="row"> <div class="row">
<div id="eval" class="col-md-12"> [% IF eval.keys.size == 0 %]
<h3>Program Output as [% lang %]:</h3> ZERO
<pre>[% eval.$lang | html %]</pre> [% ELSIF eval.keys.size == 1 %]
</div> <div id="eval" class="col-md-12">
<h3>Program Output</h3>
[% FOR lang IN eval.keys %]
<pre>[% eval.$lang | html %]</pre>
[% 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>
[% END %]
<div class="panel-footer"> <div class="panel-footer">
<input value="Fork and Edit" type="submit" id="submit" /> <input value="Fork and Edit" type="submit" id="submit" />
</div> </div>