update code style

This commit is contained in:
vitormalencar
2021-01-20 16:55:03 +01:00
parent 35688322f3
commit 2660565b61
19 changed files with 856 additions and 820 deletions

View File

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<head>
<meta charset="UTF-8" />
<title>function-text</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<!-- 1. Define some markup -->
<button class="btn">Copy</button>
@ -14,19 +14,19 @@
<!-- 3. Instantiate clipboard -->
<script>
var clipboard = new ClipboardJS('.btn', {
text: function() {
return 'to be or not to be';
}
});
var clipboard = new ClipboardJS(".btn", {
text: function () {
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>
</body>
</body>
</html>