From 2382c47ab1cb6a27435f45300d3087134bacbfff Mon Sep 17 00:00:00 2001 From: syduan2 Date: Sat, 28 Feb 2015 16:25:16 -0600 Subject: [PATCH 1/4] swag --- SoundStorage/callback.html => callback.html | 0 SoundStorage/connect.js => connect.js | 0 SoundStorage/register.png => register.png | Bin SoundStorage/upload.png => upload.png | Bin 4 files changed, 0 insertions(+), 0 deletions(-) rename SoundStorage/callback.html => callback.html (100%) rename SoundStorage/connect.js => connect.js (100%) rename SoundStorage/register.png => register.png (100%) rename SoundStorage/upload.png => upload.png (100%) diff --git a/SoundStorage/callback.html b/callback.html similarity index 100% rename from SoundStorage/callback.html rename to callback.html diff --git a/SoundStorage/connect.js b/connect.js similarity index 100% rename from SoundStorage/connect.js rename to connect.js diff --git a/SoundStorage/register.png b/register.png similarity index 100% rename from SoundStorage/register.png rename to register.png diff --git a/SoundStorage/upload.png b/upload.png similarity index 100% rename from SoundStorage/upload.png rename to upload.png From 351c15f5da984bf7a8e0654b9dd9851f12a44d39 Mon Sep 17 00:00:00 2001 From: syduan2 Date: Sat, 28 Feb 2015 16:26:06 -0600 Subject: [PATCH 2/4] should work --- connect.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/connect.js b/connect.js index cbe7624..a01a551 100644 --- a/connect.js +++ b/connect.js @@ -1,10 +1,10 @@ SC.initialize({ client_id: 'ada2ef9470a5b24e4858550357ca9a5b', - redirect_uri: 'http://external.codecademy.com/soundcloud.html' - + redirect_uri: 'http://jiajames.github.io/HackIllinois/callback.html' + }); - + $(document).ready(function() { $('a.connect').click(function(e) { e.preventDefault(); @@ -15,4 +15,3 @@ $(document).ready(function() { }); }); }); - From 8d4c424510a3a68d840e75e377e21cd036dbffdc Mon Sep 17 00:00:00 2001 From: jiajames Date: Sat, 28 Feb 2015 16:34:39 -0600 Subject: [PATCH 3/4] filesystem --- index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.html b/index.html index 600fa5c..21aa071 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,15 @@ alert("Error: " + error.message); }else{ alert("You are now following " + user.username); + + var selectDialogueLink = $('Select files'); + var fileSelector = $(''); + + selectDialogueLink.click(function(){ + fileSelector.click(); + return false; + }); + $('body').html(selectDialogueLink); } }); }); @@ -23,5 +32,6 @@ Hello! + \ No newline at end of file From ad9fffba2f38994ee8cf0e24a42d6e32dd6b12d6 Mon Sep 17 00:00:00 2001 From: jiajames Date: Sat, 28 Feb 2015 16:35:26 -0600 Subject: [PATCH 4/4] !!! --- index.html | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 21aa071..c26535c 100644 --- a/index.html +++ b/index.html @@ -16,14 +16,7 @@ }else{ alert("You are now following " + user.username); - var selectDialogueLink = $('Select files'); - var fileSelector = $(''); - - selectDialogueLink.click(function(){ - fileSelector.click(); - return false; - }); - $('body').html(selectDialogueLink); + } }); }); @@ -33,5 +26,21 @@ Hello! + + \ No newline at end of file