script.js aktualisiert
This commit is contained in:
parent
f8c9c0f122
commit
ba1e1889e2
1 changed files with 4 additions and 9 deletions
13
script.js
13
script.js
|
|
@ -5,15 +5,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
const newPresetUrlInput = document.getElementById('new-preset-url');
|
||||
let currentPlayingItem = null; // Variable zum Speichern des aktuell spielenden Elements
|
||||
|
||||
const exportButton = document.createElement('button');
|
||||
exportButton.textContent = 'Presets exportieren';
|
||||
const exportButton = document.getElementById('export-button');
|
||||
const importButton = document.getElementById('import-button');
|
||||
exportButton.addEventListener('click', exportPresets);
|
||||
document.body.appendChild(exportButton);
|
||||
|
||||
const importButton = document.createElement('button');
|
||||
importButton.textContent = 'Presets importieren';
|
||||
importButton.addEventListener('click', importPresets);
|
||||
document.body.appendChild(importButton);
|
||||
|
||||
loadExistingPresets();
|
||||
|
||||
|
|
@ -150,7 +145,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
|
||||
function importPresets() {
|
||||
const input = document.createElement('input');
|
||||
input.type = 'file';
|
||||
|
|
@ -179,7 +174,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
};
|
||||
input.click();
|
||||
}
|
||||
|
||||
|
||||
const stopButton = document.querySelector('.stop-button');
|
||||
const progressBar = document.getElementById('progress-bar');
|
||||
const currentStationName = document.getElementById('current-station-name');
|
||||
|
|
|
|||
Loading…
Reference in a new issue