-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" type="text/css">
<title>Hello World</title>
</head>
<body>
<div class="container">
<div class="myclass">
Hello World
</div>
<div class="myclass2">
It's Rohith
</div>
<div class="mysvg">
<svg width="20rem" height="20rem" viewBox="0 0 480 480">
<circle cx="240" cy="240" r="160" fill="black" stroke="white" stroke-width="10px"></circle>
<ellipse cx="175" cy="190" rx="40" ry="50" fill="white"></ellipse>
<ellipse cx="300" cy="190" rx="40" ry="50" fill="white"></ellipse>
<ellipse class="mouth-close" cx="240" cy="300" rx="75" ry="40" fill="white"></ellipse>
<ellipse class="mouth-open" cx="240" cy="302" rx="77" ry="42" fill="white"></ellipse>
<ellipse cx="240" cy="290" rx="90" ry="45" fill="black"></ellipse>
</svg>
</div>
<div class="link">
<a href="https://rohith-m10.github.io/Portfolio/" onmouseover="hover()" onmouseleave="leave()"><button>My Portfolio</button></a>
</div>
</div>
</body>
<script>
function hover(){
document.querySelector('.mouth-close').style.display = 'none';
document.querySelector('.mouth-open').style.display = 'block';
}
function leave(){
document.querySelector('.mouth-close').style.display = 'block';
document.querySelector('.mouth-open').style.display = 'none';
}
</script>
</html>