-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·106 lines (102 loc) · 4.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SketchOff Client App</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
h1 {
margin: 30px 0;
}
input, textarea {
font-family: Monaco, monospace;
}
pre {
background-color: #fff;
}
body {
margin-top: 10px;
}
a .panel-title {
color: black;
}
.string { color: green; }
.number { color: red; }
.boolean { color: blue; }
.null { color: magenta; }
.key { font-weight: bold; }
</style>
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<div class="container">
<!-- <h1>SketchOff Client App</h1> -->
<div class="panel panel-default" id="panel-input">
<div class="panel-heading">
<a data-toggle="collapse" data-parent="#panel-input" href="#collapse-input">
<h4 class="panel-title">Request</h4>
</a>
</div>
<div class="panel-body">
<div class="form-group">
<label for="request-line">Request Line</label>
<input class="form-control" id="request-line" value="/users/1">
</div>
<div id="collapse-input" class="panel-collapse collapse in">
<div class="form-group">
<label for="base-url">Base URL</label>
<div class="input-group">
<input class="form-control" id="base-url" value="https://api.sketch-off.com">
<span class="input-group-addon">/api/v1</span>
</div>
</div>
<div class="form-group">
<label for="auth-token">Authentication Token</label>
<div class="input-group">
<input class="form-control" id="auth-token" value="">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" id="btn-token">Get a Token (⌃G)</button>
</span>
</div><!-- /input-group -->
</div>
<div class="form-group">
<label for="request-body">Request Body</label>
<textarea id="request-body" class="form-control monospace-text" rows="3"></textarea>
</div>
<div class="form-group">
<label for="request-file">Attach File</label>
<input type="file" id="request-file"></input>
</div>
</div>
<button type="submit" class="btn btn-primary" id="btn-go">Go ( ⇧Enter )</button>
</div>
</div>
<div class="panel panel-default" id="panel-output">
<div class="panel-heading">
<a data-toggle="collapse" data-parent="#panel-input" href="#collapse-output">
<h4 class="panel-title">Response</h4>
</a>
</div>
<div id="collapse-output" class="panel-body panel-collapse collapse in">
<label>Response Header</label>
<pre><code id="response-header"></code></pre>
<label>Response Body</label>
<pre><code id="response-body"></code></pre>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/vendor/bootbox.min.js"></script>
<script src="js/vendor/bootstrap3-typeahead.js"></script>
<script src="js/main.js"></script>
</body>
</html>