Joe McKeown (Talk | contribs) |
Joe McKeown (Talk | contribs) |
||
Line 59: | Line 59: | ||
<!--------------TRYING OUT THE TEAM STUFF HERE---------------------> | <!--------------TRYING OUT THE TEAM STUFF HERE---------------------> | ||
<section id="Meet_The_Team"> | <section id="Meet_The_Team"> | ||
− | <button style="background-color: #000; color: #fff; opacity: 0.7; height: 3em; width: 2em; position: relative; left: 19em; top: 10em;" onclick="plusDivs(-1)">❮</button> | + | <button style="background-color: #000; color: #fff; opacity: 0.7; height: 3em; width: 2em; position: relative; left: 19em; top: 10em;" onclick="plusDivs(-1);plusDivs2(-1);plusDivs3(-1);">❮</button> |
− | <button style="background-color: #000; color: #fff; opacity: 0.7; height: 3em; width: 2em; position: relative; left: 84.5em; top: 10em;" onclick="plusDivs(1)">❯</button> | + | <button style="background-color: #000; color: #fff; opacity: 0.7; height: 3em; width: 2em; position: relative; left: 84.5em; top: 10em;" onclick="plusDivs(1);plusDivs2(1);plusDivs3(1);">❯</button> |
<div class="container"> | <div class="container"> | ||
<div class="row text-center"> | <div class="row text-center"> | ||
Line 117: | Line 117: | ||
} | } | ||
x[slideIndex-1].style.display = "block"; | x[slideIndex-1].style.display = "block"; | ||
+ | } | ||
+ | |||
+ | var slideIndex2 = 1; | ||
+ | showDivs2(slideIndex2); | ||
+ | |||
+ | function plusDivs2(n) { | ||
+ | showDivs2(slideIndex2 += n); | ||
+ | } | ||
+ | |||
+ | function showDivs2(n) { | ||
+ | var i; | ||
+ | var x = document.getElementsByClassName("TeamImg2"); | ||
+ | if (n > x.length) {slideIndex2 = 1} | ||
+ | if (n < 1) {slideIndex2 = x.length} | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | x[i].style.display = "none"; | ||
+ | } | ||
+ | x[slideIndex2-1].style.display = "block"; | ||
+ | } | ||
+ | |||
+ | var slideIndex3 = 1; | ||
+ | showDivs3(slideIndex3); | ||
+ | |||
+ | function plusDivs3(n) { | ||
+ | showDivs3(slideIndex3 += n); | ||
+ | } | ||
+ | |||
+ | function showDivs3(n) { | ||
+ | var i; | ||
+ | var x = document.getElementsByClassName("TeamImg3"); | ||
+ | if (n > x.length) {slideIndex3 = 1} | ||
+ | if (n < 1) {slideIndex3 = x.length} | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | x[i].style.display = "none"; | ||
+ | } | ||
+ | x[slideIndex3-1].style.display = "block"; | ||
} | } | ||
</script> | </script> |
Revision as of 15:52, 14 September 2017