view client/digitallibrary/jquery/jquery-test-embedded.html @ 692:ab8054bba8d3 jquery

console debug div for IE
author hertzhaft
date Thu, 27 Jan 2011 00:11:50 +0100
parents 0235a8e63818
children 940c77d6e0e2
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: 10px;
                width: 220px;
            }

            div.buttons {
                position: absolute;
                margin-left: 184px;
                top: 0px;
                padding: 2px;
            }

            div.button {
            }

            div.button:hover {
                background-color: darkred;
            }

            div.birdview {
                border: 1px solid white;
                z-index: 1;
                }

            div.about {
                position: absolute;
                width: 200px;
                top: 100px;
                left: 350px;
                height: 200px;
                padding: 0px 2px;
                font-family: Verdana, Arial, Helvetica, sans-serif;
                border: 2px solid lightcyan;
                background-color: lightgrey;
                text-align: center;
                display: none;
                z-index: 1000;
                }
                
            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;
                }
                
        </style>

        <script type="text/javascript" src="jquery-1.4.4.js"></script>
        <script type="text/javascript" src="dlGeometry.js"></script>
        <script type="text/javascript" src="jquery.digilib.js"></script>


        <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://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/&amp;pn=1" />
                    </div>
                </td>

                <td>
                    <div id="digilib-2" class="digilib">
                        <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/ferrara" />
                    </div>
                </td>

                <td>
                    <div id="digilib-3" class="digilib">
                        <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/weide" />
                    </div>
                </td>

                <td>
                    <div id="digilib-4" class="digilib">
                        <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/HansHolbein-NikolausKratzer" />
                    </div>
                </td>
            </tr>
        </table>
        <div id="debug">DEBUG</div>
    </body>
</html>