public string toastCode = "var QAVSScript = document.createElement(\"script\");QAVSScript.innerHTML = `var QAVSToastsE = document.createElement(\"div\");document.body.appendChild(QAVSToastsE);let QAVStoasts = 0;let currentQAVSToasts = 0;function ShowToast(msg, color, bgc) { QAVStoasts++; currentQAVSToasts++; let QAVStoastId = QAVStoasts; QAVSToastsE.innerHTML += \\`<div id=\"QAVStoast\\${QAVStoastId}\" style=\"background-color: \\${bgc}; color: \\${color}; padding: 5px; height: 100px; width: 250px; position: fixed; bottom: \\${(currentQAVSToasts - 1) * 120 + 20}px; right: 30px; border-radius: 10px\">\\${msg}</div>\\`; setTimeout(() => { document.getElementById(\\`QAVStoast\\${QAVStoastId}\\`).remove(); currentQAVSToasts--; }, 5000)}`; document.body.appendChild(QAVSScript);";
0 commit comments