Last active
December 11, 2015 19:27
-
-
Save oschettler/5387e9134aa5abd6e4cc to your computer and use it in GitHub Desktop.
Javascript snippet to display delicious bookmarks on a page. See it in action at https://tinkerthon.de
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
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script> | |
<div class="col-sm-3 col-xs-6"> | |
<h4>Morsels</h4> | |
<p>Some delicious bookmarks.</p> | |
<ul class="delicious"></ul> | |
<p>Enjoy!</p> | |
<script> | |
jQuery(function ($) | |
{ | |
$.ajax({ | |
url:'//feeds.delicious.com/v2/json/olav/tinkerthon', | |
dataType: 'jsonp', | |
success: function (feed) | |
{ | |
$.each(feed, function () | |
{ | |
$('<li><a target="_new" title="added ' + this.dt.replace('T', ' ') + '" href="' + this.u + '">' + this.d + '</a></li>').appendTo('ul.delicious'); | |
}); | |
} | |
}); | |
}); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment