Permalink
Browse files

imgur sharing is good to go. wooo

  • Loading branch information...
1 parent 49ae5b0 commit 73c4e438129d3ac1c85ec3bb1842e8720f53e65e @paulirish paulirish committed Feb 18, 2012
Showing with 17 additions and 4 deletions.
  1. +5 −0 assets/css/styles.css
  2. +3 −3 assets/js/scripts.js
  3. +9 −1 index.html
View
@@ -572,6 +572,11 @@ header .social li {
background: url(../img/icons.png) no-repeat 0 0;
}
+.onlyfiles #sharelink:before{
+ content: '';
+ background:none;
+}
+
.onlyfiles .play {
color: #001f2e;
background-color: #4388c9;
View
@@ -227,10 +227,10 @@
// Imgur takes the image data, filename, title, caption, success callback and error callback
ShareGIFWith.imgur(App.mfAnimatedGIF.rawDataURL(), filename, '', '',
function(deletePage, imgurPage, largeThumbnail, original, smallSquare) {
- alert(imgurPage);
+ prompt('Boom! Your image is now available on imgur. Copy the link below:', imgurPage);
},
function() {
- alert('Could not upload image to imgur.');
+ alert('Could not upload image to imgur. :/ Sorry.');
});
return false;
@@ -260,7 +260,7 @@
});
// todo the following will display the share link when ready
- // $('#sharelink').css({'display':'inline-block'});
+ $('#sharelink').css({'display':'inline-block'});
$('#animresult').attr('src', App.mfAnimatedGIF.dataURL());
View
@@ -92,7 +92,15 @@ <h2 class='nosupport'>Your browser doesn't support File Reading :(</h2>
</div>
<div id='results'>
- <h2 class='onlyfiles'><button class='play'>Animate</button> <button class="clear">Reset</button> <a id="downloadlink" href="">Download GIF</a><a id="sharelink" href="">Share</a></h2>
+ <h2 class='onlyfiles'>
+
+ <button class='play'>Animate</button>
+ <button class="clear">Reset</button>
+
+ <a id="downloadlink" href="">Download GIF</a>
+ <a id="sharelink" href="">Post to imgur</a>
+
+ </h2>
<img id="animresult"/>

0 comments on commit 73c4e43

Please sign in to comment.