This Soapi.JSSoapi.JS script, if abused is likely to provoke frowns from those whom you would like to see smiles.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://soapi.info/code/js/stable/3rd-party/jquery-1.4.1.js" type="text/javascript"></script>
<script src="http://soapi.info/code/js/stable/scripts/Soapi.js" type="text/javascript"></script>
<script type="text/javascript">
// Soapi JavaScript Library
// httphttps://stackapps.com/questions/494
// http://soapi.info/
$(function() {
var apiKey = '';
Soapi.RouteFactory("api.stackapps.com", apiKey).Users()
.getPagedResponse(function(data) {
var table = $("#status").append("<table>");
for (var i in data.items.sort(function(a, b) {
return b.last_access_date - a.last_access_date
})) {
var timeAgo = Soapi.Utilities.getTimeAgo(data.items[i].last_access_date);
var who = data.items[i].display_name;
table.append("<tr><td>" + timeAgo + "</td><td>" + who + "</td></tr>");
}
}, null, function(data) {
$("#status")
.html("Page " + data.page + " of " + (Math.floor(data.total / data.pagesize) + 1));
});
});
</script>
</head>
<body>
<p>
Dont try this on stack overflow or really any other site with more than a couple
thousand users. Really</p>
<div id="status">
</div>
</body>
</html>