PWI Demo 3, Latest (4 photos), custom thumb CSS and sorting

Select popup-viewer:


Unsorted:
Sorted by date (ascending):

Click here to view the code for this example.
<!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>PWI Demo 3 - Picassa Webalbum Integrator (PWI)</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery//jquery.min.js"></script>

    <!-- These files are needed for  -->
    <link   href="" rel="stylesheet" type="text/css"/>
    <script src="" type="text/javascript"></script>
    
    <!-- These files are the PWI files -->
    <link   href="css/pwi.css" rel="stylesheet" type="text/css"/>
    <script src="js/jquery.pwi-min.js" type="text/javascript"></script>

    <!-- Needed for the Google Maps overview map -->
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>

    <script type="text/javascript">

      $(document).ready(function () {
        var settings = {
          username: '<<USERNAME>>',
          maxResults: 4,
          thumbSize: 160,
          thumbCrop: 1,
          mode: 'latest',
          showPhotoCaption: true,
          showPhotoCaptionDate: true,
          thumbCss: { margin: '10px', 'border': '2px dotted blue' },
          onclickThumb: function (event) {
            alert('Your custom function here');
          }
        };
        $("#container1").pwi(settings);
        settings.sortPhotos = "ASC_DATE";
        $("#container2").pwi(settings);
      });

    </script>
  </head>
  <body>
    Unsorted:
    <div id="container1"> </div>
    Sorted by date (ascending):
    <div id="container2"> </div>
  </body>
</html>