diff options
Diffstat (limited to 'themes/alps/assets/print.js')
-rw-r--r-- | themes/alps/assets/print.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/alps/assets/print.js b/themes/alps/assets/print.js new file mode 100644 index 0000000..c4379ad --- /dev/null +++ b/themes/alps/assets/print.js @@ -0,0 +1,6 @@ +const print = document.getElementById("print"); +print.style.display = "inherit"; +print.addEventListener("click", e => { + e.preventDefault(); + window.print(); +}); |