Skip to content

Commit

Permalink
Add print demo page (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston authored Feb 7, 2024
1 parent 340bca2 commit c50975a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/print/iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Print iframe</title>
</head>
<body>
<p><a href="../../index.html">[Home]</a></p>


<iframe src="print.html" ></iframe>

</body>
</html>
15 changes: 15 additions & 0 deletions features/print/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Print</title>
</head>
<body>
<p><a href="../../index.html">[Home]</a></p>

<p><a href="print.html">Print</a></p>
<p><a href="iframe.html">Print iframe</a></p>

</body>
</html>
20 changes: 20 additions & 0 deletions features/print/print.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Print</title>
</head>
<body>
<p><a href="../../index.html">[Home]</a></p>

This document will call print on load.

<script>
window.addEventListener("load", (event) => {
window.print()
})
</script>

</body>
</html>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ <h2>Browser Features</h2>
<li><a href="./features/stack-tracing/">Stack tracing</a></li>
<li><a href="./features/canvas-draw.html">Canvas draw</a></li>
<li><a href="./features/download/">Downloads</a></li>
<li><a href="./features/print/">Print</a></li>
<li><a href="./features/fonts.html">Fonts</a></li>
<li><a href="./features/autoconsent/">Cookie consent popups</a></li>
<li><a href="./features/autoconsent/banner.html">Cookie consent notice banners</a></li>
Expand Down

0 comments on commit c50975a

Please sign in to comment.