Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div data-role="page" id="welcome">
- <audio id="audio1">
- <source src= "https://k003.kiwi6.com/hotlink/4dg8ltk2kc/WelcomeAudio.mp3" type="audio/mpeg">
- <source src= "https://k003.kiwi6.com/hotlink/3lp13ywdlx/WelcomeAudio.ogg" type="audio/ogg">
- </audio>
- $(document).on('pageinit', '#welcome' ,function(){
- var audio = document.getElementById('audio1');
- if (audio.paused) {
- audio.play();
- }else{
- audio.currentTime = 0;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement