Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadsarfarazafzal authored Feb 14, 2024
1 parent 6d94637 commit 0e57f5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ decisiondiv.addEventListener("click", () => {
document.getElementsByClassName("nasheedtitle")[0].innerText =
nasheeds[songIndex + i].nasheedName;
document.getElementsByClassName("playingLink")[0].href =
nasheeds[songIndex + i].originalLink;
nasheeds[songIndex + i].originalLink;
document.getElementsByClassName("mobBackCover")[0].src = nasheeds[songIndex + i].coverPath;
document.getElementById("length").innerText =
nasheeds[songIndex + i].nasheedDuration;
if (nasheed.paused) {
Expand All @@ -536,7 +537,8 @@ decisiondiv.addEventListener("click", () => {
document.getElementsByClassName("nasheedtitle")[0].innerText =
nasheeds[i].nasheedName;
document.getElementsByClassName("playingLink")[0].href =
nasheeds[i].originalLink;
nasheeds[i].originalLink;
document.getElementsByClassName("mobBackCover")[0].src = nasheeds[i].coverPath;
document.getElementById("length").innerText =
nasheeds[i].nasheedDuration;
if (nasheed.paused) {
Expand Down

0 comments on commit 0e57f5d

Please sign in to comment.