Friday, April 17th, 2009

Thumbnails.js: Screenshots via Page Glimpse

Category: JavaScript, Library

Eric Ferraiuolo, inspired by the deprecation notice of Alexa, wrote a webpage thumbnails JavaScript library that lets you grab web page thumbnails via Page Glimpse:

javascript

  1. var container = document.getElementById('container'),
  2.     thumbs = Thumbnails({ devkey:'xxx' });
  3.  
  4. thumbs.get('http://google.com', append);
  5. thumbs.get([
  6.     'http://eric.ferraiuolo.name/',
  7.     'http://925html.com',
  8.     'http://oddnut.com'
  9. ], append);
  10.  
  11. function append ( url, img ) {
  12.     var link = document.createElement('a');
  13.     link.href = url;
  14.     link.appendChild(img);
  15.     container.appendChild(link);
  16. }

Posted by Dion Almaer at 4:03 am
1 Comment

++---
2.9 rating from 31 votes

1 Comment »

Comments feed TrackBack URI

Page Glimpse sure has a very original logo.

Comment by gustavs — April 18, 2009

Leave a comment

You must be logged in to post a comment.