From c7ae9c6eeb231675f6d6b52c5bbfae0d17a975fe Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 26 Apr 2016 10:17:19 +0200 Subject: [PATCH] Replace ZeroClipboard with clipboard.js For copy/paste support in our code samples, we are using the ZeroClipboard library which relies heavily on Flash. Because many browsers/extensions are disabling this plugin nowadays, this commit replaces ZeroClipboard with a native, lightweight solution for this feature. --- _includes/page.html | 2 +- js/ZeroClipboard.min.js | 8 ------ js/ZeroClipboard.swf | Bin 1635 -> 0 bytes js/clipboard.min.js | 7 ++++++ js/copySnippets.js | 41 ++++++++++++++++++++++--------- js/projectDocumentationWidget.js | 4 +-- 6 files changed, 38 insertions(+), 24 deletions(-) delete mode 100755 js/ZeroClipboard.min.js delete mode 100644 js/ZeroClipboard.swf create mode 100644 js/clipboard.min.js diff --git a/_includes/page.html b/_includes/page.html index 87df027f..53cf5738 100644 --- a/_includes/page.html +++ b/_includes/page.html @@ -26,7 +26,7 @@ - +