Skip to content

Add license links to remaining JS files #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions static/check_update.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -56,3 +57,4 @@ async function checkOtherInstances() {
window.addEventListener('load', checkOtherInstances);

checkInstanceUpdateStatus();
// @license-end
4 changes: 3 additions & 1 deletion static/copy.js
Original file line number Diff line number Diff line change
@@ -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);
}
Expand All @@ -6,4 +7,5 @@ async function set_listener() {
document.getElementById('copy').addEventListener('click', copy);
}

window.addEventListener('load', set_listener);
window.addEventListener('load', set_listener);
// @license-end
4 changes: 3 additions & 1 deletion static/highlighted.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
document.querySelector('#commentQueryForms').scrollIntoView();
// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
document.querySelector('#commentQueryForms').scrollIntoView();
// @license-end