17 lines
485 B
JavaScript
Executable File
Vendored
17 lines
485 B
JavaScript
Executable File
Vendored
/*
|
|
Template Name: Velzon - Admin & Dashboard Template
|
|
Author: Themesbrand
|
|
Website: https://Themesbrand.com/
|
|
Contact: Themesbrand@gmail.com
|
|
File: Project overview init js
|
|
*/
|
|
|
|
// favourite btn
|
|
var favouriteBtn = document.querySelectorAll(".favourite-btn");
|
|
if (favouriteBtn) {
|
|
Array.from(document.querySelectorAll(".favourite-btn")).forEach(function (item) {
|
|
item.addEventListener("click", function (event) {
|
|
this.classList.toggle("active");
|
|
});
|
|
});
|
|
} |