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
152
153
154
155
156
157
158
159
160
161
162
163
|
<!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" />-->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style type="text/css">
#result{
position:absolute;
top 0;
z-index:100;
height:700px;
width:1000px;
background-color: rgba(22,22,22,0.2);
}
form{
margin-left:10px;
}
.pb_links{
display: inline-block;
font-size: 2em;
color:active: #999999;
color: #00000;
}
#links{
border-bottom:1px solid black;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="links">
<span class="pb_links">links:</span>
<a class="pb_links" href="http://asdf.us/im/gallery">gallery</a>
<a class="pb_links" href="http://asdf.us/imgradient">imgradient</a>
<a class="pb_links" href="http://asdf.us/imgrid">imgrid</a>
<a class="pb_links" href="http://asdf.us/impattern">impattern</a>
<a class="pb_links" href="http://asdf.us/imlandscape">imlandscape</a>
<a class="pb_links" href="http://asdf.us/imbreak">imbreak</a>
<a class="pb_links" href="http://asdf.us/shader">shader</a>
</div>
<h1>
<a href="">
<img src="img/logo.jpg" /></br><img src="img/concat.png" />
</a>
</h1>
<h2>Small Modal</h2>
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Small Modal</button>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>This is a small modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="gridSystemModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
</div>
<div class="row">
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
<div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
</div>
<div class="row">
<div class="col-sm-9">
Level 1: .col-sm-9
<div class="row">
<div class="col-xs-8 col-sm-6">
Level 2: .col-xs-8 .col-sm-6
</div>
<div class="col-xs-4 col-sm-6">
Level 2: .col-xs-4 .col-sm-6
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<form></form>
<div id="res" class="alert"></div>
<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">
$(document).ready(function(){
$('.modal').modal();
})
$('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" ]
},
"username": {
"type": "string",
"title": "Username:"
}
},
"onSubmitValid": function (values) {
// "values" follows the schema, yeepee!
console.log(values);
}
});
</script>
</body>
</html>
|