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

Function log

extensions/edge/options.js:108–116  ·  view source on GitHub ↗
(message, duration)

Source from the content-addressed store, hash-verified

106
107let logTimer
108function log(message, duration) {
109 clearTimeout(logTimer)
110 msg.css({ opacity: 1 }).html(message)
111 if (duration) {
112 logTimer = setTimeout(() => {
113 msg.animate({ opacity: 0 }, 500, () => msg.empty())
114 }, duration)
115 }
116}
117
118$(() => {
119 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