Skip to content

Commit a2084e5

Browse files
committed
PDF book download link
1 parent 28dac1b commit a2084e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_static/download_pdf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
document.addEventListener('DOMContentLoaded', function(){
2+
/// download whole book PDF
3+
document.querySelectorAll('.btn-download-pdf-button').forEach(a => {
4+
a.onclick = () => window.open("/state-of-open-source-ai.pdf");
5+
});
6+
});

0 commit comments

Comments
 (0)