﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:widget="http://www.netvibes.com/ns/">
<head>
    <meta name="author" content="Pierre Ricadat" />
    <meta name="website" content="http://tasteofasia.fr" />
    <meta name="description" content="Taste Of Asia (ToA) est un portail collaboratif de bloggeurs passionnés par le cinéma asiatique. Il vous fera découvrir toutes sortes de films à travers critiques et images." />
    <meta name="keywords" content="cinéma, asiatique, asie, film, films, critiques, blogs, notes, images, photos, trailers, dvd" />
    <meta name="version" content="1.0" />
    
    <meta name="apiVersion" content="1.0" />
    <meta name="inline" content="true" />
    <meta name="autoRefresh" content="20" />
    <meta name="debugMode" content="true" />
 
    <link rel="stylesheet" type="text/css" href="http://www.netvibes.com/themes/uwa/style.css" />
    <script type="text/javascript" src="http://www.netvibes.com/js/UWA/load.js.php?env=Standalone"></script>
    <link rel="icon" type="image/png" href="http://tasteofasia.fr/bans/toa.png" />
 
    <title>Dernières critiques sur Taste of Asia</title>
 
    <style type="text/css">
        ul.toa{
            margin: 0;
            padding: 0;
        }
            ul.toa li{
                height: 100px;
                width: 100px;
                display: block;
                float: left;
                text-align: center;
                background: #000;
                
                margin: 3px;
                padding: 0;
            }
                ul.toa li a{
                    height: 100px;
                    width: 100px;
                    display: block;
                    border: 0;
                    background-color: transparent;
                    background-repeat: no-repeat;
                    background-position: center center;
                    
                    text-indent: -1000em;
                    overflow: hidden;
                }
    </style>
 
    <widget:preferences>
        <preference name="limit" type="range" label="Number of items to display" defaultValue="12" step="1" min="1" max="12" />
    </widget:preferences>
 
    <script type="text/javascript">
    var toa = {}

	toa.display = function(feed) {

        var out = '<ul class="toa autoclear">';
        if (feed.items){

            for (var i=0; i<feed.items.length; i++){
                out += '<li><a href="' + feed.items[i].link + '" style="background-image: url(' + feed.items[i].enclosures[0].url + ');" title="' + feed.items[i].title + '">' + feed.items[i].title + '</a></li>';
                
                if (i == widget.getValue('limit') - 1){
                    break;
                }
            }
        }
        out += '</ul>'
        widget.log(feed);
        widget.setBody(out);
	}
    
	widget.onLoad = function() {
        UWA.Data.getFeed('http://feeds.feedburner.com/tasteofasia', toa.display);
	}
	</script>
	</head>
	<body>
		<p>Loading...</p>
	</body>
</html>