File Manager
Pro
/data/web/virtuals/8819/virtual/www/mp3/jukebox/test
PHP 7.4.33
Linux
/data/web/virtuals/8819/virtual/www/mp3/jukebox/test/api-onReady-1.html
1.2 KB
0640
Back
<!DOCTYPE html> <html lang="en-US"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta charset="UTF-8"> <title>API - onReady 1</title> <link href="_styles.css" rel="stylesheet" type="text/css"> <script src="_prettify.js"></script> <script src="_test-stuff.js"></script> <!-- Wimpy Engine --> <script src="../wimpy.js"></script><script src="wimpy.js"></script> </head> <body onload="pageReady()"> <div id="mainMenu"></div> <div id="pageWrapper" class="pageWrapper"> <script> // Set up a function to "ping" once the player // is set up and ready to be interacted with. function doit(playerHandle){ // Set the playlist player.setPlaylist("../song1.mp3|../song2.mp3"); } // Create a new player, setting the "media" option // to "none" so no playlist will load at start up // (over-riding the automatic playlist feature). var player = new wimpyPlayer({ media : "none" }); // Setting the "onReady" to the "doit" function. // Once the player is ready, the "doit" function will execute. player.onReady(doit); </script> <!-- Description --> <p>Loads a playlist using the "onReady" method.</p> </div> <!-- close pageWrapper --> </body> </html>
Cancel
Download
Save changes
File Manager Pro · single-file PHP 7.4.33 on Linux · paths encrypted in URL (AES-256-CTR)