view client/digitallibrary/jquery/jquery-test-svg.html @ 778:f8235c42f4a0 jquery

more preparations for SVG measuring tool
author hertzhaft
date Sun, 13 Feb 2011 01:12:45 +0100
parents
children 62c3b902f878
line wrap: on
line source

<?xml version="1.0" ?>
<!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>jQuery.digilibSVG test</title>

        <style type="text/css">
        </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.cookie.js"></script>
        <script type="text/javascript" src="jquery.digilib.js"></script>
        <script type="text/javascript" src="svg/jquery.svg.js"></script>
        <script type="text/javascript" src="svg/jquery.digilibSVG.js"></script>
        <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />
        <link rel="stylesheet" type="text/css" href="svg/jquery.digilibSVG.css" />


        <script type="text/javascript">
            $(document).ready(function(){
                var opts = {
                    interactionMode : 'fullscreen',
                    scalerInset : 100,
                    scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler'
                    };
                var $div = $('div.digilib');
                $div.digilib(opts);
                var svgopts = {};
                $div.digilibSVG(svgopts);
            });

        </script>
    </head>

    <body>

        <div id="digilib-1" class="digilib">
            <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" />
        </div>
        <div id="debug">DEBUG</div>
    </body>
</html>