MCPcopy
hub / github.com/Justineo/github-hovercard / log

Function log

extensions/firefox/options.js:134–142  ·  view source on GitHub ↗
(message, duration)

Source from the content-addressed store, hash-verified

132
133let logTimer
134function log(message, duration) {
135 clearTimeout(logTimer)
136 msg.css({ opacity: 1 }).html(message)
137 if (duration) {
138 logTimer = setTimeout(() => {
139 msg.animate({ opacity: 0 }, 300, () => msg.empty())
140 }, duration)
141 }
142}
143
144$(() => {
145 saveBtn.on('click', save)

Callers 2

saveFunction · 0.70
addRowFunction · 0.70

Calls 2

clearTimeoutFunction · 0.85
setTimeoutFunction · 0.85

Tested by

no test coverage detected