Location
Ashburn , United States
Fajar

Available Translations

0 results
Surah Arabic Ayat , Audio and Translations

Listen Surah

], trackCount = tracks.length, npAction = $('#npAction'), npTitle = $('#npTitle'), audio = $('#audio1').bind('play', function() { playing = true; npAction.text('Now Playing:'); }).bind('pause', function() { playing = false; npAction.text('Paused:'); }).bind('ended', function() { npAction.text('Paused:'); if((index + 1) < trackCount) { index++; loadTrack(index); audio.play(); } else { audio.pause(); index = 0; loadTrack(index); } }).get(0), btnPrev = $('#btnPrev').click(function() { if((index - 1) > -1) { index--; loadTrack(index); if(playing) { audio.play(); } } else { audio.pause(); index = 0; loadTrack(index); } }), btnNext = $('#btnNext').click(function() { if((index + 1) < trackCount) { index++; loadTrack(index); if(playing) { audio.play(); } } else { audio.pause(); index = 0; loadTrack(index); } }), loadTrack = function(id) { $('.plSel').removeClass('plSel'); $('#plTrack>div:eq(' + id + ')').addClass('plSel'); npTitle.text(tracks[id].name); index = id; audio.src = tracks[id].file; }, displayTrack = function(){ var parent = $('#plTrack'); $.each(tracks, function(i, track) { $('
').addClass('row') .append($('
').addClass('col-sm').text(track.track)) .append($('
').addClass('col-sm').text(track.name)) .append($('
').addClass('col-sm').text(track.length)) .appendTo(parent); }); }, playTrack = function(id) { loadTrack(id); audio.play(); }; displayTrack(); loadTrack(index); } });