From 37caeab31a1f86ed7e3d196f02c1384f6cd889ec Mon Sep 17 00:00:00 2001 From: luca0N! Date: Sun, 30 May 2021 22:31:48 -0300 Subject: [PATCH] Add JS license information for LibreJS --- res/js/defs.js | 2 ++ res/js/io.js | 4 ++-- res/js/js.js | 2 ++ res/js/main.js | 7 ++++++- session.html | 2 ++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/res/js/defs.js b/res/js/defs.js index 51ecbe3..e4da803 100644 --- a/res/js/defs.js +++ b/res/js/defs.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later /* * Stairway.js: a simple JavaScript privacy quiz * Copyright © 2021 luca0N! @@ -21,3 +22,4 @@ */ var onReady; +// @license-end diff --git a/res/js/io.js b/res/js/io.js index 3f21d56..aec04b9 100644 --- a/res/js/io.js +++ b/res/js/io.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later /* * Stairway.js: a simple JavaScript privacy quiz * Copyright © 2021 luca0N! @@ -35,5 +36,4 @@ function sendGetRequest(file, listener){ request.open("GET", file); request.send(); } - - +// @license-end diff --git a/res/js/js.js b/res/js/js.js index 59833a9..54f759c 100644 --- a/res/js/js.js +++ b/res/js/js.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later /* * Stairway.js: a simple JavaScript privacy quiz * Copyright © 2021 luca0N! @@ -26,3 +27,4 @@ window.onload = function() { onReady(); // Call onReady in order to execute main code (this calls whatever function was attached).. } +// @license-end diff --git a/res/js/main.js b/res/js/main.js index e6d8653..52efd40 100644 --- a/res/js/main.js +++ b/res/js/main.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later /* * Stairway.js: a simple JavaScript privacy quiz * Copyright © 2021 luca0N! @@ -150,6 +151,9 @@ function setUpStrings(){ document.getElementById('badge-' + grade).style['display'] = 'unset'; // Generate report elements. + let reports = document.getElementById('reports'); + // Clear the reports element. + reports.innerHTML = ''; for (let x = 0; x < choices.length; x++) for (let y = 0; y < choices[x].length; y++){ @@ -193,7 +197,7 @@ function setUpStrings(){ reportEl.appendChild(p); } - document.getElementById('reports').appendChild(reportEl); + reports.appendChild(reportEl); } // Hide quiz and then show the results. @@ -207,3 +211,4 @@ function setUpStrings(){ warning.style['display'] = 'none'; }); } +// @license-end diff --git a/session.html b/session.html index b48fd0f..f78fb27 100644 --- a/session.html +++ b/session.html @@ -90,5 +90,7 @@ BSD Windows --> +
+

Released under the GNU General Public License version 3 or later, by luca0N!