- Posts: 10
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
 Topic Author
                            Topic Author
                                 
        Please Log in to join the conversation.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); // Hide the text input //$('.answer-container .text-item', thisQuestion).hide(); // A function to parse the timer time and load the text input function updateTime() { var aTimerTime = $.trim($('.ls-timer-time', thisQuestion).text()).split(':'); var seconds = (Number(aTimerTime[0])*3600)+(Number(aTimerTime[1])*60)+Number(aTimerTime[2]); $(':text.form-control', thisQuestion).val(seconds).trigger('keyup'); } setTimeout(function() { // Record the initial timer time updateTime(); // Update the recorded time every second setInterval(updateTime, 1000); }, 50); }); </script>
Please Log in to join the conversation.
 Topic Author
                            Topic Author
                                 
        Please Log in to join the conversation.
Please Log in to join the conversation.
 Topic Author
                            Topic Author
                                 
        Please Log in to join the conversation.