function syncShuffle(state) {
		/*
  	Gets the shuffle buttons.
  */
		var shuffleButtons = document.getElementsByClassName("amplitude-shuffle");

		/*
  	Iterate over all of the shuffle buttons.
  */
		for (var i = 0; i < shuffleButtons.length; i++) {
			/*
   	Ensure the shuffle button doesn't belong to a playlist. We have
   	a separate method for that.
   */
			if (shuffleButtons[i].getAttribute('amplitude-playlist') == null) {
				/*
    	If the state of the player is shuffled on, true, then
    	we add the 'amplitude-shuffle-on' class and remove the
    	'amplitude-shuffle-off' class. If the player is not shuffled
    	then we do the opposite.
    */
				if (state) {
					shuffleButtons[i].classList.add('amplitude-shuffle-on');
					shuffleButtons[i].classList.remove('amplitude-shuffle-off');
				} else {
					shuffleButtons[i].classList.add('amplitude-shuffle-off');
					shuffleButtons[i].classList.remove('amplitude-shuffle-on');
				}
			}
		}
	}
/**
  * Syncs the global shuffle button visual state.
  *
  * @access public
  * @param {boolean} state  	- The shuffled state of the player.
  */
Syncs the global shuffle button visual state.
@access public
@param {boolean} state      - The shuffled state of the player.
Syncs the global shuffle button visual state . @access public @param { boolean } state - The shuffled state of the player .
function syncShuffle(state) {
		var shuffleButtons = document.getElementsByClassName("amplitude-shuffle");
		for (var i = 0; i < shuffleButtons.length; i++) {
			if (shuffleButtons[i].getAttribute('amplitude-playlist') == null) {
				if (state) {
					shuffleButtons[i].classList.add('amplitude-shuffle-on');
					shuffleButtons[i].classList.remove('amplitude-shuffle-off');
				} else {
					shuffleButtons[i].classList.add('amplitude-shuffle-off');
					shuffleButtons[i].classList.remove('amplitude-shuffle-on');
				}
			}
		}
	}
function syncShuffle ( state ) { var shuffleButtons = document . getElementsByClassName ( "amplitude-shuffle" ) ; for ( var i = 0 ; i < shuffleButtons . length ; i ++ ) { if ( shuffleButtons [ i ] . getAttribute ( 'amplitude-playlist' ) == null ) { if ( state ) { shuffleButtons [ i ] . classList . add ( 'amplitude-shuffle-on' ) ; shuffleButtons [ i ] . classList . remove ( 'amplitude-shuffle-off' ) ; } else { shuffleButtons [ i ] . classList . add ( 'amplitude-shuffle-off' ) ; shuffleButtons [ i ] . classList . remove ( 'amplitude-shuffle-on' ) ; } } } }
Syncs the global shuffle button visual state.
Syncs the global shuffle button visual state .
/*
  	Gets the shuffle buttons.
  */ /*
  	Iterate over all of the shuffle buttons.
  */ /*
   	Ensure the shuffle button doesn't belong to a playlist. We have
   	a separate method for that.
   */ /*
    	If the state of the player is shuffled on, true, then
    	we add the 'amplitude-shuffle-on' class and remove the
    	'amplitude-shuffle-off' class. If the player is not shuffled
    	then we do the opposite.
    */