Untitled
unknown
plain_text
2 years ago
2.8 kB
4
Indexable
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} /* Slideshow container */ .slideshow-container { height: 100px; width: 600px; position: relative; background: #813535f1; } /* Slides */ .mySlides { display: none; padding: 20px; text-align: center; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -30px; padding: 16px; color: #888; font-weight: bold; font-size: 20px; border-radius: 0 3px 3px 0; user-select: none; } /* Position the "next button" to the right */ .next { position: absolute; right: 0; border-radius: 3px 0 0 3px; } /* On hover, add a black background color with a little bit see-through */ .prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); color: white; } </style> </head> <body> <div class="slideshow-container"> <div class="mySlides"> <input type="checkbox" name="check1" id=""> <label for="check1">check1.1</label> <input type="checkbox" name="check1" id=""> <label for="check1">check1.2</label> <input type="checkbox" name="check1" id=""> <label for="check1">check1.3</label> <input type="checkbox" name="check1" id=""> <label for="check1">check1.4</label> </div> <div class="mySlides"> <input type="checkbox" name="check1" id=""> <label for="check1">check2.1</label> <input type="checkbox" name="check1" id=""> <label for="check1">check2.2</label> <input type="checkbox" name="check1" id=""> <label for="check1">check2.3</label> <input type="checkbox" name="check1" id=""> <label for="check1">check2.4</label> </div> <div class="mySlides"> <q>I have not failed. I've just found 10,000 ways that won't work.</q> <p class="author">- Thomas A. Edison</p> </div> <a class="prev" onclick="plusSlides(-1)">❮</a> <a class="next" onclick="plusSlides(1)">❯</a> </div> <script> var slideIndex = 1; showSlides(slideIndex); function plusSlides(n) { showSlides(slideIndex += n); } function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); if (n > slides.length) {slideIndex = 1} if (n < 1) {slideIndex = slides.length} for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(" active", ""); } slides[slideIndex-1].style.display = "block"; dots[slideIndex-1].className += " active"; } </script> </body> </html>
Editor is loading...