diff --git a/public/docs/slide-example.md b/public/docs/slide-example.md index e2e024b1a..411f31d48 100644 --- a/public/docs/slide-example.md +++ b/public/docs/slide-example.md @@ -266,4 +266,12 @@ Press `B` or `.` on your keyboard to pause the presentation. This is helpful whe --- +## Print your Slides + +Down below you can find a print icon. + +After you click on it, use the print function of your browser (either CTRL+P or cmd+P) to print the slides as PDF. + +--- + # The End diff --git a/public/js/slide.js b/public/js/slide.js index 59a352ec0..1eb8dfd48 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -14,6 +14,7 @@ window.lastchangetime = window.lastchangeui.time.attr('data-updatetime') updateLastChange() const url = window.location.pathname $('.ui-edit').attr('href', `${url}/edit`) +$('.ui-print').attr('href', `${url}?print-pdf`) $(document).ready(() => { // tooltip diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 7b9ae29d3..d9be51f9a 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -69,7 +69,7 @@   - <%- viewcount %> views + <%- viewcount %> views
<% if(ownerprofile && owner !== lastchangeuser) { %>