git » galala » master » tree

[master] / templates / album.html

<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>{{title}} - {{album.title}}</title>
    <link rel="stylesheet" href="static/album.css" type="text/css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="static/jquery.touchSwipe.js"></script>
    <script type="text/javascript" src="static/galala.js"></script>
</head>
<body>

<div class="container">
    <div class="mainpic">
        <h1><a href=".">{{title}}</a> -
            <a href="">{{album.title}}</a></h1>

        % fst = album.images[0]
        <img id="main"
             src="{{fst.normalpath}}"
             alt=""
             data-anchor="{{fst.anchor}}"/>

        <p><span id="title"></span><br>
           <span id="desc"></span></p>
    </div>

    <div class="thumbnails">
        %for i in album.images:
            <img class="thumb" id="{{i.anchor}}" src="{{i.thumbpath}}"/>
        %end
    </div>

</div>

<div class="preload">
    <img id="preload1"/>
    <img id="preload2"/>
</div>


<script type="text/javascript">
images = {{album.images_to_json()}}
</script>

</body>
</html>