Created
December 4, 2015 17:31
-
-
Save anonymous/47644d9c313aeb58febc to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/veqegum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
| <script src="https://connect.soundcloud.com/sdk.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <div id="heading">The program using the Soundcloud API</div> | |
| <input id="genreSearch" type="text" placeholder="Enter a Genre" > | |
| <button id="searchButton">Submit</button> | |
| <ul id="results"></ul> | |
| <script id="jsbin-javascript"> | |
| SC.initialize({ | |
| client_id:'5a1e5d1d5c8db75f8ebd766580e30c32' | |
| }); | |
| $(document).ready(function() { | |
| var searchButton = $("#searchButton"); | |
| searchButton.click(function() { | |
| var userChoice = $("#genreSearch").val(); | |
| console.log(userChoice); | |
| }); | |
| }); | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">SC.initialize({ | |
| client_id:'5a1e5d1d5c8db75f8ebd766580e30c32' | |
| }); | |
| $(document).ready(function() { | |
| var searchButton = $("#searchButton"); | |
| searchButton.click(function() { | |
| var userChoice = $("#genreSearch").val(); | |
| console.log(userChoice); | |
| }); | |
| }); | |
| </script></body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SC.initialize({ | |
| client_id:'5a1e5d1d5c8db75f8ebd766580e30c32' | |
| }); | |
| $(document).ready(function() { | |
| var searchButton = $("#searchButton"); | |
| searchButton.click(function() { | |
| var userChoice = $("#genreSearch").val(); | |
| console.log(userChoice); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment