mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Updates site to use ClipboardJS 2.0
This commit is contained in:
@@ -4,7 +4,7 @@ var snippets = document.querySelectorAll('.snippet');
|
||||
snippet.firstChild.insertAdjacentHTML('beforebegin', '<button class="btn" data-clipboard-snippet><img class="clippy" width="13" src="assets/images/clippy.svg" alt="Copy to clipboard"></button>');
|
||||
});
|
||||
|
||||
var clipboardSnippets = new Clipboard('[data-clipboard-snippet]', {
|
||||
var clipboardSnippets = new ClipboardJS('[data-clipboard-snippet]', {
|
||||
target: function(trigger) {
|
||||
return trigger.nextElementSibling;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user