Difference between revisions of "Team:Tuebingen/galleryTest"

Line 827: Line 827:
 
const next = document.querySelector('.next');
 
const next = document.querySelector('.next');
  
checkPrev = () => document.querySelector('div:first-child').classList.contains('show') ? prev.style.display = 'none' : prev.style.display = 'flex';
+
checkPrev = () => document.querySelector('div.test:first-child').classList.contains('show') ? prev.style.display = 'none' : prev.style.display = 'flex';
  
checkNext = () => document.querySelector('div:last-child').classList.contains('show') ? next.style.display = 'none' : next.style.display = 'flex';
+
checkNext = () => document.querySelector('div.test:last-child').classList.contains('show') ? next.style.display = 'none' : next.style.display = 'flex';
  
 
Array.prototype.slice.call(divs).forEach(function (el) {
 
Array.prototype.slice.call(divs).forEach(function (el) {

Revision as of 21:00, 2 October 2019

Gallery

hallo123

hallo123

hallo123