public
Description: An OS X application to build a standalone web site as an export from my photo album.
Homepage: http://bleu.west.spy.net/~dustin/projects/photosync/
Clone URL: git://github.com/dustin/photosync.git
photosync / content / index.html
100644 48 lines (42 sloc) 1.034 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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>
  <head>
    <title>Photos</title>
    <link rel="stylesheet" href="style.css" />
    <script type="text/javascript">
    // <![CDATA[
      function init() {
        var years=document.getElementsByTagName("li");
        for(var i=0; i<years.length; i++) {
          if(years[i].id != undefined && years[i].id[0] == 'y') {
            years[i].getElementsByTagName("ul")[0].className="hidden";
          }
        }
      }
 
      function toggleDisplay(y) {
        var theYear=document.getElementById(y);
        var theChild=theYear.getElementsByTagName("ul")[0];
        if(theChild.className == 'hidden') {
          theChild.className='displayed';
        } else {
          theChild.className='hidden';
        }
      }
    // ]]>
    </script>
  </head>
 
  <body onload="init()">
 
    <h1>Search</h1>
    <p>
      <a href="search.html">Search</a>
    </p>
 
    <h1>Years</h1>
    <ul>
      %YEARS%
      </ul>
      </li>
    </ul>
 
  </body>
</html>