-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
281 lines (235 loc) · 11.7 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html lang="en">
<!-- begin::Head -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<meta charset="utf-8" />
<title>Form Code Generator</title>
<meta name="description" content="Base form control examples">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--begin::Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700">
<!--end::Fonts -->
<!--begin::Global Theme Styles(used by all pages) -->
<link href="assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
<!--end::Global Theme Styles -->
<!--begin::Layout Skins(used by all pages) -->
<!--end::Layout Skins -->
<link rel="stylesheet" href="assets/css/styles/github.css">
<link rel="stylesheet" href="assets/css/custom.css">
<link rel="shortcut icon" href="assets/media/logos/favicon.ico" />
</head>
<!-- end::Head -->
<!-- begin::Body -->
<body
class="kt-page--loading-enabled kt-page--loading kt-quick-panel--right kt-demo-panel--right kt-offcanvas-panel--right kt-header--fixed kt-header--minimize-menu kt-header-mobile--fixed kt-subheader--enabled kt-subheader--transparent kt-aside--enabled kt-aside--left kt-aside--fixed kt-page--loading">
<!-- end:: Header Mobile -->
<div class="kt-grid kt-grid--hor kt-grid--root">
<div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--ver kt-page">
<div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor kt-wrapper" id="kt_wrapper">
<!-- begin:: Header -->
<div id="kt_header" class=" " >
<div class="kt-container kt-container--fluid ">
<!-- begin: Header Menu -->
<div style="margin: auto 0;text-align: center;width: 100%;font-size: 30px;font-weight: bold;" >
Form Code Generator
</div>
<button class="kt-header-menu-wrapper-close" id="kt_header_menu_mobile_close_btn"><i class="la la-close"></i></button>
<!-- end: Header Menu -->
</div>
</div>
<!-- end:: Header -->
<div class="kt-body kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor kt-grid--stretch" id="kt_body">
<div class="kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
<!-- begin:: Subheader -->
<div class="kt-subheader kt-grid__item" id="kt_subheader">
<div class="kt-container ">
<div class="kt-subheader__toolbar">
<div class="kt-subheader__wrapper">
</div>
</div>
</div>
</div>
<!-- end:: Subheader -->
<!-- begin:: Content -->
<div class="kt-container kt-grid__item kt-grid__item--fluid">
<div class="row">
<div class="col-md-6">
<!--begin::Portlet-->
<div class="kt-portlet">
<div class="kt-portlet__head">
<div class="kt-portlet__head-label row" style="width:100%">
<label class="col-3 col-form-label">Title</label>
<div class="col-9">
<input type="text" value="" class="form-control" placeholder="Enter Label" aria-describedby="basic-addon1" oninput="changeTitle(this.value)">
</div>
</div>
</div>
<!--begin::Form-->
<form class="kt-form kt-form--label-right input-controls-form" oninput="readFormData(this)" onclick="readFormData(this)" id="controlForm">
<div class="kt-portlet__body">
<div class="form-group row">
<label for="selectType" class=" col-3 col-form-label">Type</label>
<select class="form-control col-9" id="selectType" onchange="changeType()">
<option value="text">Text</option>
<option value="textarea">Textarea</option>
<option value="inputgroup">Input Group</option>
<option value="select">Select</option>
<option value="number">Number</option>
<option value="color">Color</option>
<option value="range">Range</option>
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="switch">Switch</option>
</select>
</div>
<div id="controls" class="activeComponent1">
</div>
</div>
<div class="kt-portlet__foot" oninput="createFooter()" onchange="createFooter()" onclick="createFooter()">
<div class="form-group row">
<label class="col-3 col-form-label">Align</label>
<div class="col-9">
<div class="kt-radio-inline">
<label class="kt-radio">
<input type="radio" name="radioFooter" value="left">Left<span></span>
</label>
<label class="kt-radio">
<input type="radio" name="radioFooter" checked value="center">Center<span></span>
</label>
<label class="kt-radio">
<input type="radio" name="radioFooter" value="right">Right<span></span>
</label>
</div>
<span class="form-text text-muted"></span>
</div>
</div>
<div id="componentOptionsFooter">
<div class="form-group row" id="optionFooter1"><label class="col-3 col-form-label">Button 1</label>
<div class="input-group col-9"><input type="text" class="form-control" placeholder="Enter Button Title">
<div class="input-group-append"><button class="btn btn-brand " type="button" onclick="addOption(1,'Button','footer')"> <span class="fa fa-plus"></span></button></div>
<div class="input-group-append"><button class="btn btn-danger" type="button" onclick="deleteOption(1,'Button','footer')"><span class="fa fa-times"></span></button></div>
</div>
</div>
</div>
</div>
</form>
<!--end::Form-->
</div>
<!--end::Portlet-->
</div>
<div class="col-md-6">
<!--begin::Portlet-->
<div class="kt-portlet">
<div class="kt-portlet__head">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title" id="formTitle">
Output
</h3>
</div>
</div>
<!--begin::Form-->
<form class="kt-form">
<div class="kt-portlet__body output">
<div class="outputComponent" id="component1" style="border-left: 5px solid rgb(89, 29, 241); padding-left: 10px;" onmouseenter="addOutputEditOptions(1);" onmouseleave="removeOutputEditOptions(1);">
</div>
</div>
<div class="buttonsFooter">
</div>
<div class="kt-portlet__foot">
<div class="kt-form__actions">
<center><button type="reset" class="btn btn-brand" onclick="generateCode()">Generate Code</button></center>
</div>
</div>
</form>
<!--end::Form-->
</div>
<!--end::Portlet-->
</div>
</div>
<div class="kt-portlet">
<div class="kt-portlet__body">
<div class="kt-infobox">
<div class="kt-infobox__header">
<h2 class="kt-infobox__title">HTML</h2>
</div>
<div class="kt-infobox__body">
<div class="kt-infobox__section">
<div class="kt-infobox__content" style="position:relative;">
<button type="button" class="btn btn-brand" onclick="copyHTML(this)" name="button" align="right" style="position:absolute;right:0">Copy Code</button>
<br>
<pre>
<code class="language-html prettyprint lang-html" >
</code>
</pre>
</div>
</div>
</div>
</div>
<div class="kt-infobox">
<div class="kt-infobox__header">
<h2 class="kt-infobox__title">JS</h2>
</div>
<div class="kt-infobox__body">
<div class="kt-infobox__section">
<div class="kt-infobox__content" style="position:relative;">
<button type="button" class="btn btn-brand" onclick="copyJS(this)" name="button" align="right" style="position:absolute;right:0">Copy Code</button>
<br>
<pre>
<code class="language-js">
</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end:: Content -->
</div>
</div>
</div>
</div>
</div>
<!-- end:: Page -->
<!-- begin::Global Config(global config for global JS sciprts) -->
<script>
var KTAppOptions = {
"colors": {
"state": {
"brand": "#591df1",
"light": "#ffffff",
"dark": "#282a3c",
"primary": "#5867dd",
"success": "#34bfa3",
"info": "#36a3f7",
"warning": "#ffb822",
"danger": "#fd3995"
},
"base": {
"label": ["#c5cbe3", "#a1a8c3", "#3d4465", "#3e4466"],
"shape": ["#f0f3ff", "#d9dffa", "#afb4d4", "#646c9a"]
}
}
};
</script>
<!-- end::Global Config -->
<!--begin::Global Theme Bundle(used by all pages) -->
<script src="assets/plugins/global/plugins.bundle.js" type="text/javascript"></script>
<script src="assets/js/scripts.bundle.js" type="text/javascript"></script>
<script type="text/javascript" src="assets/js/custom.js"></script>
<script type="text/javascript" src="assets/js/highlight.js"></script>
<script src="assets/js/bootstrap-select.js" type="text/javascript"></script>
<script>
document.querySelectorAll('pre code').forEach((block) => {
block.innerHTML = block.innerHTML.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
hljs.highlightBlock(block);
});
</script>
<!--end::Global Theme Bundle -->
<script src="assets/js/beautify-html.js"></script>
<script src="assets/js/beautify-js.js"></script>
</body>
<!-- end::Body -->
</html>