From 40caa83488404bb90cfc14e8eb67f0207d71bfff Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 31 Dec 2017 10:16:51 +0000 Subject: [PATCH] Travis build: 694 [ci skip] --- README.md | 43 +++++++++++++++++++++++++++++++++++++ docs/index.html | 20 ++++++++++++++++- snippets/copyToClipboard.md | 5 +++-- 3 files changed, 65 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d02308743..ff6785450 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ * [`arrayToHtmlList`](#arraytohtmllist) * [`bottomVisible`](#bottomvisible) +* [`copyToClipboard`](#copytoclipboard) * [`currentURL`](#currenturl) * [`detectDeviceType`](#detectdevicetype) * [`elementIsVisibleInViewport`](#elementisvisibleinviewport) @@ -1483,6 +1484,48 @@ bottomVisible(); // true
[⬆ Back to top](#table-of-contents) +### copyToClipboard + +Copy a string to the clipboard. Only works as a result of user action (i.e. inside a `click` event listener). + +Create a new `