Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Forked from anonymous/index.html
Created December 4, 2015 17:31
Show Gist options
  • Select an option

  • Save Bijesse/709fd55eceef3b09d6d6 to your computer and use it in GitHub Desktop.

Select an option

Save Bijesse/709fd55eceef3b09d6d6 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/veqegum
<!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>
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