trypandoc: move Convert button, display raw command.
This commit is contained in:
parent
a367107483
commit
1ebfa6bb84
1 changed files with 9 additions and 3 deletions
|
@ -43,6 +43,7 @@ $(document).ready(function() {
|
||||||
$("#to").val(to);
|
$("#to").val(to);
|
||||||
if (text && text != "") {
|
if (text && text != "") {
|
||||||
$.getJSON("http://johnmacfarlane.net/cgi-bin/trypandoc", { from: from, to: to, text: text }, process);
|
$.getJSON("http://johnmacfarlane.net/cgi-bin/trypandoc", { from: from, to: to, text: text }, process);
|
||||||
|
$("#command").text("pandoc --from " + from + " --to " + to);
|
||||||
};
|
};
|
||||||
$("#convert").click(newpage);
|
$("#convert").click(newpage);
|
||||||
});
|
});
|
||||||
|
@ -62,10 +63,17 @@ $(document).ready(function() {
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h1>Try <a href="http://johnmacfarlane.net/pandoc/">pandoc</a>!</h1>
|
<div class="col-md-6">
|
||||||
|
<h1>Try <a href="http://johnmacfarlane.net/pandoc/">pandoc</a>!</h1>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<pre id="command"></pre>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<button class="btn btn-primary btn-xs" id="convert">Convert</button>
|
||||||
|
|
||||||
<label for="from">
|
<label for="from">
|
||||||
from
|
from
|
||||||
</label>
|
</label>
|
||||||
|
@ -122,8 +130,6 @@ $(document).ready(function() {
|
||||||
<option value="S5">S5</option>
|
<option value="S5">S5</option>
|
||||||
<option value="slideous">Slideous</option>
|
<option value="slideous">Slideous</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button class="btn btn-primary btn-xs" id="convert">Convert</button>
|
|
||||||
<br/>
|
<br/>
|
||||||
<pre id="results"></pre>
|
<pre id="results"></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue