m |
m |
||
Line 149: | Line 149: | ||
var newOnClick = "flipFood(" + (i+1).toString() + ")"; | var newOnClick = "flipFood(" + (i+1).toString() + ")"; | ||
foodItems[i].setAttribute("onclick", newOnClick); | foodItems[i].setAttribute("onclick", newOnClick); | ||
− | + | if(homeFoodConts[i].className == "food-img-container popped") { | |
− | + | var currentFoodContainer = homeFoodConts[i] | |
currentFoodContainer.className = "food-img-container"; | currentFoodContainer.className = "food-img-container"; | ||
setTimeout(function(){ currentFoodContainer.className = "food-img-container popped"; }, 500); | setTimeout(function(){ currentFoodContainer.className = "food-img-container popped"; }, 500); |
Revision as of 23:33, 9 August 2020