Added GPL3 license

This commit is contained in:
Anon 2023-04-23 00:17:41 -07:00
parent 9339ddd991
commit 44a6fe4d58
6 changed files with 106 additions and 8 deletions

View File

@ -1,3 +1,20 @@
/* FediMusicPlayer - An HTML5 + Javascript Music Player
* Copyright (C) 2023 <yanderefed@proton.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
function appendMusicList(el, title, time)
{
const tr = document.createElement("tr")
@ -5,7 +22,6 @@ function appendMusicList(el, title, time)
const tdtime = document.createElement("td")
const div = document.createElement("div")
tr.setAttribute("id", "queue-item")
tdtime.setAttribute("width", "50")
tdtime.innerHTML = time
div.setAttribute("class", "ellipsis")
@ -20,7 +36,6 @@ function appendMusicList(el, title, time)
return tr
}
// https://github.com/semibran/wrap-around/blob/master/index.js
function wrap(idx, len)
{
return idx >= 0 ? idx % len : (idx % len + len) % len

View File

@ -1,9 +1,27 @@
// Each list in the musicList should contain 5 strings as follows
// 1: Path to the music file
// 2: Track title
// 3: Artist name
// 4: Track length
// 5: Path to the art file
/* FediMusicPlayer - An HTML5 + Javascript Music Player
* Copyright (C) 2023 <yanderefed@proton.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* Each list in the musicList should contain 5 strings as follows
* 1: Path to the music file
* 2: Track title
* 3: Artist name
* 4: Track length
* 5: Path to the art file
*/
const musicList = [
["media/declare_war_on_all_vocaloid.opus", "Declare War on All Vocaloid", "Sukone Tei", "05:53", "art/declare_war_on_all_vocaloid.png"],

View File

@ -1,3 +1,19 @@
<!-- FediMusicPlayer - An HTML5 + Javascript Music Player -->
<!-- Copyright (C) 2023 <yanderefed@proton.me> -->
<!-- This program is free software: you can redistribute it and/or modify -->
<!-- it under the terms of the GNU General Public License as published by -->
<!-- the Free Software Foundation, either version 3 of the License, or -->
<!-- (at your option) any later version. -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU General Public License for more details. -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<!DOCTYPE html>
<html lang="en">
<head>

View File

@ -1,3 +1,19 @@
# FediMusicPlayer - An HTML5 + Javascript Music Player
# Copyright (C) 2023 <yanderefed@proton.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
server {
server_name example.tld;
listen 80;

View File

@ -1,3 +1,19 @@
<!-- FediMusicPlayer - An HTML5 + Javascript Music Player -->
<!-- Copyright (C) 2023 <yanderefed@proton.me> -->
<!-- This program is free software: you can redistribute it and/or modify -->
<!-- it under the terms of the GNU General Public License as published by -->
<!-- the Free Software Foundation, either version 3 of the License, or -->
<!-- (at your option) any later version. -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU General Public License for more details. -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<!DOCTYPE html>
<html lang="en">
<head>

View File

@ -1,3 +1,20 @@
/* FediMusicPlayer - An HTML5 + Javascript Music Player
* Copyright (C) 2023 <yanderefed@proton.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
* {
margin: 0;
padding: 0;