-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
315 lines (286 loc) · 11.6 KB
/
form.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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI-based Solutions Inquiry Form</title>
<style>
body {
font-family: Arial, sans-serif;
}
.form-container {
width: 100%;
max-width: 600px;
margin: 0 auto;
}
h3 {
font-size: 1.5em;
/* Adjust the font size for heading tags */
font-weight: bold;
color: #091E3E;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
/* Adjust the font weight for label tags */
color: #091E3E;
/* Adjust the color for label tags */
}
.form-group label {
display: block;
margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.form-group textarea {
resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: #091E3E;
box-shadow: 0 0 5px rgba(9, 30, 62, 0.5);
}
.form-group button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
width: 100%;
margin-top: 15px;
}
.form-group button:hover {
background-color: #45a049;
}
.collapsible {
/* background-color: #eee; */
/* color: #444; */
/* cursor: pointer; */
/* padding: 18px; */
width: 100%;
border: none;
/* text-align: left; */
/* outline: none; */
font-size: 16px;
}
.content {
/* padding: 0 18px; */
display: none;
/* overflow: hidden; */
/* background-color: #f1f1f1; */
}
.popup {
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
display: none;
}
.popup-content {
background-color: white;
margin: 10% auto;
padding: 20px;
border: 1px solid #888888;
width: 30%;
font-weight: bolder;
}
.popup-content button {
display: block;
margin: 0 auto;
}
.show {
display: block;
}
h1 {
color: green;
}
</style>
</head>
<body>
<div class="form-container">
<form id="ai-solutions-form" name="submit-to-google-sheet" method="post" id="sheetdb-form">
<h3>Contact Information</h3>
<div class="form-group">
<label for="full-name">Full Name</label>
<input type="text" id="full-name" name="full-name" required>
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone" required>
</div>
<div class="form-group">
<label for="company-name">Company Name (if applicable)</label>
<input type="text" id="company-name" name="company-name">
</div>
<div class="form-group">
<label for="position">Position/Role (if applicable)</label>
<input type="text" id="position" name="position">
</div>
<hr>
<h3>Inquiry Details</h3>
<div class="form-group">
<label for="business-description">Describe your business or project briefly.</label>
<textarea id="business-description" name="business-description" rows="3"></textarea>
</div>
<div class="form-group">
<label for="ai-solutions">What specific AI-based solutions or services are you interested in?</label>
<textarea id="ai-solutions" name="ai-solutions" rows="3"></textarea>
</div>
<hr>
<h3>Project Scope</h3>
<div class="form-group">
<label for="main-goal">What is the main goal or objective of your project?</label>
<textarea id="main-goal" name="main-goal" rows="3"></textarea>
</div>
<div class="form-group">
<label for="specific-problem">Do you have a specific problem or challenge that you want the AI solution
to address?</label>
<textarea id="specific-problem" name="specific-problem" rows="3"></textarea>
</div>
<hr>
<button type="button" class="collapsible">
<center>Open Collapsible</center>
</button>
<div class="content">
<h3>Timeline</h3>
<div class="form-group">
<label for="expected-timeline">What is your expected timeline for starting and completing the
project?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<div class="form-group">
<label for="expected-timeline">Are there any specific deadlines or milestones you need to
meet?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3> Budget</h3>
<div class="form-group">
<label for="expected-timeline">Do you have a budget range allocated for this project?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Technical Requirements</h3>
<div class="form-group">
<label for="expected-timeline">Are there any specific technical requirements or integrations you
need
for the AI solution?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<div class="form-group">
<label for="expected-timeline">Do you have any preferences regarding the technology stack or
platforms
to be used?
</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Previous Experience</h3>
<div class="form-group">
<label for="expected-timeline">Have you implemented AI solutions in your business before?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<div class="form-group">
<label for="expected-timeline">If yes, please share your previous experiences and outcomes.
</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Competitor Analysis</h3>
<div class="form-group">
<label for="expected-timeline">Are there any competitors using similar AI solutions that you find
noteworthy?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<div class="form-group">
<label for="expected-timeline">What sets your business apart from competitors in terms of AI
implementation?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Data Availability</h3>
<div class="form-group">
<label for="expected-timeline">Do you currently have the necessary data for implementing AI
solutions,
or will data acquisition be part of the project?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Legal and Ethical Considerations</h3>
<div class="form-group">
<label for="expected-timeline">Are there any legal or ethical considerations that should be taken
into
account in the development of the AI solution?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Additional Comments or Questions</h3>
<div class="form-group">
<label for="expected-timeline">Is there anything else you would like to share or ask about your
project?</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
<hr>
<h3>Relevant document upload</h3>
<div class="form-group">
<label for="expected-timeline">Like Project Scope Document
</label>
<textarea id="expected-timeline" name="expected-timeline" rows="3"></textarea>
</div>
</div>
<div class="form-group">
<button type="submit">Submit</button>
</div>
</form>
</div>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function () {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
const msg = document.getElementById('msg')
const scriptURL = 'https://script.google.com/macros/s/AKfycbxfGjN_d0EXSQw-8Q3FmVAEAzignyuxvuP18WnJjPP3UpB6tS2ELs0ZIov4K-W8p9ka/exec'
const form = document.forms['submit-to-google-sheet']
form.addEventListener('submit', e => {
e.preventDefault();
fetch(scriptURL, { method: 'POST', body: new FormData(form) })
.then(response => {
console.log('Success!', response);
// Redirect to https://edfoal.com/ after successful submission
window.location.href = 'https://edfoal.com/';
})
.catch(error => {
console.error('Error!', error.message);
// Handle error if needed
});
});
</script>
</body>
</html>