| ... | ... |
@@ -1,7 +1,8 @@ |
| 1 | 1 |
{% if site.delicious_user %}
|
| 2 | 2 |
<section> |
| 3 | 3 |
<h1>On Delicious</h1> |
| 4 |
- <script type="text/javascript" src="http://feeds.delicious.com/v2/js/{{ site.delicious_user }}?title=&count={{ site.delicious_count }}&sort=date&extended"></script>
|
|
| 4 |
+ <div id="delicious"></div> |
|
| 5 |
+ <script type="text/javascript" src="http://feeds.delicious.com/v1/json/{{ site.delicious_user }}?count={{ site.delicious_count }}&sort=date&callback=renderDeliciousLinks"></script>
|
|
| 5 | 6 |
<p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks »</a></p>
|
| 6 | 7 |
</section> |
| 7 |
-{% endif %}
|
|
| 8 |
+{% endif %}
|
|
| 8 | 9 |
\ No newline at end of file |
| ... | ... |
@@ -104,6 +104,15 @@ function wrapFlashVideos() {
|
| 104 | 104 |
}); |
| 105 | 105 |
} |
| 106 | 106 |
|
| 107 |
+function renderDeliciousLinks(items) {
|
|
| 108 |
+ var output = "<ul>"; |
|
| 109 |
+ for (var i=0,l=items.length; i<l; i++) {
|
|
| 110 |
+ output += '<li><a href="' + items[i].u + '" title="Tags: ' + items[i].t.join(', ') + '">' + items[i].d + '</a></li>';
|
|
| 111 |
+ } |
|
| 112 |
+ output += "</ul>"; |
|
| 113 |
+ $('#delicious').html(output);
|
|
| 114 |
+} |
|
| 115 |
+ |
|
| 107 | 116 |
$.domReady(function() {
|
| 108 | 117 |
testFeatures(); |
| 109 | 118 |
wrapFlashVideos(); |