function syncCountDownTime(currentTime, songDuration) {
		/*
  	Initialize time remaining.
  */
		var timeRemaining = '00:00';

		/*
  	Ensure that all values are defined.
  */
		if (currentTime != undefined && songDuration != undefined) {
			/*
   	Initialize the total current seconds and total duration seconds
   */
			var totalCurrentSeconds = parseInt(currentTime.seconds) + parseInt(currentTime.minutes) * 60 + parseInt(currentTime.hours) * 60 * 60;
			var totalDurationSeconds = parseInt(songDuration.seconds) + parseInt(songDuration.minutes) * 60 + parseInt(songDuration.hours) * 60 * 60;

			/*
   	If the two variables are numbers we continue the computing.
   */
			if (!isNaN(totalCurrentSeconds) && !isNaN(totalDurationSeconds)) {
				/*
    	Find the total remaining seconds.
    */
				var timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds;

				var remainingHours = Math.floor(timeRemainingTotalSeconds / 3600);
				var remainingMinutes = Math.floor((timeRemainingTotalSeconds - remainingHours * 3600) / 60);
				var remainingSeconds = timeRemainingTotalSeconds - remainingHours * 3600 - remainingMinutes * 60;

				timeRemaining = (remainingMinutes < 10 ? '0' + remainingMinutes : remainingMinutes) + ':' + (remainingSeconds < 10 ? '0' + remainingSeconds : remainingSeconds);

				if (remainingHours > 0) {
					timeRemaining = remainingHours + ':' + timeRemaining;
				}
			}
		}

		/*
  	Gets all of the song time selectors.
  */
		var timeSelectors = ['.amplitude-time-remaining[amplitude-main-time-remaining="true"]', '.amplitude-time-remaining[amplitude-playlist-main-time-remaining="' + _config2.default.active_playlist + '"]', '.amplitude-time-remaining[amplitude-song-index="' + _config2.default.active_index + '"]'];

		/*
  	Get all of the time selectors.
  */
		var timeRemainingSelectors = document.querySelectorAll(timeSelectors.join());

		/*
  	Set the time selector's inner html to the duration time for the song. The duration
  	time is computed by joining minutes and seconds.
  */
		for (var i = 0; i < timeRemainingSelectors.length; i++) {
			timeRemainingSelectors[i].innerHTML = timeRemaining;
		}
	}
/**
  * Updates the elements that show how much time is remaining in the song.
  *
  * @access public
  * @param {object} currentTime 	- A json object containing the parts for the current time for the song.
  * @param {object} durationTime - A json object conaining the parts for the duration time for the song.
  */
Updates the elements that show how much time is remaining in the song.
@access public
@param {object} currentTime         - A json object containing the parts for the current time for the song.
@param {object} durationTime - A json object conaining the parts for the duration time for the song.
Updates the elements that show how much time is remaining in the song . @access public @param { object } currentTime - A json object containing the parts for the current time for the song . @param { object } durationTime - A json object conaining the parts for the duration time for the song .
function syncCountDownTime(currentTime, songDuration) {
		var timeRemaining = '00:00';
		if (currentTime != undefined && songDuration != undefined) {
			var totalCurrentSeconds = parseInt(currentTime.seconds) + parseInt(currentTime.minutes) * 60 + parseInt(currentTime.hours) * 60 * 60;
			var totalDurationSeconds = parseInt(songDuration.seconds) + parseInt(songDuration.minutes) * 60 + parseInt(songDuration.hours) * 60 * 60;
			if (!isNaN(totalCurrentSeconds) && !isNaN(totalDurationSeconds)) {
				var timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds;
				var remainingHours = Math.floor(timeRemainingTotalSeconds / 3600);
				var remainingMinutes = Math.floor((timeRemainingTotalSeconds - remainingHours * 3600) / 60);
				var remainingSeconds = timeRemainingTotalSeconds - remainingHours * 3600 - remainingMinutes * 60;
				timeRemaining = (remainingMinutes < 10 ? '0' + remainingMinutes : remainingMinutes) + ':' + (remainingSeconds < 10 ? '0' + remainingSeconds : remainingSeconds);
				if (remainingHours > 0) {
					timeRemaining = remainingHours + ':' + timeRemaining;
				}
			}
		}
		var timeSelectors = ['.amplitude-time-remaining[amplitude-main-time-remaining="true"]', '.amplitude-time-remaining[amplitude-playlist-main-time-remaining="' + _config2.default.active_playlist + '"]', '.amplitude-time-remaining[amplitude-song-index="' + _config2.default.active_index + '"]'];
		var timeRemainingSelectors = document.querySelectorAll(timeSelectors.join());
		for (var i = 0; i < timeRemainingSelectors.length; i++) {
			timeRemainingSelectors[i].innerHTML = timeRemaining;
		}
	}
function syncCountDownTime ( currentTime , songDuration ) { var timeRemaining = '00:00' ; if ( currentTime != undefined && songDuration != undefined ) { var totalCurrentSeconds = parseInt ( currentTime . seconds ) + parseInt ( currentTime . minutes ) * 60 + parseInt ( currentTime . hours ) * 60 * 60 ; var totalDurationSeconds = parseInt ( songDuration . seconds ) + parseInt ( songDuration . minutes ) * 60 + parseInt ( songDuration . hours ) * 60 * 60 ; if ( ! isNaN ( totalCurrentSeconds ) && ! isNaN ( totalDurationSeconds ) ) { var timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds ; var remainingHours = Math . floor ( timeRemainingTotalSeconds / 3600 ) ; var remainingMinutes = Math . floor ( ( timeRemainingTotalSeconds - remainingHours * 3600 ) / 60 ) ; var remainingSeconds = timeRemainingTotalSeconds - remainingHours * 3600 - remainingMinutes * 60 ; timeRemaining = ( remainingMinutes < 10 ? '0' + remainingMinutes : remainingMinutes ) + ':' + ( remainingSeconds < 10 ? '0' + remainingSeconds : remainingSeconds ) ; if ( remainingHours > 0 ) { timeRemaining = remainingHours + ':' + timeRemaining ; } } } var timeSelectors = [ '.amplitude-time-remaining[amplitude-main-time-remaining="true"]' , '.amplitude-time-remaining[amplitude-playlist-main-time-remaining="' + _config2 . default . active_playlist + '"]' , '.amplitude-time-remaining[amplitude-song-index="' + _config2 . default . active_index + '"]' ] ; var timeRemainingSelectors = document . querySelectorAll ( timeSelectors . join ( ) ) ; for ( var i = 0 ; i < timeRemainingSelectors . length ; i ++ ) { timeRemainingSelectors [ i ] . innerHTML = timeRemaining ; } }
Updates the elements that show how much time is remaining in the song.
Updates the elements that show how much time is remaining in the song .
/*
  	Initialize time remaining.
  */ /*
  	Ensure that all values are defined.
  */ /*
   	Initialize the total current seconds and total duration seconds
   */ /*
   	If the two variables are numbers we continue the computing.
   */ /*
    	Find the total remaining seconds.
    */ /*
  	Gets all of the song time selectors.
  */ /*
  	Get all of the time selectors.
  */ /*
  	Set the time selector's inner html to the duration time for the song. The duration
  	time is computed by joining minutes and seconds.
  */