Activate your free membership today | Log-in

Friday, April 17th, 2009

Thumbnails.js: Screenshots via Page Glimpse

Category: JavaScript, Library

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

Related Content:

Posted by Dion Almaer at 4:03 am
1 Comment

++---
2.8 rating from 26 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.