m |
m |
||
Line 22: | Line 22: | ||
const wordTime = 1000; | const wordTime = 1000; | ||
const changeWordTime = 100; //Time to switch letters | const changeWordTime = 100; //Time to switch letters | ||
− | var | + | var homeFoodConts = document.getElementsByClassName("food-img-container"); |
for(i = 0; i < dropdownLinks.length; i++) | for(i = 0; i < dropdownLinks.length; i++) | ||
Line 264: | Line 264: | ||
function foodPop(x) { | function foodPop(x) { | ||
− | + | homeFoodConts[x-1].className = "food-img-container popped"; | |
for(i = 0; i < foodItems.length; i++) { | for(i = 0; i < foodItems.length; i++) { | ||
if(i != (x-1)) { | if(i != (x-1)) { | ||
− | + | homeFoodConts[i].className = "food-img-container"; | |
} | } | ||
} | } |
Revision as of 22:50, 9 August 2020