MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / singleClick

Function singleClick

assets/js/blog.js:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12const like = document.getElementById('like_btn');
13const singleClick = () => {
14 like.style.fontWeight = 'bold';
15 like.style.background = '#bbe1fa';
16 like.style.color = '#1b262c';
17 like.innerHTML = "✓ Liked";
18}
19const doubleClick = () => {
20 like.style.fontWeight = 'normal';
21 like.style.background = '#3282b8';

Callers 1

blog.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected