Org: HTML, add Expat licence magnet to included JS

This commit is contained in:
TEC 2021-04-17 12:33:46 +08:00
parent 424542405d
commit 1962cb211b
Signed by: tec
GPG Key ID: 779591AFDB81F06C
4 changed files with 5 additions and 1 deletions

View File

@ -20,5 +20,5 @@ sassc main.scss main.css
Then for combining the JS
#+begin_src shell
cat _*.js > main.js
ls _*.js | sort -V | xargs cat > main.js
#+end_src

View File

@ -0,0 +1 @@
// @license-end

View File

@ -0,0 +1 @@
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
function copyPreToClipbord(btn) {
const pre = btn.parentElement.parentElement.getElementsByTagName("PRE")[0];
const range = document.createRange();
@ -38,3 +39,4 @@ window.addEventListener('DOMContentLoaded', () => {
observer.observe(section);
});
});
// @license-end