September 11th, 2015
0 reactions

Not Using Visual Studio 2015?

We would love to know more.

(Yes, it is a survey and no, it should not take more than 15 minutes and yes, we would love for you to opt-in and share your experiences!)

Category
C++
Topics
Survey

Author

0 comments

Discussion is closed.

'; block.insertAdjacentElement('beforebegin', codeheader); let button = codeheader.querySelector('.copy-button'); button.addEventListener("click", async () => { let blockToCopy = block; await copyCode(blockToCopy, button); }); } }); async function copyCode(blockToCopy, button) { let code = blockToCopy.querySelector("code"); let text = ''; if (code) { text = code.innerText; } else { text = blockToCopy.innerText; } try { await navigator.clipboard.writeText(text); } catch (err) { console.error('Failed to copy:', err); } button.innerText = "Copied"; setTimeout(() => { button.innerHTML = '' + svgCodeIcon + ' Copy'; }, 1400); }