97 lines
2.3 KiB
HTML
97 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>nikhil.horse</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="favicon.ico" rel="icon" type="image/x-icon" />
|
|
<style>
|
|
* {box-sizing: border-box;}
|
|
body {font-family: Verdana, sans-serif;}
|
|
.mySlides {display: none;}
|
|
img {
|
|
max-width: 100%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Slideshow container */
|
|
.slideshow-container {
|
|
position: relative;
|
|
margin: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Fading animation */
|
|
.fade {
|
|
-webkit-animation-name: fade;
|
|
-webkit-animation-duration: 1.5s;
|
|
animation-name: fade;
|
|
animation-duration: 1.5s;
|
|
}
|
|
|
|
@-webkit-keyframes fade {
|
|
from {opacity: .2}
|
|
to {opacity: 1}
|
|
}
|
|
|
|
@keyframes fade {
|
|
from {opacity: .2}
|
|
to {opacity: 1}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="slideshow-container">
|
|
|
|
<div class="mySlides fade">
|
|
<img src="images/1.jpg">
|
|
</div>
|
|
<div class="mySlides fade">
|
|
<img src="images/2.jpg">
|
|
</div>
|
|
<div class="mySlides fade">
|
|
<img src="images/3.jpg">
|
|
</div>
|
|
<div class="mySlides fade">
|
|
<img src="images/4.jpg">
|
|
</div>
|
|
<div class="mySlides fade">
|
|
<img src="images/5.jpg">
|
|
</div>
|
|
<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>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var slideIndex = Math.floor(Math.random() * 10);
|
|
showSlides();
|
|
|
|
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
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|