Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 722:73cac710bea4 jquery
still the strange bug when dragging the zoomed image in embedded mode
author | hertzhaft |
---|---|
date | Mon, 31 Jan 2011 16:22:39 +0100 |
parents | c1b1c463bc44 |
children | 936d88972cd0 |
rev | line source |
---|---|
666 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | |
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 | 5 |
6 <style type="text/css"> | |
7 body { | |
8 background: silver; | |
9 } | |
10 | |
11 div.digilib { | |
12 padding: 10px; | |
674 | 13 width: 220px; |
666 | 14 } |
15 | |
674 | 16 div.buttons { |
17 position: absolute; | |
18 margin-left: 184px; | |
19 top: 0px; | |
20 padding: 2px; | |
696 | 21 background-color: grey; |
22 opacity: 0.4; | |
666 | 23 } |
688 | 24 |
666 | 25 div.button { |
26 } | |
27 | |
28 div.button:hover { | |
29 background-color: darkred; | |
30 } | |
31 | |
674 | 32 div.birdview { |
33 border: 1px solid white; | |
34 z-index: 1; | |
35 } | |
36 | |
715 | 37 div.scaler { |
38 background-color: grey; | |
39 z-index: 0; | |
40 } | |
41 | |
674 | 42 div.about { |
43 position: absolute; | |
44 width: 200px; | |
45 top: 100px; | |
46 left: 350px; | |
47 height: 200px; | |
48 padding: 0px 2px; | |
49 font-family: Verdana, Arial, Helvetica, sans-serif; | |
50 border: 2px solid lightcyan; | |
51 background-color: lightgrey; | |
52 text-align: center; | |
53 display: none; | |
54 z-index: 1000; | |
55 } | |
715 | 56 |
686 | 57 td { |
58 vertical-align: top; | |
59 } | |
715 | 60 |
686 | 61 #debug { |
62 background-color: beige; | |
63 position: absolute; | |
64 top: 400px; | |
65 padding: 0px 10px; | |
66 font-family: Arial; | |
67 font-size: 9pt; | |
68 } | |
715 | 69 |
686 | 70 div._log { |
71 color: grey; | |
72 } | |
674 | 73 |
686 | 74 div._debug { |
75 color: darkgreen; | |
76 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
77 |
686 | 78 div._error { |
79 color: red; | |
80 } | |
715 | 81 |
709 | 82 div#test:hover { |
83 background-color: cornsilk; | |
84 } | |
695
5c39f5dd6296
cookie control for birdview, works for fullscreen
hertzhaft
parents:
694
diff
changeset
|
85 |
666 | 86 </style> |
87 | |
88 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
89 <script type="text/javascript" src="dlGeometry.js"></script> | |
694 | 90 <script type="text/javascript" src="jquery.cookie.js"></script> |
666 | 91 <script type="text/javascript" src="jquery.digilib.js"></script> |
92 | |
93 | |
94 <script type="text/javascript"> | |
95 $(document).ready(function(){ | |
674 | 96 $('div.digilib').digilib({ |
97 interactionMode : 'embedded', | |
98 birdDivWidth : 100, | |
99 birdDivHeight : 100 | |
100 }); | |
666 | 101 |
102 $('div.digilib').each(function(){ | |
103 console.log($(this).data('digilib').settings); | |
104 }); | |
105 | |
106 }); | |
107 | |
108 </script> | |
109 </head> | |
110 | |
111 <body> | |
686 | 112 <table> |
113 <tr> | |
114 <td> | |
115 <div id="digilib-1" class="digilib single"> | |
116 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
117 </div> | |
118 </td> | |
692 | 119 |
686 | 120 <td> |
121 <div id="digilib-2" class="digilib"> | |
122 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
123 </div> | |
124 </td> | |
692 | 125 |
686 | 126 <td> |
127 <div id="digilib-3" class="digilib"> | |
128 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
129 </div> | |
130 </td> | |
692 | 131 |
686 | 132 <td> |
133 <div id="digilib-4" class="digilib"> | |
134 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
135 </div> | |
136 </td> | |
137 </tr> | |
138 </table> | |
139 <div id="debug">DEBUG</div> | |
709 | 140 <div id="test"> |
141 <img id="test" src="img/black-glass-16.png"></img> | |
142 <img id="test2" src="img/black-glass-32.png"></img> | |
143 </div> | |
666 | 144 </body> |
145 </html> | |
146 |