1
0
Fork 0
nikhil.horse/index.html

95 lines
2.3 KiB
HTML
Raw Normal View History

2020-12-14 13:42:16 -05:00
<!DOCTYPE html>
<html>
<head>
<title>nikhil.horse</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-12-14 14:09:49 -05:00
<link href="favicon.ico" rel="icon" type="image/x-icon" />
2020-12-14 13:42:16 -05:00
<style>
2021-08-31 20:40:19 -04:00
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}
2020-12-14 13:42:16 -05:00
2021-08-31 20:40:19 -04:00
/* Slideshow container */
.slideshow-container {
position: relative;
margin: auto;
text-align: center;
}
2020-12-14 13:42:16 -05:00
2021-08-31 20:40:19 -04:00
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
2020-12-14 13:42:16 -05:00
2021-08-31 20:40:19 -04:00
@-webkit-keyframes fade {
from {opacity: .2}
to {opacity: 1}
}
2020-12-14 13:42:16 -05:00
2021-08-31 20:40:19 -04:00
@keyframes fade {
from {opacity: .2}
to {opacity: 1}
}
2020-12-14 13:42:16 -05:00
</style>
</head>
<body>
<div class="slideshow-container">
<div class="mySlides fade">
2020-12-14 13:59:44 -05:00
<img src="images/1.jpg">
2020-12-14 13:42:16 -05:00
</div>
<div class="mySlides fade">
2020-12-14 13:59:44 -05:00
<img src="images/2.jpg">
2020-12-14 13:42:16 -05:00
</div>
<div class="mySlides fade">
2020-12-14 13:59:44 -05:00
<img src="images/3.jpg">
2020-12-14 13:42:16 -05:00
</div>
<div class="mySlides fade">
2020-12-14 13:59:44 -05:00
<img src="images/4.jpg">
2020-12-14 13:42:16 -05:00
</div>
<div class="mySlides fade">
2020-12-14 13:59:44 -05:00
<img src="images/5.jpg">
2020-12-14 13:42:16 -05:00
</div>
2021-08-31 20:40:19 -04:00
<div class="mySlides fade">
<img src="images/6.jpg">
</div>
<div class="mySlides fade">
<img src="images/7.jpg">
</div>
<div class="mySlides fade">
<img src="images/8.jpg">
</div>
<div class="mySlides fade">
<img src="images/9.jpg">
</div>
<div class="mySlides fade">
<img src="images/10.jpg">
</div>
2020-12-14 13:42:16 -05:00
</div>
<script>
2021-08-31 20:40:19 -04:00
var slideIndex = Math.floor(Math.random() * 10);
showSlides();
2020-12-14 13:42:16 -05:00
2021-08-31 20:40:19 -04:00
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(showSlides, 3500); // Change image every 3 seconds
}
2020-12-14 13:42:16 -05:00
</script>
</body>
</html>