Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf067c15

Browse files
committed
Fix indentation
1 parentac2d14c commitf067c15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎python_docs_theme/static/copybutton.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ const loadCopyButton = () => {
3434
lettimeout=null
3535
// define the behavior of the button when it's clicked
3636
returnevent=>{
37-
clearTimeout(timeout)
38-
constbuttonEl=event.currentTarget
39-
constcodeEl=buttonEl.nextElementSibling
40-
navigator.clipboard.writeText(getCopyableText(codeEl))
41-
buttonEl.innerText=_("Copied!")
42-
timeout=setTimeout(()=>{
43-
buttonEl.innerText=_("Copy")
44-
},1500)
37+
clearTimeout(timeout)
38+
constbuttonEl=event.currentTarget
39+
constcodeEl=buttonEl.nextElementSibling
40+
navigator.clipboard.writeText(getCopyableText(codeEl))
41+
buttonEl.innerText=_("Copied!")
42+
timeout=setTimeout(()=>{
43+
buttonEl.innerText=_("Copy")
44+
},1500)
4545
}
4646
}
4747

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp