OpenEugene / little-help-book-web

Human service resource guide powered by White Bird Clinic
MIT License
6 stars 4 forks source link

Print button #130

Closed ArthurSmid closed 3 years ago

ArthurSmid commented 3 years ago

The category, subcategory, and provider pages each have a print button. For example, when clicking the print button on the subcategory page, a function generates a PDF of the page contents, searches for a printer connection and brings up a print dialogue box. If no printer is found, maybe a download PDF option or send PDF to an email address?

Some resources:

https://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm

https://www.tutorialspoint.com/How-to-print-a-page-using-JavaScript

https://www.codexworld.com/print-page-area-javascript/

ArthurSmid commented 3 years ago

The function is now on the category and subcategory pages, and I'll add it to the provider page after Daniel's finishes refactoring the JavaScript code used for the provider page.