Skip to content

Commit

Permalink
PDF book download link
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 12, 2023
1 parent 28dac1b commit a2084e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _static/download_pdf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
document.addEventListener('DOMContentLoaded', function(){
/// download whole book PDF
document.querySelectorAll('.btn-download-pdf-button').forEach(a => {
a.onclick = () => window.open("/state-of-open-source-ai.pdf");
});
});

0 comments on commit a2084e5

Please sign in to comment.