diff --git a/audioPlayer.js b/audioPlayer.js index 2ef9b48..ec654fb 100644 --- a/audioPlayer.js +++ b/audioPlayer.js @@ -1,3 +1,20 @@ +/* FediMusicPlayer - An HTML5 + Javascript Music Player + * Copyright (C) 2023 + * + * 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 . + */ + 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 diff --git a/audioPlayerPlaylist.js b/audioPlayerPlaylist.js index b4e3496..2fe3c79 100644 --- a/audioPlayerPlaylist.js +++ b/audioPlayerPlaylist.js @@ -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 + * + * 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 . + */ + +/* 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"], diff --git a/index.html b/index.html index 7505abc..47d7a27 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,19 @@ + + + + + + + + + + + + + + + + diff --git a/installation/fedimusicplayer.nginx b/installation/fedimusicplayer.nginx index fa39234..1f6f5c6 100644 --- a/installation/fedimusicplayer.nginx +++ b/installation/fedimusicplayer.nginx @@ -1,3 +1,19 @@ +# FediMusicPlayer - An HTML5 + Javascript Music Player +# Copyright (C) 2023 +# +# 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 . + server { server_name example.tld; listen 80; diff --git a/installation/panel.html b/installation/panel.html index 5e8c715..3b9d9a9 100644 --- a/installation/panel.html +++ b/installation/panel.html @@ -1,3 +1,19 @@ + + + + + + + + + + + + + + + + diff --git a/styles.css b/styles.css index bf660f1..b76896b 100644 --- a/styles.css +++ b/styles.css @@ -1,3 +1,20 @@ +/* FediMusicPlayer - An HTML5 + Javascript Music Player + * Copyright (C) 2023 + * + * 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 . + */ + * { margin: 0; padding: 0;