-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContact_Us.html
203 lines (191 loc) · 7.69 KB
/
Contact_Us.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
<html>
<head>
<title>Contact us</title>
<link rel="stylesheet" type="text/css" href="main.css">
<style type="text/css">
.details h1{
text-align: center;
color: azure;
}
body{
background-color:#1a1a1a;
}
.fill{
float: left;
margin-left: 180;
color: azure;
font-size: 20px;
}
input,textarea{
width: 250;
height: 40;
border-radius: 8px;
background-color: #333333;
color: azure;
border: 0;
}
input[type=submit]{
background-color: #666666;
width: 100px;
font-size: 20px;
}
input[type=submit]:hover{
background-color: #99ffff;
color: black;
}
.about{
float: none;
margin-left: 750;
margin-top: 100;
color: azure;;
font-size: 20px;
}
.about ul li a{
color: azure;
margin: 2;
font-size: 20px;
}
.about ul li{
list-style: none;
}
.about ul li img{
background-color: azure;
vertical-align: text-top;
margin-right: 20;
}
.about ul li address{
display: inline;
}
.about ul li a:hover{
color: red;
}
</style>
</head>
<body>
<div class="comhead clearfix">
<div class="comicon">
<img src="images/Capture01.JPG" width="200" height="200">
</div>
<div class="social">
<ul>
<li><a href="https://www.facebook.com/"><img src="images/97.png" width="45" height="45"></a></li>
<li><a href="https://twitter.com/"><img src="images/91.png" width="45" height="45"></a></li>
<li><a href="https://www.linkedin.com/"><img src="images/93.png" width="45" height="45"></a></li>
</ul>
</div>
<div class="comname">
<h1>
NIRMANI STUDIO
</h1>
<P>
Every picture tells a story... let us help you tell yours...
</P>
</div>
<div class="navi clearfix">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Services.html">Sevices</a></li>
<li><a href="Gallery.html">Gallery</a></li>
<li><a href="About_Us.html">About Us</a></li>
<li><a href="Contact_Us.html">Contact Us</a></li>
</ul>
</div>
</div><!--comhead-->
<div class="details clearfix">
<h1>Contact Us</h1>
<div class="fill">
<form action="#" method="post" onsubmit="return confirmForm();">
Name*<br>
<input type="text" placeholder="Name" name="name" id="name"><br><br>
Email*<br>
<input type="text" placeholder="Email" name="email" id="email" onfocusout="return validateEmail();"><br><br>
Phone*<br>
<input type="text" placeholder="0XXXXXXXXX" name="phone" id="phone" onfocusout="return validatePhone();"><br><br>
Event type*<br>
<input type="text" placeholder="Ex: Birtday" name="event" id="event"><br><br>
Event location*<br>
<input type="text" placeholder="City or town" name="location" id="location"><br><br>
Event date*<br>
<input type="date" name="date" id="date"><br><br>
How did you hear of us?<br>
<input type="text" placeholder="Ex: Facebook" name="hear" id="hear"><br><br>
Comments<br>
<textarea placeholder="Comments" name="comment" id="comment"></textarea><br><br>
<input type="submit" name="submit" value="Send" onclick="return validateform();"><br><br>
</form>
</div>
<div class="about">
<ul>
<li><img src="images/83.png" width="30" height="30"> Yasiru Kavishka</li><br>
<li><img src="images/82.png" width="30" height="30"> +9477-5552222</li><br>
<li><img src="images/85.png" width="30" height="30"> <address> 212/A, Highlevel road, Maharagama.</address></li><br>
<li><img src="images/84.png" width="30" height="30"><a href="mailto:nirmanistudio@gmail.com?"> nirmanistudio@gmail.com</a></li>
</ul>
</div>
</div>
<div class="bottom">
<p>
<b>Copyrigrt © 2018 Nirmani Studio, SriLanka | All rights Reserved.2018</b>
</p>
</div>
<script type"text/javascript">
function validateform(){
var name=document.getElementById('name').value;
var email=document.getElementById('email').value;
var phone=document.getElementById('phone').value;
var event=document.getElementById('event').value;
var location=document.getElementById('location').value;
var date=document.getElementById('date').value;
if(name==''){
alert("Please enter Name!");
return false;
}
else if(email==''){
alert("Please enter Email!");
return false;
}
else if(phone==''){
alert("Please enter Phone number!");
return false;
}
else if(event==''){
alert("Please enter Event type!");
return false;
}
else if(location==''){
alert("Please enter Event location!");
return false;
}
else if(date==''){
alert("Please enter Date!");
return false;
}
}
function validateEmail(){
var email= document.getElementById('email').value;
var at= email.indexOf("@");
var dot= email.lastIndexOf(".");
if(at<1 || dot<at+2 || dot+2>email.length){
alert("Invalid Email format!");
return false;
}
}
function validatePhone()
{
var phone=document.getElementById('phone').value;
var phone_length= phone.length;
if(isNaN(phone)){
alert("Invaid phone number format!");
return false;
}
else if(phone_length!=10){
alert("Phone number should be 10 numbers!");
return false;
}
}
function confirmForm(){
confirm("Do you want to submit?");
}
</script>
</body>
</html>