MCPcopy Index your code
hub / github.com/iChochy/NCE / updatePlayButton

Method updatePlayButton

js/ReadingSystem.js:624–632  ·  view source on GitHub ↗

* 更新播放按钮状态

()

Source from the content-addressed store, hash-verified

622 * 更新播放按钮状态
623 */
624 updatePlayButton() {
625 if (!this.dom.playPauseBtn || !this.dom.audioPlayer) return;
626
627 toggleClass(
628 this.dom.playPauseBtn,
629 'playing',
630 !this.dom.audioPlayer.paused
631 );
632 }
633
634 /**
635 * 设置播放按钮禁用状态

Callers 2

resetPlayerMethod · 0.95
bindPlayerControlsMethod · 0.95

Calls 1

toggleClassFunction · 0.90

Tested by

no test coverage detected