|
|
|
@ -7,6 +7,19 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="col-sm-12"> |
|
|
|
|
<div class="form-group text-center"> |
|
|
|
|
<div id="timer" style="display: none"> |
|
|
|
|
<h2> |
|
|
|
|
<div class="label label-danger"> |
|
|
|
|
<span id="hour">00</span> |
|
|
|
|
<span class="divider">:</span> |
|
|
|
|
<span id="minute">00</span> |
|
|
|
|
<span class="divider">:</span> |
|
|
|
|
<span id="second">00</span> |
|
|
|
|
</div> |
|
|
|
|
</h2> |
|
|
|
|
<br /> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<button class="btn btn-primary" type="button" id="btn-start-record-{{ question_id }}"> |
|
|
|
|
<span class="fa fa-circle fa-fw" aria-hidden="true"></span> {{ 'StartRecordingAudio'|get_lang }} |
|
|
|
|
</button> |
|
|
|
@ -20,8 +33,8 @@ |
|
|
|
|
<span class="fa fa-square fa-fw" aria-hidden="true"></span> {{ 'StopRecordingAudio'|get_lang }} |
|
|
|
|
</button> |
|
|
|
|
<button class="btn btn-success hidden" type="button" id="btn-save-record-{{ question_id }}" |
|
|
|
|
data-loadingtext="{{ 'Uploading'|get_lang }}" |
|
|
|
|
disabled> |
|
|
|
|
data-loadingtext="{{ 'Uploading'|get_lang }}" |
|
|
|
|
disabled> |
|
|
|
|
<span class="fa fa-send fa-fw" aria-hidden="true"></span> {{ 'SaveRecordedAudio'|get_lang }} |
|
|
|
|
</button> |
|
|
|
|
<button id="hide_description_{{ question_id }}" type="button" class="btn btn-default advanced_options" data-toggle="button" aria-pressed="false" autocomplete="off"> |
|
|
|
@ -45,26 +58,26 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
$(function () { |
|
|
|
|
RecordAudio.init({ |
|
|
|
|
blockId: '#record-audio-recordrtc-{{ question_id }}', |
|
|
|
|
btnStartId: '#btn-start-record-{{ question_id }}', |
|
|
|
|
btnPauseId: '#btn-pause-record-{{ question_id }}', |
|
|
|
|
btnPlayId: '#btn-play-record-{{ question_id }}', |
|
|
|
|
btnStopId: '#btn-stop-record-{{ question_id }}', |
|
|
|
|
plyrPreviewId: '#record-preview-{{ question_id }}', |
|
|
|
|
directory: '{{ directory }}', |
|
|
|
|
type: 'document' |
|
|
|
|
}, { |
|
|
|
|
blockId: '#record-audio-wami-{{ question_id }}', |
|
|
|
|
containerId: 'record-audio-wami-container-{{ question_id }}', |
|
|
|
|
directory: '{{ directory }}', |
|
|
|
|
userId: {{ user_id }}, |
|
|
|
|
type: 'document' |
|
|
|
|
}, '{{ file_name }}'); |
|
|
|
|
$(function () { |
|
|
|
|
RecordAudio.init({ |
|
|
|
|
blockId: '#record-audio-recordrtc-{{ question_id }}', |
|
|
|
|
btnStartId: '#btn-start-record-{{ question_id }}', |
|
|
|
|
btnPauseId: '#btn-pause-record-{{ question_id }}', |
|
|
|
|
btnPlayId: '#btn-play-record-{{ question_id }}', |
|
|
|
|
btnStopId: '#btn-stop-record-{{ question_id }}', |
|
|
|
|
plyrPreviewId: '#record-preview-{{ question_id }}', |
|
|
|
|
directory: '{{ directory }}', |
|
|
|
|
type: 'document' |
|
|
|
|
}, { |
|
|
|
|
blockId: '#record-audio-wami-{{ question_id }}', |
|
|
|
|
containerId: 'record-audio-wami-container-{{ question_id }}', |
|
|
|
|
directory: '{{ directory }}', |
|
|
|
|
userId: {{ user_id }}, |
|
|
|
|
type: 'document' |
|
|
|
|
}, '{{ file_name }}'); |
|
|
|
|
|
|
|
|
|
if (0 === $('#hide_description_{{ question_id }}_options').length) { |
|
|
|
|
$('#hide_description_{{ question_id }}').remove(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
if (0 === $('#hide_description_{{ question_id }}_options').length) { |
|
|
|
|
$('#hide_description_{{ question_id }}').remove(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
</script> |