mitmproxy/libpathod/templates/response_previewform.html

17 lines
527 B
HTML
Raw Normal View History

<form class="form-inline" method="GET" action="/response_preview">
<input id="spec" name="spec" class="input-medium search-query" value="{{spec}}">
2012-04-29 09:22:00 +00:00
<input type="submit" class="btn" value="preview">
{% if not nocraft %}
<a href="#" id="submitspec" class="btn">go to</a>
{% endif %}
2012-04-29 09:22:00 +00:00
</form>
<script>
$(function(){
{% if not nocraft %}
2012-04-29 09:22:00 +00:00
$("#submitspec").click(function(){
document.location = "{{craftanchor}}" + $("#spec").val()
2012-04-29 09:22:00 +00:00
});
{% endif %}
2012-04-29 09:22:00 +00:00
});
</script>