-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
68 lines (54 loc) · 1.89 KB
/
contact.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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<link rel="stylesheet" href="./con-style.css">
</head>
<body>
<nav>
<div class="logo">
<img src="http://epitas.in/wp-content/uploads/2019/04/logo1.png" alt="Epitas" >
</div>
<button class="btn-toggle">
<span></span>
<span></span>
<span></span>
</button>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="feature.html">Feature</a></li>
<li><a href="testimonial.html">Testimonial</a></li>
<li><a class="active" href="#">Contact</a></li>
</ul>
</nav>
<section class="contact">
<h1 id="cont">Contact Us</h1>
<div class="input">
<input id="fn" type="text" name="fname" onfocus="this.value=''" value="First Name">
<input id="ln" type="text" name="lname" onfocus="this.value=''" value="Last Name"><br>
<input id="email" type="text" name="email" onfocus="this.value=''" value="Email"><br>
<input id="ta" type="text" onfocus="this.value=''" value="Message"><br>
<button>Submit</button>
</div>
<img src="./image/tele.svg" alt=""><h3>+91 0000000000</h3>
<img src="./image/mail.svg" alt=""><h3>example@example.com</h3>
</section>
</body>
<script>
var cont=document.getElementById("cont");
var menuUL = document.getElementsByTagName("ul");
var heightOful = menuUL[0].scrollHeight;
var btnToggle = document.getElementsByClassName("btn-toggle");
btnToggle[0].addEventListener("click",function(){
if(menuUL[0].style.maxHeight){
menuUL[0].style.maxHeight = null;
cont.style.marginTop="0px"
}
else{
menuUL[0].style.maxHeight = menuUL[0].scrollHeight + "px";
cont.style.marginTop="300px"
}
});
</script>
</html>