Skip to content

Commit

Permalink
Attempt only specifying landscape
Browse files Browse the repository at this point in the history
  • Loading branch information
asl97 committed Dec 26, 2023
1 parent 2cf6b6e commit 94af3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ <h1>Batch Card Printer</h1>
batch_cards.push(printer_card.outerHTML);
}
var a = window.open('', '', 'height=500, width=500');
a.document.write('<html><head><style>@page{size: A4 landscape;} body{background: skyblue;}</style></head><body>'+batch_cards.join('<div style="break-after:page"></div>')+'</body></html>');
a.document.write('<html><head><style>@page{size: landscape;} body{background: yellow;}</style></head><body>'+batch_cards.join('<div style="break-after:page"></div>')+'</body></html>');
a.document.close();
a.print();
}
Expand Down Expand Up @@ -1719,7 +1719,7 @@ <h1>Batch Card Printer</h1>
batch_cards.push(printer_card.outerHTML);
}
var a = window.open('', '', 'height=500, width=500');
a.document.write('<html><head><style>@page{size: A4 landscape;} body{background: skyblue;}</style></head><body>'+batch_cards.join('<div style="break-after:page"></div>')+'</body></html>');
a.document.write('<html><head><style>@page{size: landscape;} body{background: yellow;}</style></head><body>'+batch_cards.join('<div style="break-after:page"></div>')+'</body></html>');
a.document.close();
a.print();
}
Expand Down

0 comments on commit 94af3f0

Please sign in to comment.