//function checkAnimation(currentIndex, url, direction) { // livingIndex = 6; // if (currentIndex != livingIndex) { // if (currentIndex != livingIndex || livingIndex+1 || livingIndex+2) { /* if (url == 'products_living.php' || 'products_kitchen.php' || 'products_garden.php') { if (direction == 'in') { document.getElementById("productDiv").classList.add('animatedIn'); document.getElementById("productDiv").classList.remove('animatedOut'); } else if (direction == 'out') { document.getElementById("productDiv").classList.remove('animatedIn'); document.getElementById("productDiv").classList.add('animatedOut'); } } } } */ function setButton(function1, dest1, function2, dest2) { const function1text; const dest1text; const function2text; const dest2text; const finalText; if (function1 == 'previous') { function1text = "< Previous "; } else { function1text = "< Next "; } else if (button1 == 'previous_section') { document.getElementById('previous_button').innerHTML = '"< Previous Section"'; } else if (button1 == 'previous_page') { document.getElementById('previous_button').innerHTML = '"< Previous Page"'; } if (button2 == 'previous_room') { document.getElementById('previous_button').innerHTML = '"< Previous Room"'; } else if (button2 == 'next_section') { document.getElementById('previous_button').innerHTML = '"< Previous Section"'; } else if (button2 == 'nexts_page') { document.getElementById('previous_button').innerHTML = '"< Previous Page"'; } document.getElementById('next_button').innerHTML = 'button2'; }