function syncDurationSeconds(seconds) {
		/*
  	Gets all of the song second selectors. If the active playlist
  	is not null, then we get the playlist selectors.
  */
		var secondSelectors = [];

		if (_config2.default.active_playlist != null && _config2.default.active_playlist != '') {
			secondSelectors = ['.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]', '.amplitude-duration-seconds[amplitude-playlist-duration-seconds="true"][amplitude-playlist="' + _config2.default.active_playlist + '"]', '.amplitude-duration-seconds[amplitude-song-index="' + _config2.default.active_index + '"]'];
		} else {
			secondSelectors = ['.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]', '.amplitude-duration-seconds[amplitude-song-index="' + _config2.default.active_index + '"]'];
		}

		/*
  	Get all of the second selectors
  */
		var durationSecondSelectors = document.querySelectorAll(secondSelectors.join());

		/*
  	Iterate over all of the second selectors.
  */
		for (var i = 0; i < durationSecondSelectors.length; i++) {
			/*
   	If the selector is a main selector, we set the seconds.
   */
			if (durationSecondSelectors[i].getAttribute('amplitude-main-duration-seconds') == 'true') {
				durationSecondSelectors[i].innerHTML = seconds;
			} else {
				/*
    	If the active playlist is not null or empty
    	and the attribute of the playlist is equal to the
    	active playlist, then we set the inner html.
    */
				if (_config2.default.active_playlist != '' && _config2.default.active_playlist != null && durationSecondSelectors[i].getAttribute('amplitude-playlist') == _config2.default.active_playlist) {
					durationSecondSelectors[i].innerHTML = seconds;
					/*
     	If the active playlist is not set and the selector
     	does not have a playlist then we set the seconds. This
     	means that the duration selector is an individual song
     	selector.
     */
				} else if (_config2.default.active_playlist == '' || _config2.default.active_playlist == null && !durationSecondSelectors[i].hasAttribute('amplitude-playlist')) {
					durationSecondSelectors[i].innerHTML = seconds;
					/*
     	If nothing else matches, set the selector's inner HTML to '00'
     */
				} else {
					durationSecondSelectors[i].innerHTML = '00';
				}
			}
		}
	}
/**
  * Updates any elements that display the duration seconds for the song.
  *
  * @access private
  * @param {number} seconds 	- An integer conaining how many seconds into the song.
  */
Updates any elements that display the duration seconds for the song.
@access private
@param {number} seconds     - An integer conaining how many seconds into the song.
Updates any elements that display the duration seconds for the song . @access private @param { number } seconds - An integer conaining how many seconds into the song .
function syncDurationSeconds(seconds) {
		var secondSelectors = [];
		if (_config2.default.active_playlist != null && _config2.default.active_playlist != '') {
			secondSelectors = ['.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]', '.amplitude-duration-seconds[amplitude-playlist-duration-seconds="true"][amplitude-playlist="' + _config2.default.active_playlist + '"]', '.amplitude-duration-seconds[amplitude-song-index="' + _config2.default.active_index + '"]'];
		} else {
			secondSelectors = ['.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]', '.amplitude-duration-seconds[amplitude-song-index="' + _config2.default.active_index + '"]'];
		}
		var durationSecondSelectors = document.querySelectorAll(secondSelectors.join());
		for (var i = 0; i < durationSecondSelectors.length; i++) {
			if (durationSecondSelectors[i].getAttribute('amplitude-main-duration-seconds') == 'true') {
				durationSecondSelectors[i].innerHTML = seconds;
			} else {
				if (_config2.default.active_playlist != '' && _config2.default.active_playlist != null && durationSecondSelectors[i].getAttribute('amplitude-playlist') == _config2.default.active_playlist) {
					durationSecondSelectors[i].innerHTML = seconds;
				} else if (_config2.default.active_playlist == '' || _config2.default.active_playlist == null && !durationSecondSelectors[i].hasAttribute('amplitude-playlist')) {
					durationSecondSelectors[i].innerHTML = seconds;
				} else {
					durationSecondSelectors[i].innerHTML = '00';
				}
			}
		}
	}
function syncDurationSeconds ( seconds ) { var secondSelectors = [ ] ; if ( _config2 . default . active_playlist != null && _config2 . default . active_playlist != '' ) { secondSelectors = [ '.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]' , '.amplitude-duration-seconds[amplitude-playlist-duration-seconds="true"][amplitude-playlist="' + _config2 . default . active_playlist + '"]' , '.amplitude-duration-seconds[amplitude-song-index="' + _config2 . default . active_index + '"]' ] ; } else { secondSelectors = [ '.amplitude-duration-seconds[amplitude-main-duration-seconds="true"]' , '.amplitude-duration-seconds[amplitude-song-index="' + _config2 . default . active_index + '"]' ] ; } var durationSecondSelectors = document . querySelectorAll ( secondSelectors . join ( ) ) ; for ( var i = 0 ; i < durationSecondSelectors . length ; i ++ ) { if ( durationSecondSelectors [ i ] . getAttribute ( 'amplitude-main-duration-seconds' ) == 'true' ) { durationSecondSelectors [ i ] . innerHTML = seconds ; } else { if ( _config2 . default . active_playlist != '' && _config2 . default . active_playlist != null && durationSecondSelectors [ i ] . getAttribute ( 'amplitude-playlist' ) == _config2 . default . active_playlist ) { durationSecondSelectors [ i ] . innerHTML = seconds ; } else if ( _config2 . default . active_playlist == '' || _config2 . default . active_playlist == null && ! durationSecondSelectors [ i ] . hasAttribute ( 'amplitude-playlist' ) ) { durationSecondSelectors [ i ] . innerHTML = seconds ; } else { durationSecondSelectors [ i ] . innerHTML = '00' ; } } } }
Updates any elements that display the duration seconds for the song.
Updates any elements that display the duration seconds for the song .
/*
  	Gets all of the song second selectors. If the active playlist
  	is not null, then we get the playlist selectors.
  */ /*
  	Get all of the second selectors
  */ /*
  	Iterate over all of the second selectors.
  */ /*
   	If the selector is a main selector, we set the seconds.
   */ /*
    	If the active playlist is not null or empty
    	and the attribute of the playlist is equal to the
    	active playlist, then we set the inner html.
    */ /*
     	If the active playlist is not set and the selector
     	does not have a playlist then we set the seconds. This
     	means that the duration selector is an individual song
     	selector.
     */ /*
     	If nothing else matches, set the selector's inner HTML to '00'
     */