-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (54 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div style="width: 80%;margin: 8%;padding: 1%; background:rgb(156, 205, 233)" method="GET">
<div class="form-group">
<label>Name</label>
<input class="form-control" id="nm">
<small id="emailHelp" class="form-text text-muted"></small>
</div>
<div class="form-group">
<label>Email address</label>
<input type="email" class="form-control" id="ee">
<small id="emailHelp" class="form-text text-muted">We'll never share your email & phone no. with anyone
else.</small>
</div>
<div class="form-group">
<label>Phone Number</label>
<input class="form-control" id="nn">
<small id="emailHelp" class="form-text text-muted">input 10 digit phone number without spaces.</small>
</div>
<button id="btn" class="btn btn-primary">Submit</button>
</div>
<script>
let hh = document.getElementById("btn")
hh.onclick = () => {
let hh = document.querySelector("#btn")
let name = document.getElementById("nm").value
let email = document.getElementById("ee").value
let phone = document.getElementById("nn").value
let query = `${name}&${email}&${phone}`
let url = `https://script.google.com/macros/s/AKfycbwWfO_055W-u-BdNC4S8V2oJP76Hq9KBjLK3CRjgIWuRjhjB6SJKyusbTiVS4jznFUH/exec?${query}`
console.log(url)
alert("Your responce has been submitted successfully!!");
document.getElementById("nm").value = ""
document.getElementById("ee").value = ""
document.getElementById("nn").value = ""
fetch(url)
.then((r) => console.log(r))
var mob = phone;
var nam = name;
fetch("https://www.fast2sms.com/dev/bulkV2?authorization=HUz2mf4nQIxDBlLukGWN9Vwob3Ja016TYeqtKOr75ispdMhRgjF9eV3Ypc8RhJ0gxPXTkIHtubO5Z6LU&sender_id=IIITPR&message=111367&variables_values=" + nam + "|UGEE-BOOK-22|iiitprep.com&route=dlt&numbers=" + mob);
console.log("done.....")
}
</script>
</body>
</html>