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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Getting started with JSON Form</title>
<link rel="stylesheet" style="text/css" href="deps/opt/bootstrap.css" />
</head>
<body>
<h1>Getting started with JSON Form</h1>
<form></form>
<div id="res" class="alert"></div>
<script type="text/javascript" src="deps/jquery.min.js"></script>
<script type="text/javascript" src="deps/underscore.js"></script>
<script type="text/javascript" src="deps/opt/jsv.js"></script>
<script type="text/javascript" src="lib/jsonform.js"></script>
<script type="text/javascript">
$('form').jsonForm({
"schema": {
"image_url1": {
"type": "string",
"title": "Image Url 1:"
},
"image_url2": {
"type": "string",
"title": "Image Url 2:"
},
"dimensions_match": {
"type": "string",
"title": "Match Dimensions To:",
"enum": [ "smaller", "larger" ]
},
"frames_match": {
"type": "string",
"title": "Match Frame Count To:",
"enum": [ "shorter", "longer" ]
},
"merge_direction": {
"type": "string",
"title": "Merge Direction:",
"enum": [ "right", "down" ]
},
"finalformat": {
"type": "string",
"title": "Merge Direction:",
"enum": [ "gif", "jpg", "png" ]
}
}
});
</script>
</body>
</html>
|