Added GPL3 license
This commit is contained in:
parent
9339ddd991
commit
44a6fe4d58
@ -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)
|
function appendMusicList(el, title, time)
|
||||||
{
|
{
|
||||||
const tr = document.createElement("tr")
|
const tr = document.createElement("tr")
|
||||||
@ -5,7 +22,6 @@ function appendMusicList(el, title, time)
|
|||||||
const tdtime = document.createElement("td")
|
const tdtime = document.createElement("td")
|
||||||
const div = document.createElement("div")
|
const div = document.createElement("div")
|
||||||
|
|
||||||
tr.setAttribute("id", "queue-item")
|
|
||||||
tdtime.setAttribute("width", "50")
|
tdtime.setAttribute("width", "50")
|
||||||
tdtime.innerHTML = time
|
tdtime.innerHTML = time
|
||||||
div.setAttribute("class", "ellipsis")
|
div.setAttribute("class", "ellipsis")
|
||||||
@ -20,7 +36,6 @@ function appendMusicList(el, title, time)
|
|||||||
return tr
|
return tr
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/semibran/wrap-around/blob/master/index.js
|
|
||||||
function wrap(idx, len)
|
function wrap(idx, len)
|
||||||
{
|
{
|
||||||
return idx >= 0 ? idx % len : (idx % len + len) % len
|
return idx >= 0 ? idx % len : (idx % len + len) % len
|
||||||
|
@ -1,9 +1,27 @@
|
|||||||
// Each list in the musicList should contain 5 strings as follows
|
/* FediMusicPlayer - An HTML5 + Javascript Music Player
|
||||||
// 1: Path to the music file
|
* Copyright (C) 2023 <yanderefed@proton.me>
|
||||||
// 2: Track title
|
*
|
||||||
// 3: Artist name
|
* This program is free software: you can redistribute it and/or modify
|
||||||
// 4: Track length
|
* it under the terms of the GNU General Public License as published by
|
||||||
// 5: Path to the art file
|
* 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 = [
|
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"],
|
["media/declare_war_on_all_vocaloid.opus", "Declare War on All Vocaloid", "Sukone Tei", "05:53", "art/declare_war_on_all_vocaloid.png"],
|
||||||
|
16
index.html
16
index.html
@ -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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -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 {
|
||||||
server_name example.tld;
|
server_name example.tld;
|
||||||
listen 80;
|
listen 80;
|
||||||
|
@ -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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
17
styles.css
17
styles.css
@ -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;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user