forked from mennovanslooten/mockJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtryit.html
More file actions
151 lines (129 loc) · 3.76 KB
/
tryit.html
File metadata and controls
151 lines (129 loc) · 3.76 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!doctype HTML>
<html>
<head>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/jquery.mockjson.js"></script>
<script type="text/javascript" src="js/tryit.js"></script>
<style type="text/css">
body, html {
padding:0;
margin:0;
color:#333;
color:#000;
background:#EEE;
font-family:'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;
font-family: Georgia, 'Hiragino Mincho Pro', serif;
font-size:14px;
line-height:1.5;
overflow:hidden;
}
h1, h2, h3, h4, h5, p, pre {
margin:0;
padding:8px 0 0;
font-weight:normal;
}
h1 {
font-size:30px;
line-height:60px;
padding:0 8px;
text-shadow:1px 1px #FFF;
}
textarea {
font-size:14px;
font-family: 'Courier New', monospace;
-moz-border-radius:4px;
}
#keywords,
#template,
#result,
.inner {
position:absolute;
left:0;
top:0;
bottom:0;
right:0;
}
.inner {
top:60px;
right:8px;
bottom:8px;
}
#template textarea,
#result textarea {
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
background:#FFF;
border:1px solid #CCC;
border-right-color:#EEE;
border-bottom-color:#EEE;
width:100%;
height:100%;
padding:8px;
}
#keywords {
right:80%;
}
#template {
left:20%;
right:40%;
}
#result {
left:60%;
}
.buttons {
position:absolute;
top:8px;
right:8px;
}
#keywords .inner {
padding:8px;
}
#keywords ul {
list-style:none;
margin:0;
padding:0;
}
#keywords ul li {
padding:0 0 0;
}
#keywords p {
margin:0;
padding:8px 0 0;
}
</style>
<title>mockJSON - a jQuery plugin for mocking JSON and JSONP requests</title>
</head>
<body>
<div id="keywords">
<h1>mockJSON</h1>
<div class="inner">
<p class="intro">MockJSON is a plugin for jQuery that can hijack
JSON and JSONP requests and respond with randomly generated JSON
data. More info <a href="index.html">can be found here</a>.</p>
<p>Enter your JSON template in the area on the left and click <em>generate</em>
to see mockJSON in action.</p>
<h2>Keywords</h2>
<ul>
</ul>
</div>
</div>
<div id="template">
<h1>Template</h1>
<div class="inner">
<textarea></textarea>
</div>
<div class="buttons">
<button id="button-template1">template 1</button>
<button id="button-template2">template 2</button>
<button id="button-generate">generate!</button>
</div>
</div>
<div id="result">
<h1>Result</h1>
<div class="inner">
<textarea></textarea>
</div>
</div>
</body>
</html>