Add licensing stuff

(also makes the tool work with librejs)
This commit is contained in:
magmaus3 2023-07-25 15:19:36 +02:00
parent 460a2da2cd
commit 4b39876a7d
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251

View file

@ -5,6 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<script> <script>
// @license http://www.wtfpl.net/txt/copying/ WTFPL
function infohashToBase64(infohash) { function infohashToBase64(infohash) {
// Converts an hex infohash into base64. // Converts an hex infohash into base64.
@ -86,6 +87,7 @@
document.getElementById("decodeResult").innerText = base64ToInfohash(urlParams.get("base64value")) document.getElementById("decodeResult").innerText = base64ToInfohash(urlParams.get("base64value"))
} }
}); });
// @license-end
</script> </script>
<style> <style>
body { body {
@ -200,6 +202,11 @@
You can check the source code by downloading the page (everything is stored in a single html file), You can check the source code by downloading the page (everything is stored in a single html file),
by going to your browser's devtools or on <a href="https://codeberg.org/magmaus3/infohash2base64">Codeberg</a>. by going to your browser's devtools or on <a href="https://codeberg.org/magmaus3/infohash2base64">Codeberg</a>.
</p> </p>
<h3>License</h3>
<p>Copyright © 2023 magmaus3 &lt;magmaus3@disroot.org&gt;</p>
<p>This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.</p>
</div> </div>
</main> </main>
</body> </body>