Skip to content

Commit

Permalink
Update javascript.html to look for BibTeX button
Browse files Browse the repository at this point in the history
Fixes #350
  • Loading branch information
twhiteaker committed Nov 22, 2019
1 parent 0fe9ae4 commit 3a963ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/javascript.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<script type="text/javascript">
document.body.addEventListener('click', copy);
var bibButton = document.getElementById("bibtext-button");
if (bibButton) {
bibButton.addEventListener('click', copy);
}


function copy(e) {
// copy data to placeholder - Don't use .innerText, use .textContent
Expand Down

0 comments on commit 3a963ff

Please sign in to comment.