-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
159 lines (147 loc) · 6.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Form-Builder</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./themes/default.imports.css">
<link rel="stylesheet" href="./themes/default.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WZHPSHT');</script>
<!-- End Google Tag Manager -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/split.js/1.5.10/split.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/uglipop.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/themes/prism-okaidia.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
<link rel="stylesheet" href="main.css">
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WZHPSHT"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="toolbar">
<img src="form-builder-logo.svg" height="42px">
<span id="gethtml">Get HTML</span>
<span id="icons"><a href="https://fontawesome.com/icons?d=gallery&m=free" target="_blank">Icons</a></span>
<span id="help" class="js-cd-panel-trigger" data-panel="main">Help</span>
<span style="float:right;margin-top: 6px;margin-right: 1px;"><a href="https://www.producthunt.com/posts/form-builder?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-form-builder" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=162201&theme=light" alt="Form-Builder - Build stunning mobile-friendly forms with no AI | Product Hunt Embed" style="width: 250px; height: 54px;" width="250px" height="54px" /></a></span>
</div>
<div id="main" class="flex">
<div id="add-panel">
<h4>ADD</h4>
<div class="add-item" data-fieldname="Text Field">Text</div>
<div class="add-item" data-fieldname="Email Field">Email</div>
<div class="add-item" data-fieldname="Phone Field">Phone</div>
<div class="add-item" data-fieldname="Radio Group">Radio</div>
<div class="add-item" data-fieldname="URL Field">URL</div>
<div class="add-item" data-fieldname="Password Field">Password</div>
<div class="add-item" data-fieldname="Textarea Field">Textarea</div>
<div class="add-item" data-fieldname="Select Option">Select Option</div>
<div class="add-item" data-fieldname="Radio Group">Radio Group</div>
<div class="add-item" data-fieldname="Checkbox Group">Checkbox Group</div>
<div class="add-item" data-fieldname="Google Address Field">Google Address</div>
</div>
<div id="editor-wrapper">
<!--<h4>EDIT</h4>-->
<!--<button id="run-button" onclick="parseForm()">Run</button>-->
<div id="editor">
<pre>form Contact Form
method post
autocomplete on
action https://www.form-data.com/fb
header Contact Us
section Personal Details
field
name name
type textbox
label Name
icon fas fa-user-tie
required
placeholder Please fill your name
value John Doe
validations
maxlength 40
minlength 2
end validations
end field
field
name email
type email
icon fas fa-envelope
required
label Email
placeholder Please fill your email
hint We hate spam too. We will never spam you.
end field
section Details
field
name message
type textarea
icon fas fa-comment-alt
required
label Your message
placeholder what would you like to say
end field
field
type submit
label Submit
end field
end form</pre>
</div>
</div>
<div id="form-result">
<!--<h4>FORM</h4>-->
<div id="form" class="fb-theme-default"></div>
</div>
</div> <!-- end main section -->
<div class="cd-panel cd-panel--from-right js-cd-panel-main"> <!-- side panel -->
<header class="cd-panel__header">
<h2>How to use the builder</h2>
<a href="#0" class="cd-panel__close js-cd-close">Close</a>
</header>
<div class="cd-panel__container">
<div class="cd-panel__content">
<script src="help.js"></script>
</div> <!-- cd-panel__content -->
</div> <!-- cd-panel__container -->
</div> <!-- cd-panel -->
<div id="html-result">
<div id="html-result-editor">
<div id="copyToClipboard" >COPY TO CLIPBOARD</div>
<pre><code class="language-html"><html></html></code></pre>
</div>
</div>
<!-- build:ace -->
<script src="ace/src/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="ace/src/ext-language_tools.js"></script>
<!-- endbuild -->
<script src="https://unpkg.com/[email protected]/lib/nearley.js"></script>
<script src="./parser/grammar.js"></script>
<script src="./builder.js"></script>
<script src="editor-init.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/prism-core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/prism-markup.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script>Prism.plugins.autoloader.languages_path = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/'</script>
<script>
Split(['#add-panel','#editor-wrapper', '#form-result'], {
sizes:[1,9,90],
minSize:[150,500],
gutter: function (index, direction) {
var gutter = document.createElement('div')
gutter.className = 'gutter gutter-' + direction
gutter.style.height = '100%'
return gutter
},
gutterSize: 6,
})
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDEFK0tx3fsnJgoc7iAotM1CUHJ2ZRLQwU&libraries=places&callback=fb_form.initAutocomplete"
type="text/javascript"></script>
</body>
</html>