* Code Cleanup - dahh
This commit is contained in:
14
player.js
14
player.js
@@ -7,7 +7,7 @@
|
|||||||
let titleEl = document.getElementById("track-name");
|
let titleEl = document.getElementById("track-name");
|
||||||
let coverArtEl = document.getElementsByClassName("music-player")[0];
|
let coverArtEl = document.getElementsByClassName("music-player")[0];
|
||||||
const modalEl = document.getElementById("intro-modal");
|
const modalEl = document.getElementById("intro-modal");
|
||||||
const uploadInfoEl = document.getElementById("upload-info");
|
// const uploadInfoEl = document.getElementById("upload-info");
|
||||||
const fileUploadEl = document.getElementById("file-upload");
|
const fileUploadEl = document.getElementById("file-upload");
|
||||||
let volume = 1;
|
let volume = 1;
|
||||||
openDialog();
|
openDialog();
|
||||||
@@ -21,13 +21,13 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
uploadInfoEl.addEventListener("click", () => {
|
// uploadInfoEl.addEventListener("click", () => {
|
||||||
const confirmText = `Do you really want to change your playlist?\nThis will replace all your retrowave music history.\nIf you are sure about this, make sure to upload a valid json file probably downloaded using history link.`;
|
// const confirmText = `Do you really want to change your playlist?\nThis will replace all your retrowave music history.\nIf you are sure about this, make sure to upload a valid json file probably downloaded using history link.`;
|
||||||
|
|
||||||
if (confirm(confirmText)) {
|
// if (confirm(confirmText)) {
|
||||||
fileUploadEl.click();
|
// fileUploadEl.click();
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
function listenUploadFileChange() {
|
function listenUploadFileChange() {
|
||||||
fileUploadEl.onchange = function () {
|
fileUploadEl.onchange = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user