We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f936d commit f128962Copy full SHA for f128962
layouts/partials/footer.html
@@ -21,5 +21,18 @@
21
</div>
22
23
</footer>
24
+
25
+ <!-- JavaScript code -->
26
+<script>
27
+ document.getElementById('copy-button').addEventListener('click', () => {
28
+ const curl = document.getElementById('curl');
29
+ const range = document.createRange();
30
+ range.selectNodeContents(curl);
31
+ window.getSelection().removeAllRanges();
32
+ window.getSelection().addRange(range);
33
+ document.execCommand('copy');
34
+ });
35
+</script>
36
37
</body>
38
</html>
0 commit comments