view webapp/src/main/webapp/jquery/jquery-test-embedded-rc.html @ 1118:f0474c1faaff

trying new annotator authentication.
author robcast
date Tue, 06 Nov 2012 18:24:39 +0100
parents 5bde01bcfb16
children
line wrap: on
line source

<!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>Digilib jQuery Test: embedded</title>

        <style type="text/css">
            body {
                 background: silver;
            }

            div.digilib {
                /* padding for buttons and bird-div */
                padding-right: 18px;
                padding-bottom: 100px;
                /* width: 220px; */
            }

            td {
                vertical-align: top;
                }

            #debug {
                background-color: beige;
                position: absolute;
                top: 400px;
                padding: 0px 10px;
                font-family: Arial;
                font-size: 9pt;
                }

            div._log {
                color: grey;
                }

            div._debug {
                color: darkgreen;
                }

            div._error {
                color: red;
                }

            div#test:hover {
                background-color: cornsilk;
                }

        </style>

        <script type="text/javascript" src="jquery-1.4.4.js"></script>
        <script type="text/javascript" src="jquery.cookie.js"></script>
        <script type="text/javascript" src="jquery.digilib.js"></script>
        <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
        <script type="text/javascript" src="jquery.digilib.buttons.js"></script>
        <script type="text/javascript" src="jquery.digilib.birdseye.js"></script>
        <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />


        <script type="text/javascript">
            $(document).ready(function(){
                 $('div.digilib').digilib({
                    interactionMode : 'embedded',
                    birdDivWidth : 100, 
                    birdDivHeight : 100
                    });

                 $('div.digilib').each(function(){
                         console.log($(this).data('digilib').settings);
                    });

            });

        </script>
    </head>

    <body>
        <table>
            <tr>
                <td>
                    <div id="digilib-1" class="digilib single">
                        <img src="http://localhost:18080/digitallibrary/servlet/Scaler?dw=200&amp;dh=200&amp;fn=163127KK/pageimg&amp;pn=11" />
                    </div>
                </td>

                <td>
                    <div id="digilib-2" class="digilib">
                        <img src="http://localhost:18080/digitallibrary/servlet/Scaler?dw=200&amp;dh=200&amp;fn=163127KK/pageimg&amp;pn=12" />
                    </div>
                </td>

                <td>
                    <div id="digilib-3" class="digilib">
                        <img src="http://localhost:18080/digitallibrary/servlet/Scaler?dw=200&amp;dh=200&amp;fn=163127KK/pageimg&amp;pn=13" />
                    </div>
                </td>

                <td>
                    <div id="digilib-4" class="digilib">
                        <img src="http://localhost:18080/digitallibrary/servlet/Scaler?dw=200&amp;dh=200&amp;fn=163127KK/pageimg&amp;pn=14" />
                    </div>
                </td>
            </tr>
        </table>
        <div id="debug">DEBUG</div>
        <div id="test">
            <img id="test" src="img/black-glass-16.png"></img>
            <img id="test2" src="img/black-glass-32.png"></img>
        </div>
    </body>
</html>