Download pool/shard007/JavaScript/0044164_app.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/JavaScript/0044164_app.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard007/JavaScript/0044164_app.js
-
curl -L -o 0044164_app.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/JavaScript/0044164_app.js
907 Bytes
| var playlist = new Playlist(); | |
| var hereComesTheSun = new Song("Here Comes the Sun", "The Beatles", "2:54"); | |
| var walkingOnSunshine = new Song("Walking On Sunshine", "Katrina and the Waves", "3:43"); | |
| var manOfSteel = new Movie("Man of Steel", 2013, "2:23:00") | |
| playlist.add(hereComesTheSun); | |
| playlist.add(walkingOnSunshine); | |
| playlist.add(manOfSteel); | |
| var playlistElement = document.getElementById("playlist"); | |
| playlist.renderInElement(playlistElement); | |
| var playButton = document.getElementById("play"); | |
| playButton.onclick = function() { | |
| playlist.play(); | |
| playlist.renderInElement(playlistElement); | |
| } | |
| var nextButton = document.getElementById("next"); | |
| nextButton.onclick = function() { | |
| playlist.next(); | |
| playlist.renderInElement(playlistElement); | |
| } | |
| var stopButton = document.getElementById("stop"); | |
| stopButton.onclick = function() { | |
| playlist.stop(); | |
| playlist.renderInElement(playlistElement); | |
| } | |