Vừa giây trước còn khóc mếu nức nở, cậu bé đã chuyển tông cười hớn hở và "cực phê" khi nhìn thấy thứ này

', namesource, linksource, btnLink, btnCopy); return sourceHtml; } function getSearchOrgUrl(originalId, title) { switch (originalId) { case 21: return "https://ift.tt/2r9YdQ0" + title; case 19: return "https://ift.tt/2CXjMpL" + title; case 17: return "https://ift.tt/2QDGEm6" + title; case 7: return "https://ift.tt/2OtVTvt" + title; case 18: return "https://ift.tt/2OpAAv5" + title; case 15: return "https://ift.tt/341NzcW" + title; case 16: return "https://ift.tt/2CTi6hb" + title; case 13: return "https://ift.tt/336qepi" + title; default: return ''; } } function copyStringToClipboard(string) { let textarea; let result; try { textarea = document.createElement('textarea'); textarea.setAttribute('readonly', true); textarea.setAttribute('contenteditable', true); textarea.style.position = 'fixed'; // prevent scroll from jumping to the bottom when focus is set. textarea.value = string; document.body.appendChild(textarea); textarea.focus(); textarea.select(); const range = document.createRange(); range.selectNodeContents(textarea); const sel = window.getSelection(); sel.removeAllRanges(); sel.addRange(range); textarea.setSelectionRange(0, textarea.value.length); result = document.execCommand('copy'); } catch (err) { console.error(err); result = null; } finally { document.body.removeChild(textarea); } // manual copy fallback using prompt if (!result) { const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0; const copyHotkey = isMac ? '⌘C' : 'CTRL+C'; result = prompt(`Press ${copyHotkey}`, string); // eslint-disable-line no-alert if (!result) { return false; } } return true; } });
Previous
Next Post »
Thanks for your comment