added license hints to the Frio javascript files

This commit is contained in:
Tobias Diekershoff 2020-09-27 18:36:33 +02:00
parent 7c5f3a9c96
commit 1e7d9fdcf6
17 changed files with 33 additions and 1 deletions

View File

@ -18,7 +18,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="{{$baseurl}}/manifest" /> <link rel="manifest" href="{{$baseurl}}/manifest" />
<script> <script>
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167 // Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone"); (function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
// |license-end // |license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(function() { $(function() {
// Jot attachment live preview. // Jot attachment live preview.
let $textarea = $('textarea[name=body]'); let $textarea = $('textarea[name=body]');
@ -55,3 +56,4 @@ function updateLocationButtonDisplay(location_button, location_input)
location_button.title = location_button.dataset.titleSet; location_button.title = location_button.dataset.titleSet;
} }
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(document).ready(function() { $(document).ready(function() {
// Go to the permissions tab if the checkbox is checked. // Go to the permissions tab if the checkbox is checked.
$('body').on("click", "#id_share", function() { $('body').on("click", "#id_share", function() {
@ -107,3 +108,4 @@ function enableDisableFinishDate() {
else else
$('#id_finish_text').prop("disabled", false); $('#id_finish_text').prop("disabled", false);
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* Filebrowser - Friendica Communications Server * Filebrowser - Friendica Communications Server
* *
@ -251,3 +252,4 @@ var FileBrowser = {
}); });
} }
}; };
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/* /*
* The javascript for friendicas hovercard. Bootstraps popover is needed. * The javascript for friendicas hovercard. Bootstraps popover is needed.
* *
@ -183,3 +184,4 @@ function getHoverCardContent(contact_url, callback) {
}, },
}); });
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
// We append the linkPreview to a global Variable to make linkPreview // We append the linkPreview to a global Variable to make linkPreview
// accessable on other places. Note: search on other places before you // accessable on other places. Note: search on other places before you
// delete or move the variable. // delete or move the variable.
@ -37,3 +38,4 @@ function jotGetLink() {
autosize.update($("#profile-jot-text")); autosize.update($("#profile-jot-text"));
} }
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* Javascript for the admin module * Javascript for the admin module
*/ */
@ -66,3 +67,4 @@ function details(uid) {
$("#user-" + uid).toggleClass("opened"); $("#user-" + uid).toggleClass("opened");
return false; return false;
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
var batchConfirmed = false; var batchConfirmed = false;
@ -42,3 +43,4 @@ function batch_submit_handler(name, value) {
return false; return false;
} }
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* Javascript for the display module * Javascript for the display module
*/ */
@ -9,3 +10,4 @@ $(window).load(function(){
// Scroll to the Item by its GUID // Scroll to the Item by its GUID
scrollToItem('item-' + itemGuid); scrollToItem('item-' + itemGuid);
}); });
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* @file view/theme/frio/js/mod_events.js * @file view/theme/frio/js/mod_events.js
* Initialization of the fullCalendar and format the output. * Initialization of the fullCalendar and format the output.
@ -256,3 +257,4 @@ function formatListViewEvent(event) {
return formatted; return formatted;
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* @file view/theme/frio/js/mod_group.js * @file view/theme/frio/js/mod_group.js
@ -86,3 +87,4 @@ function filterList() {
} }
} }
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* Javascript for the notifications module * Javascript for the notifications module
@ -34,3 +35,4 @@ function isIntroID() {
} }
return false; return false;
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(document).ready(function() { $(document).ready(function() {
@ -46,3 +47,4 @@ $(window).load(function() {
"height": pheight "height": pheight
}); });
}); });
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/** /**
* Contains functions for bootstrap modal handling. * Contains functions for bootstrap modal handling.
*/ */
@ -397,3 +398,4 @@ function eventEdit(url) {
loadModalTitle(); loadModalTitle();
}); });
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/* /*
* The file contains functions for text editing and commenting * The file contains functions for text editing and commenting
*/ */
@ -225,3 +226,4 @@ function dropItem(url, elementId) {
}); });
} }
} }
// @license-end

View File

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
var jotcache = ''; //The jot cache. We use it as cache to restore old/original jot content var jotcache = ''; //The jot cache. We use it as cache to restore old/original jot content
@ -799,3 +800,4 @@ function toggleDropdownText(elm) {
function hasClass(elem, cls) { function hasClass(elem, cls) {
return (" " + elem.className + " " ).indexOf( " "+cls+" " ) > -1; return (" " + elem.className + " " ).indexOf( " "+cls+" " ) > -1;
} }
// @license-end

View File

@ -39,8 +39,10 @@
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="{{$baseurl}}/manifest" /> <link rel="manifest" href="{{$baseurl}}/manifest" />
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167 // Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone"); (function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
// |license-end
</script> </script>
<link rel="search" <link rel="search"