diff options
Diffstat (limited to 'libpathod/templates/previewform.html')
| -rw-r--r-- | libpathod/templates/previewform.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpathod/templates/previewform.html b/libpathod/templates/previewform.html new file mode 100644 index 00000000..42502ba7 --- /dev/null +++ b/libpathod/templates/previewform.html @@ -0,0 +1,12 @@ +<form class="well form-search" method="GET" action="/preview"> + <input id="spec" style="width: 30em;" name="spec" class="input-medium search-query" value="{{spec}}"> + <input type="submit" class="btn" value="preview"> + <a href="#" id="submitspec" class="btn">go</a> +</form> +<script> + $(function(){ + $("#submitspec").click(function(){ + document.location = "/p/" + $("#spec").val() + }); + }); +</script> |
