You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by gi...@apache.org on 2021/10/01 18:03:07 UTC
[beam] branch asf-site updated: Publishing website 2021/10/01
18:02:35 at commit e4b400b
This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 0684492 Publishing website 2021/10/01 18:02:35 at commit e4b400b
0684492 is described below
commit 0684492b8a7b7ff73e8d6694264e23f426cc72d0
Author: jenkins <bu...@apache.org>
AuthorDate: Fri Oct 1 18:02:36 2021 +0000
Publishing website 2021/10/01 18:02:35 at commit e4b400b
---
website/generated-content/js/copy-to-clipboard.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/website/generated-content/js/copy-to-clipboard.js b/website/generated-content/js/copy-to-clipboard.js
index fad14d0..4555f7e 100644
--- a/website/generated-content/js/copy-to-clipboard.js
+++ b/website/generated-content/js/copy-to-clipboard.js
@@ -13,20 +13,18 @@
$(document).ready(function() {
function copy() {
$(".copy").click(function(){
- var text=$(this).siblings()[$(this).siblings().length-1].childNodes[0].innerHTML;
+ var text=$(this).siblings()[$(this).siblings().length-1].childNodes[0].innerText;
const el=document.createElement('textarea');
el.value=text;document.body.appendChild(el);
el.select();document.execCommand('copy');
document.body.removeChild(el);
- alert('copied to clipboard');
})
$(".just-copy").click(function(){
- var text=$(this).parent().siblings()[0].innerHTML;
+ var text=$(this).parent().siblings()[0].innerText;
const el=document.createElement('textarea');
el.value=text;document.body.appendChild(el);
el.select();document.execCommand('copy');
document.body.removeChild(el);
- alert('copied to clipboard');
})
}
let code = document.querySelectorAll('pre'),