mitmproxy/libpathod/templates/response_previewform.html

24 lines
636 B
HTML
Raw Normal View History

<form class="form-inline" method="GET" action="/response_preview">
<input
style="width: 20em"
id="spec"
name="spec"
class="input-medium search-query"
value="{{spec}}"
placeholder="code[msg]:[features]"
>
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>