-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (37 loc) · 1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<script src="http://connect.soundcloud.com/sdk.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
SC.initialize({
client_id: "ada2ef9470a5b24e4858550357ca9a5b",
redirect_uri: "file:///Users/sakshamsaini/GitHub/HackIllinois/SoundStorage/website/callback.html"
});
SC.connect(function(){
SC.put("/me/followings/3207", function(user, error){
if(error){
alert("Error: " + error.message);
}else{
alert("You are now following " + user.username);
}
});
});
</script>
</head>
<body>
Hello!
<script>
var fileSelector = document.createElement('input');
fileSelector.setAttribute('type', 'file');
var selectDialogueLink = document.createElement('a');
selectDialogueLink.setAttribute('href', '');
selectDialogueLink.innerText = "Select File";
selectDialogueLink.onclick = function () {
fileSelector.click();
return false;
}
document.body.appendChild(selectDialogueLink);
</script>
</body>
</html>