From 04b815372c3adfd973c69b6ac876615ac32fc1d0 Mon Sep 17 00:00:00 2001 From: Arkadiusz Wieczorek Date: Sat, 6 Jan 2024 12:55:07 +0100 Subject: [PATCH] Change Funkhwale to Castopod, update some links --- index.html | 14 +++++++------- script.js | 57 ++++++++++++++++++++++-------------------------------- 2 files changed, 30 insertions(+), 41 deletions(-) diff --git a/index.html b/index.html index 2c30f00..5e4a57f 100644 --- a/index.html +++ b/index.html @@ -37,13 +37,13 @@
- +
@@ -104,11 +104,11 @@ - + \ No newline at end of file diff --git a/script.js b/script.js index 7260f66..1b3e26f 100644 --- a/script.js +++ b/script.js @@ -1,18 +1,17 @@ function generateHtml() { if ( document.querySelector("#episode_name").value && - document.querySelector("#funkwhale").value && + document.querySelector("#castopod").value && document.querySelector("#peertube").value && document.querySelector("#youtube").value ) { - let funkwhale_id; + let castopod_url; let peertube_id; try { - funkwhale_id = document - .querySelector("#funkwhale") - .value.split("/tracks/")[1]; + castopod_url = document + .querySelector("#castopod").value } catch (error) { - alert("Podaj prawidłową wartością dla funkwhale"); + alert("Podaj link do odcinka w Castopod"); } try { @@ -25,21 +24,12 @@ function generateHtml() { const html = `
-
-
-
@@ -47,7 +37,7 @@ function generateHtml() { `; - console.log(html); + console.log('Copied to clipboard'); document.querySelector("textarea").value = html; document.querySelector(".preview").innerHTML = html; }