git.iko.soy/typeable/pandoc
on master help sign in
trypandoc: move Convert button, display raw command.
commit1ebfa6bb84e2c1df43d2e41a549ee931e6b25a90 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 2 Jun 2015, 12:08 (11 years ago) parenta367107
1 file changed+9−3
trypandoc/index.html+9−3
trypandoc/index.html+9−3
@@ -43,6 +43,7 @@ $(document).ready(function() {
4343 $("#to").val(to);
4444 if (text && text != "") {
4545 $.getJSON("http://johnmacfarlane.net/cgi-bin/trypandoc", { from: from, to: to, text: text }, process);
46+ $("#command").text("pandoc --from " + from + " --to " + to);
4647 };
4748 $("#convert").click(newpage);
4849});
@@ -62,10 +63,17 @@ $(document).ready(function() {
6263<body>
6364<div class="container">
6465 <div class="row">
65− <h1>Try <a href="http://johnmacfarlane.net/pandoc/">pandoc</a>!</h1>
66+ <div class="col-md-6">
67+ <h1>Try <a href="http://johnmacfarlane.net/pandoc/">pandoc</a>!</h1>
68+ </div>
69+ <div class="col-md-6">
70+ <pre id="command"></pre>
71+ </div>
6672 </div>
6773 <div class="row">
6874 <div class="col-md-6">
75+ <button class="btn btn-primary btn-xs" id="convert">Convert</button>
76+ &nbsp;
6977 <label for="from">
7078 from
7179 </label>
@@ -122,8 +130,6 @@ $(document).ready(function() {
122130 <option value="S5">S5</option>
123131 <option value="slideous">Slideous</option>
124132 </select>
125− &nbsp;
126− <button class="btn btn-primary btn-xs" id="convert">Convert</button>
127133 <br/>
128134 <pre id="results"></pre>
129135 </div>