Explore >> Select a destination


You are here

distinctivequality.com
| | www.dannyguo.com
3.8 parsecs away

Travel
| | [AI summary] A tutorial on adding code copy-to-clipboard buttons exclusively in Hugo static site generator websites.
| | aaronluna.dev
3.3 parsecs away

Travel
| | Hugo includes a built-in syntax-highlighter called Chroma. Chroma is extremely fast since it is written in pure Go (like Hugo) and supports every language I can think of. Chroma's speed is especially important since syntax highlighters are notorious for causing slow page loads. However, it lacks one vital feature - an easy way to copy a code block to the clipboard. I decided to document my implementation using only vanilla JS since every blog post I found for this issue relied on jquery to parse the DOM,...
| | www.roboleary.net
2.9 parsecs away

Travel
| | A copy button enabled quick copying of code to the clipboard. I will show how to use the Clipboard API, style the button, and provide user feedback.
| | ponyfoo.com
20.0 parsecs away

Travel
| [AI summary] This technical article explains the async/await feature in JavaScript, detailing its relationship with Promises and generators, and provides code examples demonstrating how to handle asynchronous operations, concurrent tasks, and errors.