-
Notifications
You must be signed in to change notification settings - Fork 0
/
numerology.html
88 lines (77 loc) · 2.68 KB
/
numerology.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
<!DOCTYPE html>
<html>
<head>
<title>Domain AI Powered Search</title>
<style>
body {
color: white;
background-color: black;
}
input[type="text"], input[type="email"], input[type="submit"] {
width: 300px;
height: 30px;
font-size: 16px;
}
</style>
</head>
<body>
<h3>Numerology Reading</h3>
<form id="myForm">
<label for="name">Your Name:</label>
<br>
<input type="text" id="name" name="entry.1556280638" required>
<br><br><br>
<label for="dob">Date of Birth:</label>
<br>
<input type="text" id="dob" name="entry.192250954" required>
<br><br><br>
<label for="email">Your Email:</label>
<br>
<input type="email" id="email" name="entry.302591477" required>
<br><br><br>
<label for="mobile">Mobile Number:</label>
<br>
<input type="text" id="mobile" name="entry.607720210" required>
<br><br><br>
<input type="submit" value="Read your Numerology" onclick="submitForm(event)">
</form>
<script>
// Submit form to Google Forms API
function submitForm(event) {
event.preventDefault(); // Prevent form submission if validation fails
const name = document.getElementById("name").value;
const dob = document.getElementById("dob").value;
const email = document.getElementById("email").value;
const mobile = document.getElementById("mobile").value;
if (name.trim() === '' || dob.trim() === '' || email.trim() === '' || mobile.trim() === '') {
alert('Please fill in all fields.');
return;
}
const formData = {
"entry.1556280638": name,
"entry.192250954": dob,
"entry.302591477": email,
"entry.607720210": mobile
};
fetch("https://securityinfinity-google-forms-rest-api.vercel.app/api/forms/1FAIpQLSdnwVK-ww4SgPK7148O3ROOjQBG_9n-SMqwvp_aMADTnYe_xQ", {
method: "POST",
body: JSON.stringify(formData),
headers: {
"Content-Type": "application/json"
}
})
.then(response => {
if (response.ok) {
window.location.replace("https://3d19aor94iyvdtbg7hqj3frb42.hop.clickbank.net");
// window.location.replace("https://0b8f4hg19mms7t941eicx7glco.hop.clickbank.net");
} else {
alert("There was a problem submitting the form. Please try again later.");
}
})
.catch(error => {
alert("There was a problem submitting the form. Please try again later.");
});
}
</script>
</body>
</html>