mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
update code style
This commit is contained in:
@ -14,17 +14,17 @@
|
||||
|
||||
<!-- 3. Instantiate clipboard -->
|
||||
<script>
|
||||
var clipboard = new ClipboardJS(".btn", {
|
||||
var clipboard = new ClipboardJS('.btn', {
|
||||
text: function () {
|
||||
return "to be or not to be";
|
||||
return 'to be or not to be';
|
||||
},
|
||||
});
|
||||
|
||||
clipboard.on("success", function (e) {
|
||||
clipboard.on('success', function (e) {
|
||||
console.log(e);
|
||||
});
|
||||
|
||||
clipboard.on("error", function (e) {
|
||||
clipboard.on('error', function (e) {
|
||||
console.log(e);
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user