From 706589b59446c8be13fcf6daabc7c1a3d1e09aec Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 2 Jun 2015 03:38:31 -0700 Subject: Misc. fixes to trypandoc html. --- trypandoc/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'trypandoc') diff --git a/trypandoc/index.html b/trypandoc/index.html index 63c1f730c..88e020e32 100644 --- a/trypandoc/index.html +++ b/trypandoc/index.html @@ -29,11 +29,6 @@ function newpage() { window.location.href = href.replace(/([?].*)?$/,"?" + $.param({text: input, from: from, to: to})); }; -function process(res) { - $("#results").text(res.result); - $("#version").text(res.version); -} - $(document).ready(function() { var text = $.QueryString["text"]; $("#text").val(text); @@ -42,8 +37,12 @@ $(document).ready(function() { var to = $.QueryString["to"] || "html"; $("#to").val(to); if (text && text != "") { - $.getJSON("http://johnmacfarlane.net/cgi-bin/trypandoc", { from: from, to: to, text: text }, process); - $("#command").text("pandoc --from " + from + " --to " + to); + $.getJSON("/cgi-bin/trypandoc", { from: from, to: to, text: text }, + function(res) { + $("#results").text(res.result); + $("#version").text(res.version); + $("#command").text("pandoc --from " + from + " --to " + to); + }); }; $("#convert").click(newpage); }); @@ -58,13 +57,14 @@ $(document).ready(function() { footer { color: #555; text-align: center; margin: 1em; } p.version { color: #555; } button#convert { vertical-align: bottom; } + pre#command { margin-top: 1em; background-color: transparent; border: none; }
-

Try pandoc!

+

Try pandoc!


-- 
cgit v1.2.3