forked from lucaspatenaude/ScoreSpot
Favorite button basic implementation added
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var favoriteButton = document.getElementById("club-favorite-button");
|
||||
if (favoriteButton) {
|
||||
favoriteButton.addEventListener("click", function() {
|
||||
favoriteButton.src = "/img/club-page/favorited.png";
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user