MCPcopy
hub / github.com/zxlie/FeHelper / toast

Function toast

apps/devtools/index.js:751–767  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

749 },
750
751 toast(content) {
752 window.clearTimeout(window.feHelperAlertMsgTid);
753 let elAlertMsg = document.querySelector("#fehelper_alertmsg");
754 if (!elAlertMsg) {
755 let elWrapper = document.createElement('div');
756 elWrapper.innerHTML = '<div id="fehelper_alertmsg">' + content + '</div>';
757 elAlertMsg = elWrapper.childNodes[0];
758 document.body.appendChild(elAlertMsg);
759 } else {
760 elAlertMsg.innerHTML = content;
761 elAlertMsg.style.display = 'block';
762 }
763
764 window.feHelperAlertMsgTid = window.setTimeout(function () {
765 elAlertMsg.style.display = 'none';
766 }, 3000);
767 },
768 copyToClipboard(text) {
769 let input = document.createElement('textarea');
770 input.style.position = 'fixed';

Callers 8

_formatTheSourceFunction · 0.50
_copyPrettyJsonSelectionFunction · 0.50
_copyToClipboardFunction · 0.50
fnDownloadFunction · 0.50
fnDelFunction · 0.50
_copySelectedPathFunction · 0.50
_copySelectedValueFunction · 0.50
_buildOptionBarFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected