From c29fa10b5bfa718db823188dc27bf0b71c06e015 Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Mon, 20 Jan 2020 09:42:18 +0000 Subject: [PATCH] Travis build: 35 --- blog_data/snippetList.json | 15 +++++++++++++++ blog_data/snippets.json | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/blog_data/snippetList.json b/blog_data/snippetList.json index 8920cdfc6..8026be549 100644 --- a/blog_data/snippetList.json +++ b/blog_data/snippetList.json @@ -30,6 +30,21 @@ "hash": "ebc2337246ca7925e763034b8f5718f6276afd9252856cad56eff5f6d6ba25f1" } }, + { + "id": "copy-text-to-clipboard-with-javascript", + "type": "snippetListing", + "title": "How can I copy text to clipboard with JavaScript?", + "attributes": { + "text": "**Core functionality**\n\nA very common need when building websites is the ability to copy text to clipboard with a single button click. Javascript can easily do this in five short steps:hout the user selecting it or hitting the appropriate key combination on their keyboard. Javascript can easily do this in five short steps:\n\n1. Create a`