Created
May 20, 2010 17:10
-
-
Save markpasc/407815 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<title>lastface</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<style type="text/css"> | |
img { background: url(http://static.typepad.com/.shared/images/spinner.gif) no-repeat center center; | |
</style> | |
</head><body> | |
<div> | |
<a id="lastface" href="#"><img src="http://static.typepad.com/.shared/images/1.gif" width="120" height="120"></a> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$.getJSON('http://api.typepad.com/assets.js?filter.author=6p00d83451ce6b69e2&filter.group=6p0120a7ea2e1c970b&max-results=1&callback=?', function (data) { | |
var post = data.entries[0]; | |
$('#lastface').attr('href', post.permalinkUrl) | |
.find('img').attr('src', post.imageLink.urlTemplate.replace('{spec}', '120si')); | |
}); | |
}); | |
</script> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment