annotate client/digitallibrary/jquery/jquery-test-full.html @ 882:07926f0b9a1a jquery

make digilib.html use new jquery. sync jquery-1.5.1.js and jquery.js.
author robcast
date Tue, 22 Mar 2011 12:31:41 +0100
parents 82e82774e0d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
1 <?xml version="1.0" ?>
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
4 <head>
670
11d96bc0ac09 birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents: 668
diff changeset
5 <title>Digilib jQuery Test: fullscreen</title>
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
6
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
7 <style type="text/css">
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
8 body {
775
65cdf970934d minor precisations
hertzhaft
parents: 770
diff changeset
9 background: grey;
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
10 }
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
11
762
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
12 div.digilib {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
13 /* padding for buttons and bird-div */
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
14 padding-right: 18px;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
15 padding-bottom: 100px;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
16 /* width: 220px; */
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
17 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
18
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
19 div.svg {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
20 position: absolute;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
21 background: transparent;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
22 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
23
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
24 td {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
25 vertical-align: top;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
26 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
27
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
28 div#test:hover {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
29 background-color: cornsilk;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
30 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
31
755
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
32 #debug {
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
33 background-color: beige;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
34 position: absolute;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
35 opacity: 50%;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
36 top: 4px;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
37 left: 300px;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
38 width: 500px;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
39 padding: 0px 5px;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
40 font-family: Arial;
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
41 font-size: 9px;
770
6d7c51e4724b highlight buttons by background image
hertzhaft
parents: 762
diff changeset
42 display: none;
755
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
43 }
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
44
762
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
45 div._log {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
46 color: grey;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
47 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
48
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
49 div._debug {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
50 color: darkgreen;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
51 }
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
52
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
53 div._error {
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
54 color: red;
aab01da232ef small preparations for SVG
hertzhaft
parents: 760
diff changeset
55 }
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
56 </style>
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
57
881
82e82774e0d7 testing with jQuery 1.5.1, porting my offset bugfix
hertzhaft
parents: 862
diff changeset
58 <script type="text/javascript" src="jquery-1.5.1.js"></script>
694
940c77d6e0e2 COOOOKIES
hertzhaft
parents: 693
diff changeset
59 <script type="text/javascript" src="jquery.cookie.js"></script>
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
60 <script type="text/javascript" src="jquery.digilib.js"></script>
785
b9a75079aece geometry as first digilib plugin.
robcast
parents: 775
diff changeset
61 <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
795
00d37112d062 birds eye view now as a plugin.
robcast
parents: 792
diff changeset
62 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script>
792
d742bd92b05a first step to a regions plugin
hertzhaft
parents: 785
diff changeset
63 <script type="text/javascript" src="jquery.digilib.regions.js"></script>
808
ae8e98c479d5 stub for new plugins; overlay div for regions plugin
hertzhaft
parents: 795
diff changeset
64 <script type="text/javascript" src="jquery.digilib.pluginstub.js"></script>
729
aee08dbfccae no bird zoom drag if scaler image is not zoomed
hertzhaft
parents: 715
diff changeset
65 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
66
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
67
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
68 <script type="text/javascript">
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
69 $(document).ready(function(){
657
6c756024300f restore the old scaler url
hertzhaft
parents: 656
diff changeset
70 var opts = {
6c756024300f restore the old scaler url
hertzhaft
parents: 656
diff changeset
71 interactionMode : 'fullscreen',
813
1a7b14deae3a regions plugin works, inclunding event handlers
hertzhaft
parents: 808
diff changeset
72 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler',
832
e4133946a9ad display regions as HTML for use in digilib element
hertzhaft
parents: 823
diff changeset
73 showRegionNumbers : true,
850
47a6b93bde43 always show html-defined regions. wrong pos still not fixed
hertzhaft
parents: 835
diff changeset
74 autoRegionLinks : false
657
6c756024300f restore the old scaler url
hertzhaft
parents: 656
diff changeset
75 };
760
f0be4432f515 primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents: 755
diff changeset
76 var $div = $('div.digilib');
f0be4432f515 primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents: 755
diff changeset
77 $div.digilib(opts);
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
78 });
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
79
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
80 </script>
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
81 </head>
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
82
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
83 <body>
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
84
729
aee08dbfccae no bird zoom drag if scaler image is not zoomed
hertzhaft
parents: 715
diff changeset
85 <div id="digilib-1" class="digilib">
614
0bd19b6cede4 highlight hovered buttons
hertzhaft
parents: 613
diff changeset
86 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&amp;dh=200&amp;fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" />
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
87 </div>
755
4c0cc97a6399 ugly workaround for IE7 image load handler bug
hertzhaft
parents: 729
diff changeset
88 <div id="debug">DEBUG</div>
862
7ebdc106a61a second step towards zoom arrows
hertzhaft
parents: 855
diff changeset
89 <!--
855
2c401f68d577 better region info
hertzhaft
parents: 852
diff changeset
90 <div class="keep regioncontent">
2c401f68d577 better region info
hertzhaft
parents: 852
diff changeset
91 <a href="http://www.mpiwg-berlin.mpg.de" coords="0.1,0.1,0.4,0.1">MPI fuer Wissenschaftsgeschichte</a>
2c401f68d577 better region info
hertzhaft
parents: 852
diff changeset
92 <a href="http://www.biblhertz.it" coords="0.5,0.8,0.4,0.1">Bibliotheca Hertziana</a>
2c401f68d577 better region info
hertzhaft
parents: 852
diff changeset
93 <a coords="0.3,0.5,0.15,0.1" />
2c401f68d577 better region info
hertzhaft
parents: 852
diff changeset
94 </div>
862
7ebdc106a61a second step towards zoom arrows
hertzhaft
parents: 855
diff changeset
95 -->
607
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
96 </body>
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
97 </html>
f5d5cae64828 parameter parsing
hertzhaft
parents:
diff changeset
98