From 952b16883f2f0d8e65e5f0e0af3c291e0a912849 Mon Sep 17 00:00:00 2001 From: Jacob Willden <67853915+jacob-willden@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:30:17 -0600 Subject: [PATCH] Add license links to remaining scripts --- static/check_update.js | 2 ++ static/copy.js | 4 +++- static/highlighted.js | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/static/check_update.js b/static/check_update.js index 4cd745b..e525fe1 100644 --- a/static/check_update.js +++ b/static/check_update.js @@ -1,3 +1,4 @@ +// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 async function checkInstanceUpdateStatus() { try { const response = await fetch('/commits.atom'); @@ -56,3 +57,4 @@ async function checkOtherInstances() { window.addEventListener('load', checkOtherInstances); checkInstanceUpdateStatus(); +// @license-end \ No newline at end of file diff --git a/static/copy.js b/static/copy.js index d7c7dd4..9dba780 100644 --- a/static/copy.js +++ b/static/copy.js @@ -1,3 +1,4 @@ +// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 async function copy() { await navigator.clipboard.writeText(document.getElementById('bincode_str').value); } @@ -6,4 +7,5 @@ async function set_listener() { document.getElementById('copy').addEventListener('click', copy); } -window.addEventListener('load', set_listener); \ No newline at end of file +window.addEventListener('load', set_listener); +// @license-end \ No newline at end of file diff --git a/static/highlighted.js b/static/highlighted.js index 6c7079c..5dbe8c9 100644 --- a/static/highlighted.js +++ b/static/highlighted.js @@ -1 +1,3 @@ -document.querySelector('#commentQueryForms').scrollIntoView(); \ No newline at end of file +// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 +document.querySelector('#commentQueryForms').scrollIntoView(); +// @license-end \ No newline at end of file