forked from jsonform/jsonform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
132 lines (117 loc) · 4.27 KB
/
Copy pathindex.html
File metadata and controls
132 lines (117 loc) · 4.27 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>JSON Form Playground</title>
<style>
@import url("../deps/opt/bootstrap.css");
@import url("../deps/opt/spectrum.css");
h2 { font-weight: 200; }
.navbar-inner {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.row-fluid: { margin: 0.5em; }
.tagline {
padding: 10px;
font-weight: 200;
margin-top: -1em;
}
.tagline p { font-size: 16px; }
.navbar .factory a {
display: block;
padding: 10px 20px 10px;
background: url(http://factory.joshfire.com/css/images/topbar-beta-logo.png) 22px -3px no-repeat;
text-indent: -9999px;
width: 178px;
}
.footer {
margin-top: 40px;
padding: 10px 0.5em;
border-top: 1px solid #E5E5E5;
}
.footer p { margin-bottom: 0; }
#form select { width: auto; }
#form .add-on {
border: none;
background-color: inherit;
}
.expandable > legend:before {
content: '\25B8';
padding-right: 5px;
}
.expanded > legend:before {
content: '\25BE';
}
._jsonform-array-buttons {
margin-left: 25px;
}
.jsonform-required > label:after {
content: ' *';
color: red;
}
form.jsonform-hasrequired:after {
content: '* Required field';
display: block;
color: red;
padding-top: 1em;
}
</style>
</head>
<body>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">JSON Form Playground</a>
<div>
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="http://github.com/joshfire/jsonform/wiki">Documentation</a></li>
<li><a href="http://github.com/joshfire/jsonform">Project on github</a></li>
</ul>
<ul class="nav pull-right">
<li class="factory"><a href="http://factory.joshfire.com">Joshfire Factory</a>
</ul>
</div>
</div>
</div>
</div>
<div class="tagline">
<p>Choose a JSON Form example below and check the generated form. Refer to the <a href="http://github.com/joshfire/jsonform/wiki">documentation</a> for details and directions to extend the form.</p>
</div>
<div class="row-fluid">
<div class="span5">
<form id="form" class="form-vertical"></form>
</div>
<div class="span7">
<h2>Generated form</h2>
<div id="result" class="well">(please wait)</div>
</div>
</div>
<footer class="footer">
<p>Manufactured on the assembly line by <a href="http://factory.joshfire.com">Joshfire Factory</a> workers.</p>
<p><a href="http://github.com/joshfire/jsonform" title="JSON Form library code">Code</a> available on github, licensed under the <a href="https://raw.github.com/joshfire/jsonform/master/LICENSE">MIT License</a>.</p>
<p>See <a href="https://github.com/joshfire/jsonform/wiki#wiki-deps">dependencies</a> for the list of libraries and licenses used by JSON Form.</p>
</footer>
<script src="../deps/jquery.min.js"></script>
<script src="../deps/underscore.js"></script>
<script src="../deps/opt/jsv.js"></script>
<script src="../deps/opt/jquery.ui.core.js"></script>
<script src="../deps/opt/jquery.ui.widget.js"></script>
<script src="../deps/opt/jquery.ui.mouse.js"></script>
<script src="../deps/opt/jquery.ui.sortable.js"></script>
<script src="../deps/opt/bootstrap-dropdown.js"></script>
<script src="../deps/opt/spectrum.js"></script>
<script src="../deps/opt/ace/ace.js"></script>
<script src="../deps/opt/ace/mode-json.js"></script>
<script src="../deps/opt/ace/mode-html.js"></script>
<script src="../deps/opt/ace/mode-css.js"></script>
<script src="../deps/opt/ace/mode-javascript.js"></script>
<script src="../deps/opt/ace/mode-less.js"></script>
<script src="../deps/opt/ace/mode-markdown.js"></script>
<script src="../deps/opt/jquery.transloadit2.js"></script>
<script src="../lib/jsonform.js"></script>
<script src="playground.js"></script>
</body>
</html>