Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2d14c commit f067c15Copy full SHA for f067c15
python_docs_theme/static/copybutton.js
@@ -34,14 +34,14 @@ const loadCopyButton = () => {
34
let timeout = null
35
// define the behavior of the button when it's clicked
36
return event => {
37
- clearTimeout(timeout)
38
- const buttonEl = event.currentTarget
39
- const codeEl = buttonEl.nextElementSibling
40
- navigator.clipboard.writeText(getCopyableText(codeEl))
41
- buttonEl.innerText = _("Copied!")
42
- timeout = setTimeout(() => {
43
- buttonEl.innerText = _("Copy")
44
- }, 1500)
+ clearTimeout(timeout)
+ const buttonEl = event.currentTarget
+ const codeEl = buttonEl.nextElementSibling
+ navigator.clipboard.writeText(getCopyableText(codeEl))
+ buttonEl.innerText = _("Copied!")
+ timeout = setTimeout(() => {
+ buttonEl.innerText = _("Copy")
+ }, 1500)
45
}
46
47
0 commit comments