From 38d060e216add48ef7a7da0bb984c416df659c15 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sat, 2 Sep 2017 16:00:04 -0400 Subject: [PATCH] Remove keybindings. Also do a better job of displaying evalall --- templates/editor.html | 2 ++ templates/page.html.tt | 2 +- templates/viewer.html | 30 +++++++++++++++++++++++------- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/templates/editor.html b/templates/editor.html index 3d3aeeb..c0d32e5 100755 --- a/templates/editor.html +++ b/templates/editor.html @@ -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'); diff --git a/templates/page.html.tt b/templates/page.html.tt index 241a54d..0951b99 100755 --- a/templates/page.html.tt +++ b/templates/page.html.tt @@ -12,7 +12,7 @@ - + Perlbot Pastebin [% PROCESS body_style %] diff --git a/templates/viewer.html b/templates/viewer.html index 79e45f4..e05f67e 100755 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -18,7 +18,11 @@ .options label:not(:first-child) { 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 @@

           
         
-	[% FOR lang IN eval.keys %]
         
-
-

Program Output as [% lang %]:

-
[% eval.$lang | html %]
-
+ [% IF eval.keys.size == 0 %] + ZERO + [% ELSIF eval.keys.size == 1 %] +
+

Program Output

+ [% FOR lang IN eval.keys %] +
[% eval.$lang | html %]
+ [% END %] +
+ [% ELSE %] +
+ + + [% FOR lang IN eval.keys.sort %] + + [% END %] +
LanguageOutput
[% lang %]
[% eval.$lang | html %]
+ [% END %]
- [% END %]