-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (65 loc) · 2.76 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" initial-scale="1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="fontawesome/css/all.min.css">
<link rel="stylesheet" href="portfolio.css">
</head>
<body>
<div class="nav-bar">
<h1 class="home-title">JASMINE HTWE</h1>
<ul class="list-group">
<a class="list-group-item borderless" href="about.html" target="_blank">ABOUT ME</a>
<a class="list-group-item borderless" href="learningExperience.html">LEARNING EXPERIENCE</a>
<a class="list-group-item borderless" href="academic.html">ACADEMIC</a>
<a class="list-group-item borderless" href="#">PROJECTS</a>
</ul>
<a href="https://www.linkedin.com/"><i class="fa fa-brands fa-linkedin-in"></i></a>
<a href="https://mail.google.com"><i class="fa fa-regular fa-envelope"></i></a>
<a href="https://www.facebook.com"><i class="fa fa-brands fa-facebook"></i></a>
</div>
<div>
<img class="mySlides" src="images/1.jpg" alt="portfolio1">
<img class="mySlides" src="images/1.jpg" alt="portfolio2">
<img class="mySlides" src="images/1.jpg" alt="portfolio3">
<img class="mySlides" src="images/1.jpg" alt="portfolio4">
<img class="mySlides" src="images/1.jpg" alt="portfolio5">
</div>
<script>
var myIndex = 0;
carousel();
function carousel(){
var img_slide = document.getElementsByClassName("mySlides")
console.log(img_slide) // 5 images
for(var i = 0; i<img_slide.length; i++){
img_slide[i].style.display = "none";
// img_slide[i].style.opacity = 0.5;
}
myIndex++; //6
if(myIndex > img_slide.length) {myIndex= 1}
img_slide[myIndex-1].style.display = "block";
setTimeout(carousel,3000);
}
var icons = document.querySelectorAll(".fa");
console.log(icons);
icons.forEach(icon => {
icon.addEventListener("mouseover", e=>{
icons.forEach(othericon =>{
if(othericon !== icon){
othericon.style.opacity = 0.5;
}
})
})
icon.addEventListener("mouseout", e=>{
icons.forEach(othericon =>{
if(othericon !== icon){
othericon.style.opacity = 1;
}
})
})
})
</script>
</body>
</html>