Skip to content

Instantly share code, notes, and snippets.

@oschettler
Last active December 11, 2015 19:27
Show Gist options
  • Save oschettler/5387e9134aa5abd6e4cc to your computer and use it in GitHub Desktop.
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
<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