|
|
@ -1,4 +1,5 @@ |
|
|
|
// DEBUG: 该文件仅适用于测试调试程序 正式版删除
|
|
|
|
|
|
|
|
import { sendMessage } from './frame'; |
|
|
|
|
|
|
|
// 事件功能按钮 绑定动作 发送消息
|
|
|
@ -63,17 +64,14 @@ export function setPauseButtonStatus(type) { |
|
|
|
export function changeButtonsDisplay(eventType) { |
|
|
|
const start = $id('start'); |
|
|
|
const pause = $id('pause'); |
|
|
|
const finish = $id('finish'); |
|
|
|
const actionContainer = $id('action-container') |
|
|
|
if (eventType === 'start') { // 点了开始
|
|
|
|
start.classList.add('d-none'); |
|
|
|
pause.classList.remove('d-none'); |
|
|
|
finish.classList.remove('d-none'); |
|
|
|
actionContainer.classList.remove('d-none'); |
|
|
|
} else if (eventType === 'finish') { |
|
|
|
start.classList.remove('d-none'); |
|
|
|
pause.classList.add('d-none'); |
|
|
|
finish.classList.add('d-none'); |
|
|
|
actionContainer.classList.add('d-none'); |
|
|
|
} else if ((eventType === 'pause')) { |
|
|
|
actionContainer.classList.add('d-none'); |
|
|
|