pics added

This commit is contained in:
Tyler Koenig
2021-08-22 13:44:06 -04:00
parent f3aaf3b1f7
commit b3453d6a86
5 changed files with 31 additions and 7 deletions

23
index.js Normal file
View File

@@ -0,0 +1,23 @@
console.log('hello nurse');
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs((slideIndex += n));
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName('mySlides');
if (n > x.length) {
slideIndex = 1;
}
if (n < 1) {
slideIndex = x.length;
}
for (i = 0; i < x.length; i++) {
x[i].style.display = 'none';
}
x[slideIndex - 1].style.display = 'block';
}