New-OMIS/public/assets/js/pages/project-overview.init.js
2024-04-04 13:08:00 +05:45

1 line
226 B
JavaScript

var favouriteBtn=document.querySelectorAll(".favourite-btn");favouriteBtn&&Array.from(document.querySelectorAll(".favourite-btn")).forEach(function(t){t.addEventListener("click",function(t){this.classList.toggle("active")})});