diff --git a/index.html b/index.html index 162bdd5..8f429ab 100644 --- a/index.html +++ b/index.html @@ -271,7 +271,7 @@

Clipboard

-

Urls

+

URLs

diff --git a/script.js b/script.js index 4b84490..f7db11b 100644 --- a/script.js +++ b/script.js @@ -6,8 +6,8 @@ const site2 = "https://quranwbw.com/"; // https://tanzil.net/#2:6 const site3 = "https://tanzil.net/"; -const jump = `Quran - Clipboard - Urls`; -const jumpTafsir = `Quran - Tafsir - Clipboard - Urls`; +const jump = `Quran - Clipboard - URLs`; +const jumpTafsir = `Quran - Tafsir - Clipboard - URLs`; // copy variables let fullc, arc, enc, tafsirCopy; @@ -199,20 +199,24 @@ document.getElementById("urlForm").addEventListener("submit", function (e) { "buttons" ).innerHTML = ` - `; + // URLs + document.getElementById("result").innerHTML = + "URLs
"; + // QuranCom document.getElementById( "result" - ).innerHTML = `
  • ${surah}:${ayahNum} on Quran.com
  • `; + ).innerHTML += `
  • Quran.com: ${surah}:${ayahNum}
  • `; // QuranWBW document.getElementById( "result" - ).innerHTML += `
  • ${surah}:${ayahNum} on QuranWBW
  • `; + ).innerHTML += `
  • QuranWBW: ${surah}:${ayahNum}
  • `; // Tanzil document.getElementById( "result" - ).innerHTML += `
  • ${surah}:${ayahNum} on Tanzil (Translation: Hilali)
  • `; + ).innerHTML += `
  • Tanzil: ${surah}:${ayahNum} (Translation: Hilali)
  • `; // Append and copy ayah getAyah(surah, ayahNum, lang) @@ -252,7 +256,7 @@ document.getElementById("urlForm").addEventListener("submit", function (e) { console.error("Error fetching data:", error); document.getElementById( "quran" - ).innerHTML = `${error}

    Potential culprits:
    - Website/Network problem.
    - Are you sure the Ayah number is correct for that Surah?

    Try the Urls below instead.`; + ).innerHTML = `${error}

    Potential culprits:
    - Website/Network problem.
    - Are you sure the Ayah number is correct for that Surah?

    Try the URLs below instead.`; }); if (!tafsirHTML == "") { @@ -284,7 +288,7 @@ document.getElementById("urlForm").addEventListener("submit", function (e) { console.error("Error fetching tafsir: ", error); document.getElementById( "tafsir-print" - ).innerHTML = `${error}

    Potential culprits:
    - Website/Network problem.
    - Are you sure the Ayah number is correct for that Surah?

    Try the Urls below instead.`; + ).innerHTML = `${error}

    Potential culprits:
    - Website/Network problem.
    - Are you sure the Ayah number is correct for that Surah?

    Try the URLs below instead.`; }); // jumpers top and bottom