annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 879:b2ec8244b86e jquery

arrows: positioning works in embedded mode, too
author hertzhaft
date Thu, 17 Mar 2011 19:21:25 +0100
parents e17507559d35
children 82e82774e0d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml">
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
3 <head>
670
11d96bc0ac09 birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents: 666
diff changeset
4 <title>Digilib jQuery Test: embedded</title>
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
5
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
6 <style type="text/css">
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
7 body {
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
8 background: silver;
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
9 }
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
10
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
11 div.digilib {
725
936d88972cd0 put styles in stylesheet.
robcast
parents: 715
diff changeset
12 /* padding for buttons and bird-div */
936d88972cd0 put styles in stylesheet.
robcast
parents: 715
diff changeset
13 padding-right: 18px;
936d88972cd0 put styles in stylesheet.
robcast
parents: 715
diff changeset
14 padding-bottom: 100px;
936d88972cd0 put styles in stylesheet.
robcast
parents: 715
diff changeset
15 /* width: 220px; */
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
16 }
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
17
762
aab01da232ef small preparations for SVG
hertzhaft
parents: 725
diff changeset
18 div.svg {
aab01da232ef small preparations for SVG
hertzhaft
parents: 725
diff changeset
19 position: absolute;
aab01da232ef small preparations for SVG
hertzhaft
parents: 725
diff changeset
20 background: transparent;
aab01da232ef small preparations for SVG
hertzhaft
parents: 725
diff changeset
21 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 725
diff changeset
22
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
23 td {
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
24 vertical-align: top;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
25 }
715
c1b1c463bc44 getting rid of bg div in zoomDrag
hertzhaft
parents: 709
diff changeset
26
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
27 #debug {
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
28 background-color: beige;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
29 position: absolute;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
30 top: 400px;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
31 padding: 0px 10px;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
32 font-family: Arial;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
33 font-size: 9pt;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
34 }
715
c1b1c463bc44 getting rid of bg div in zoomDrag
hertzhaft
parents: 709
diff changeset
35
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
36 div._log {
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
37 color: grey;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
38 }
674
6c869c851c9a minor corrections
hertzhaft
parents: 670
diff changeset
39
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
40 div._debug {
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
41 color: darkgreen;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
42 }
695
5c39f5dd6296 cookie control for birdview, works for fullscreen
hertzhaft
parents: 694
diff changeset
43
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
44 div._error {
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
45 color: red;
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
46 }
715
c1b1c463bc44 getting rid of bg div in zoomDrag
hertzhaft
parents: 709
diff changeset
47
709
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
48 div#test:hover {
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
49 background-color: cornsilk;
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
50 }
695
5c39f5dd6296 cookie control for birdview, works for fullscreen
hertzhaft
parents: 694
diff changeset
51
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
52 </style>
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
53
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
54 <script type="text/javascript" src="jquery-1.4.4.js"></script>
694
940c77d6e0e2 COOOOKIES
hertzhaft
parents: 692
diff changeset
55 <script type="text/javascript" src="jquery.cookie.js"></script>
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
56 <script type="text/javascript" src="jquery.digilib.js"></script>
785
b9a75079aece geometry as first digilib plugin.
robcast
parents: 762
diff changeset
57 <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
795
00d37112d062 birds eye view now as a plugin.
robcast
parents: 785
diff changeset
58 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script>
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
59 <script type="text/javascript" src="jquery.digilib.regions.js"></script>
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
60 <script type="text/javascript" src="jquery.digilib.pluginstub.js"></script>
725
936d88972cd0 put styles in stylesheet.
robcast
parents: 715
diff changeset
61 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
62
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
63
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
64 <script type="text/javascript">
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
65 $(document).ready(function(){
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
66 var opts = {
847
c662bf335881 fixed a bug in geom.intersect
hertzhaft
parents: 846
diff changeset
67 interactionMode : 'embedded',
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
68 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler',
852
4658ec2f9565 why not use coords attribute for coords?
hertzhaft
parents: 850
diff changeset
69 showRegionNumbers : false,
879
b2ec8244b86e arrows: positioning works in embedded mode, too
hertzhaft
parents: 871
diff changeset
70 autoRegionLinks : true
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
71 };
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
72 var $div = $('div.digilib');
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
73 $div.digilib(opts);
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
74
849
a0ae2d86bcf4 settings need deep copy to be duplicated
hertzhaft
parents: 848
diff changeset
75 // $('div.digilib').each(function(){
a0ae2d86bcf4 settings need deep copy to be duplicated
hertzhaft
parents: 848
diff changeset
76 // console.log($(this).data('digilib').settings);
a0ae2d86bcf4 settings need deep copy to be duplicated
hertzhaft
parents: 848
diff changeset
77 // });
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
78 });
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
79
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
80 </script>
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
81 </head>
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
82
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
83 <body>
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
84 <table>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
85 <tr>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
86 <td>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
87 <div id="digilib-1" class="digilib single">
870
80cc227c1d50 keep title and alt attributes from HTML for scaler img
hertzhaft
parents: 852
diff changeset
88 <img title="test" alt="testalt" src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/&amp;pn=1" />
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
89 </div>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
90 </td>
692
ab8054bba8d3 console debug div for IE
hertzhaft
parents: 688
diff changeset
91
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
92 <td>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
93 <div id="digilib-2" class="digilib">
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
94 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/ferrara" />
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
95 </div>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
96 </td>
692
ab8054bba8d3 console debug div for IE
hertzhaft
parents: 688
diff changeset
97
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
98 <td>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
99 <div id="digilib-3" class="digilib">
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
100 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" />
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
101 <div class="keep regioncontent">
852
4658ec2f9565 why not use coords attribute for coords?
hertzhaft
parents: 850
diff changeset
102 <a href="http://www.mpiwg-berlin.mpg.de" coords="0.1,0.1,0.4,0.1">MPI fuer Wissenschaftsgeschichte</a>
4658ec2f9565 why not use coords attribute for coords?
hertzhaft
parents: 850
diff changeset
103 <a href="http://www.biblhertz.it" coords="0.5,0.8,0.4,0.1">Bibliotheca Hertziana</a>
4658ec2f9565 why not use coords attribute for coords?
hertzhaft
parents: 850
diff changeset
104 <a coords="0.3,0.5,0.15,0.1" />
846
dad6a171bc52 region icons for embedded mode
hertzhaft
parents: 795
diff changeset
105 </div>
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
106 </div>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
107 </td>
692
ab8054bba8d3 console debug div for IE
hertzhaft
parents: 688
diff changeset
108
686
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
109 <td>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
110 <div id="digilib-4" class="digilib">
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
111 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/HansHolbein-NikolausKratzer" />
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
112 </div>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
113 </td>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
114 </tr>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
115 </table>
86c4174977f1 trying to work around IE bugs, debugging for IE
hertzhaft
parents: 674
diff changeset
116 <div id="debug">DEBUG</div>
709
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
117 <div id="test">
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
118 <img id="test" src="img/black-glass-16.png"></img>
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
119 <img id="test2" src="img/black-glass-32.png"></img>
fca26721e8dd fixed some reset and cookie issues
hertzhaft
parents: 696
diff changeset
120 </div>
666
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
121 </body>
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
122 </html>
2294e91613e6 added small buttons image files
hertzhaft
parents:
diff changeset
123