-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (137 loc) · 4.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact us</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
// function check(){
// alert("hellow");
// }
function getvalue(){
const emailRegex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
var first = document.getElementById("first").value;
var last=document.getElementById("last").value;
var email=document.getElementById("email").value;
var organization=document.getElementById("organization").value;
var region=document.getElementById("region").value;
var industry=document.getElementById("industry").value;
var area=document.getElementById("area").value;
var checkbox=document.getElementById("checkbox").checked;
var checkbox1=document.getElementById("checkbox1").checked;
first=first.trim()
last=last.trim()
email=email.trim()
organization=organization.trim()
region=region.trim()
industry=industry.trim()
area=area.trim()
if(first=="" ||last=="" ||email=="" ||organization=="" ||region=="" ||industry=="" ||
area=="" ||checkbox==false ||checkbox1==false ){
if(first=="" && last=="" && email=="" && organization=="" && region=="" && industry=="" &&
area=="" &&checkbox==false && checkbox1==false ){
alert("All fields are required")
return false
}
if(first==""){
alert("please enter first name")
return false
}
if(last==""){
alert("please enter last name")
return false
}
if(email==""){
alert("please enter email")
return false
}
if(!emailRegex.test(email)){
alert("please enter valid email")
return false
}
if(organization==""){
alert("please enter organization name")
return false
}
if(region==""){
alert("please enter region name")
return false
}
if(industry==""){
alert("please enter industry name")
return false
}
if(area==""){
alert("please enter area name")
return false
}
if(checkbox==false){
alert("please select checkbox")
return false
}
if(checkbox1==false){
alert("please select checkbox1")
return false
}
}
else{
alert("all good")
return true
}
return false
}
</script>
<div class="outer">
<img src="man.png" width="35%"style="float:right;">
<div class="inner">
<b>
<h2>REQUEST FOR SERVICES<br></h2>
</b>
<h2> we've driven growth and purposeful transformation across<br>
every industry and we're excited to build on your belief.Tell<br>
us a bit more about yourself,so we can get the ball rolling.</h2><br><br><br>
<b> First Name*</b><br>
<input type="text" id="first" placeholder="First Name">
<b> Last Name*</b><input type="text" id="last"><br><br>
<b>Email*</b><br><input type="email" id="email">
<b> Organization*</b>
<input type="text" id="organization"><br><br>
<b>Region*</b><br>
<select class="region" id="region">
<option value="Asia Pacific">Asia Pacific</option>
<option value="Australia and Zealand">Australia and Zealand</option>
<option value="Europe">Europe</option>
<option value="India">India</option>
<option value="Latin America">Latin America</option>
</select><br><br>
<b>Industry*</b><br>
<select class="ee" id="industry">
<option value="Banking">Banking</option>
<option value="Capital Market">Capital Market</option>
<option value="Insurance">Insurance</option>
<option value="Healthcare">Healthcare</option>
<option value="Life Science">Life Science</option>
</select><br><br>
<b>How can we help you?**<br>
<textarea id="area"></textarea></b><br><br>
<input type="checkbox" id="checkbox">
I consent to processig of my personal data entered above
for TCS to contact me.*<br>
<input type="checkbox" id="checkbox1">
I would like to receive details about products, services
and events from TCS.<br><br>
For further details on how your persional
data will be processed and how your consent can be managed,
refered for the<br> TCS Privacy Notice.<br><br>
*Mandtory fields<br><br>
<button class="button" onclick="return getvalue()">Send</button>
</div>
</div>
</body>
</html>