- Posts: 7
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
<div id="theQuestion">Wie gefällt es denn so?</div> <div id="theAudio"> <audio controls="" id="myaudio"> <source src="https://mysurvey.de/userfiles/myaudio.mp3" type="audio/mpeg" /> Your browser does not support the audio element. </audio> </div> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { var aud = document.getElementById("myaudio"); aud.volume=0.3; // Adapt to your needs aud.onended = function() { $('#theAudio').hide(); $('#ls-button-submit').show(); $('.question-valid-container').show(); $('.answer-container').show(); $('#theQuestion').show(); } }); </script> <style type="text/css"> .question-valid-container, .answer-container, #theQuestion, #ls-button-submit { display:none; } </style>
<audio controls="" id="myaudio"> <source src="https://mysurvey.de/userfiles/myaudio.mp3" type="audio/mpeg" /> Your browser does not support the audio element. </audio> <script> $(document).ready(function() { var aud = document.getElementById("myaudio"); aud.volume=0.3; aud.onended = function() { $('#ls-button-submit').show().trigger('click'); } }); </script> <style type="text/css">#ls-button-submit { display:none; } </style>
Please Log in to join the conversation.
Your LimeSurvey version: Version 3.26.1+210427
Own server or LimeSurvey hosting: LimeSurvey Hosting
Please Log in to join the conversation.