- Posts: 10223
- Thank you received: 3640
Ask the community, share ideas, and connect with other LimeSurvey users!
<audio autoplay="" controls="" onplay="handleFirstPlay()"> <source src="pathToMy.mp3" type="audio/mp3" /> Your browser does not support the audio element. </audio> <script type="text/javascript" data-author="Tony Partner"> // Function fired when the player is played function handleFirstPlay() { if($('.question-container:visible').length == 0) { $('.question-container:eq(0)').hide().removeClass('hidden').fadeIn(300); } } </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<audio autoplay="" onplay="handleFirstPlay()"> <source src="https://www.mafosurvey.de/userfiles/Track06.mp3" type="audio/mp3" /> Your browser does not support the audio element. </audio> <script type="text/javascript" data-author="Tony Partner"> // Function fired when the player is played function handleFirstPlay() { if($('.question-container:visible').length == 0) { $('.question-container:eq(0)').hide().delay(3000).removeClass('hidden').fadeIn(300); } } </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
function handleFirstPlay() { $('.group-description').hide(); if($('.question-container:visible').length == 0) { ....
Please Log in to join the conversation.
Please Log in to join the conversation.
var hasitrun; // Function unhide the first Q three secs after the player is played function handleFirstPlay() { if (hasitrun != 1) { hasitrun = 1; if ($('#question{QID}.question-container:visible').length == 0) { $('#question{QID}').hide().delay(3000).removeClass('hidden').fadeIn(300); } } }
Please Log in to join the conversation.