alps/themes/alps/assets/print.js
Mark Dain e64550207c Identify JavaScript as MIT/Expat for LibreJS
This commit introduces LibreJS compatible `@license' blocks as per
https://www.gnu.org/software/librejs/free-your-javascript.html

The magnet URI can be opened in a BitTorrent client to retrieve a copy
of the MIT/Expat license. Section 3.2.2.1 from the above link has a
list of magnet URIs for various free software licenses.
2021-04-03 09:03:55 -04:00

11 lines
272 B
JavaScript

// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
const print = document.getElementById("print");
print.style.display = "inherit";
print.addEventListener("click", e => {
e.preventDefault();
window.print();
});
// @license-end