assets/js/script.js
/**
     * jpFormatePlaylistObj
     * @description  create playlist object for jPlayer script
     */
jpFormatePlaylistObj
@description  create playlist object for jPlayer script
jpFormatePlaylistObj @description create playlist object for jPlayer script
function jpFormatePlaylistObj(playlistHtml) {
      var playlistObj = [];
      for (var i = 0; i < playlistHtml.length; i++) {
        var playlistItem = playlistHtml[i],
          itemData = $(playlistItem).data();
        playlistObj[i] = {};
        for (var key in itemData) {
          playlistObj[i][key.replace("jp", "").toLowerCase()] = itemData[key];
        }
      }
      return playlistObj;
    }
function jpFormatePlaylistObj ( playlistHtml ) { var playlistObj = [ ] ; for ( var i = 0 ; i < playlistHtml . length ; i ++ ) { var playlistItem = playlistHtml [ i ] , itemData = $ ( playlistItem ) . data ( ) ; playlistObj [ i ] = { } ; for ( var key in itemData ) { playlistObj [ i ] [ key . replace ( "jp" , "" ) . toLowerCase ( ) ] = itemData [ key ] ; } } return playlistObj ; }
jpFormatePlaylistObj
 @description  create playlist object for jPlayer script
jpFormatePlaylistObj @description create playlist object for jPlayer script
// Format object with audio