summaryrefslogtreecommitdiff
path: root/demo/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'demo/page.html')
-rw-r--r--demo/page.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/demo/page.html b/demo/page.html
new file mode 100644
index 0000000..5d16c82
--- /dev/null
+++ b/demo/page.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <script>
+ window.addEventListener("message", (e) => {
+ if (e.data === "print") {
+ window.print();
+ }
+ });
+ </script>
+</head>
+
+<body>
+ <main>
+ <h1>Hello World</h1>
+ <p>This is an example document</p>
+ </main>
+</body>
+
+</html>