diff options
author | Mike Tzou <Chocobo1@users.noreply.github.com> | 2020-03-25 23:48:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 08:48:48 -0700 |
commit | 349b5fd2ede7f850aee2a9f14566cae487931cbe (patch) | |
tree | 8c8c3e3fb3bd69e77791a6d382514026df84f93f | |
parent | 1b0fec1f308cddfedaa0ecad5192d2a9af2e17e7 (diff) | |
download | pandoc-349b5fd2ede7f850aee2a9f14566cae487931cbe.tar.gz |
trypandoc: Add standalone option to the command text (#6210)
* trypandoc: Add standalone option to the command text
* trypandoc: Update 3rd party libraries
Those links are taken as-is from the library website.
-rw-r--r-- | trypandoc/index.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/trypandoc/index.html b/trypandoc/index.html index 2b42ab179..792f522eb 100644 --- a/trypandoc/index.html +++ b/trypandoc/index.html @@ -9,9 +9,9 @@ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> - <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> - <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"> - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> + <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script> "use strict"; (function($) { // http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values @@ -44,14 +44,17 @@ $(document).ready(function() { $("#from").val(from); var to = $.QueryString["to"] || "html"; $("#to").val(to); - var standalone = ($.QueryString["standalone"] === "1") ? "1" : "0" + var standalone = ($.QueryString["standalone"] === "1") ? "1" : "0"; $("#standalone").prop('checked', (standalone === "1")); if (text && text != "") { $.getJSON("/cgi-bin/trypandoc", { from: from, to: to, text: text, standalone: standalone }, function(res) { $("#results").text(res.html); $("#version").text(res.version); - $("#command").text("pandoc --from " + from + " --to " + to); + var commandString = "pandoc" + + ((standalone === "1") ? " --standalone" : "") + + " --from " + from + " --to " + to; + $("#command").text(commandString); }); }; $("#convert").click(newpage); |