Commit 35f7adea authored by Jérôme Jutteau's avatar Jérôme Jutteau

[FEATURE] Advertise javascript license for LibreJS

closes #172Signed-off-by: Jérôme Jutteau's avatarJerome Jutteau <mojo@couak.net>
parent 1b5fa297
Pipeline #21899479 passed with stage
in 1 minute and 25 seconds
......@@ -270,6 +270,7 @@ else {
</div>
<script type="text/javascript" lang="Javascript">
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt GPL-v3-or-Later
document.getElementById('error_pop').style.display = 'none';
document.getElementById('uploading').style.display = 'none';
document.getElementById('upload_finished').style.display = 'none';
......@@ -284,5 +285,6 @@ else {
addCopyListener('preview_link_button', 'preview_link');
addCopyListener('direct_link_button', 'direct_link');
addCopyListener('delete_link_button', 'delete_link');
// @license-end
</script>
<?php require(JIRAFEAU_ROOT . 'lib/template/footer.php'); ?>
......@@ -19,13 +19,13 @@
*/
header('Content-Type: text/javascript');
define('JIRAFEAU_ROOT', dirname(__FILE__) . '/../');
require(JIRAFEAU_ROOT . 'lib/settings.php');
require(JIRAFEAU_ROOT . 'lib/functions.php');
require(JIRAFEAU_ROOT . 'lib/lang.php');
?>
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt GPL-v3-or-Later
var web_root = "<?php echo $cfg['web_root']; ?>";
var lang_array = <?php echo json_lang_generator(null); ?>;
......@@ -746,3 +746,4 @@ function addCopyListener(button_id, link_id) {
.addEventListener("click", function() {
copyLinkToClipboard(link_id);});
}
// @license-end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment