Файл: voice/js/settings.js
Строк: 50
<?php
export const url = '/user/voice/index.php';
export const timeEnd = 30000;
export const answErr = 'Ошибка:';
// ---
voiceAnalyser.className = 'fm-voice-analyser';
voiceIcons.className = 'fm-voice-camera';
voiceTime.className = 'fm-voice-count';
voicePanel.className = 'fm-voice-default';
voiceStart.className = 'fm-voice-start';
voiceEnd.className = 'fm-voice-end';
voiceStartDefault.className = 'fm-voice-start-default';
voiceLoading.className = 'fm-voice-loading';
voiceError.className = 'fm-voice-error';
// ---
voiceStartDefault.textContent = 'Видео/Аудио';
voiceStart.textContent = 'Записать';
voiceEnd.textContent = 'Остановить';
voiceTime.textContent = '00:00:00';
voiceLoading.textContent = 'Обработка...';
// ---
const n = () => {
return 'none'
};
export const buttonShow = (p = n, s = n, e = n, i = n, a = n, u = n, r, z = n) => {
if(r) JSON.parse(r, (o, i) => {
voiceError.style.display = `${ i.die }`
voiceError.textContent = `${ i.text }`
return i;
});
// ---
voicePanel.style.display = p
voiceIcons.style.display = i
voiceStart.style.display = s
voiceEnd.style.display = e
voiceStartDefault.style.display = a
voiceLoading.style.display = u
voiceAnalyser.style.display = z
};
?>