From 360ecbdc1af800f34edcb454f4b40df7f9481e02 Mon Sep 17 00:00:00 2001 From: laercioacj Date: Mon, 27 Feb 2023 10:01:32 -0300 Subject: [PATCH 1/2] Update documentation --- index.html | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 3d9aefc..1dd9c5c 100644 --- a/index.html +++ b/index.html @@ -174,19 +174,36 @@

Example

Print.js accepts an object with arguments. Let's print the form again, but now we will add a header to the page:

- -

- <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', header: 'PrintJS - Form Element Selection' })">
-    Print Form with Header
- </button>
+						
+						

+						 <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', header: 'PrintJS - Form Element Selection' })">
+								Print Form with Header
+						 </button>
 
-
-

Result:

+
+

Result:

+
+ +

Print.js accepts an object with arguments. Let's print the form again, but now we will add a footer to the page:

+ + +

+						 <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', footer: 'PrintJS - By Crabbly' })">
+								Print Form with Footer
+						 </button>
+
+						
+

Result:

+ + + From f7404b5861cec7c14d25b1b89297f9e2a1f84276 Mon Sep 17 00:00:00 2001 From: laercioacj Date: Mon, 27 Feb 2023 10:10:13 -0300 Subject: [PATCH 2/2] Update print.js --- index.html | 24 ++++++++++++------------ print.css | 2 +- print.js | 3 ++- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 1dd9c5c..07def77 100644 --- a/index.html +++ b/index.html @@ -174,13 +174,13 @@

Example

Print.js accepts an object with arguments. Let's print the form again, but now we will add a header to the page:

- -

-						 <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', header: 'PrintJS - Form Element Selection' })">
-								Print Form with Header
-						 </button>
+
+

+ <button type="button" onclick="printJS({ printable: 'printJS-form', type: 'html', header: 'PrintJS - Form Element Selection' })">
+    Print Form with Header
+ </button>
 
-						
+

Result: