-
Notifications
You must be signed in to change notification settings - Fork 0
/
feature.html
71 lines (62 loc) · 1.99 KB
/
feature.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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<link rel="stylesheet" href="./fe-style.css">
</head>
<body>
<div>
<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 class="active" href="#">Feature</a></li>
<li><a href="testimonial.html">Testimonial</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
<section class="feature">
<img id="img" src="./image/1612772535401.png" alt="">
<div id="con" class="container">
<h1>Why not a Laptop ?</h1>
<div class="box1">
<p>Epitas strongly believes that having a Linux environment will help the programmer learn coding much faster.</p>
</div>
<div class="box2">
<p>Many students take time to correctly configure their systems. </p>
</div>
<div class="box3">
<p>In a laptop, we need to spend at least 8 to 10 days to complete the Setup for Python, C, C++, Java etc. </p>
</div>
</div>
</section>
</body>
<script>
var img= document.getElementById("img");
var con= document.getElementById("con");
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;
img.style.top="100px";
con.style.top="0px";
}
else{
menuUL[0].style.maxHeight = menuUL[0].scrollHeight + "px";
img.style.top="400px";
con.style.top="400px";
}
});
</script>
</html>