Mercurial > hg > digilib
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 718:996a584f1a0b jquery
put styles in stylesheet.
use relative positioning in embedded mode.
author | robcast |
---|---|
date | Mon, 31 Jan 2011 17:44:20 +0100 |
parents | fc54b455f7f8 |
children | ee47917540c7 |
rev | line source |
---|---|
659 | 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> | |
663
fda2d9bd9ba7
birdview: nice animation for embedded mode, none for fullscreen
hertzhaft
parents:
659
diff
changeset
|
4 <title>Digilib jQuery Test: embedded</title> |
659 | 5 |
6 <style type="text/css"> | |
7 body { | |
8 background: silver; | |
9 } | |
10 | |
11 div.digilib { | |
718 | 12 /* padding for buttons and bird-div */ |
13 padding-right: 18px; | |
14 padding-bottom: 100px; | |
15 /* width: 220px; */ | |
659 | 16 } |
17 | |
679 | 18 td { |
19 vertical-align: top; | |
20 } | |
708 | 21 |
679 | 22 #debug { |
23 background-color: beige; | |
24 position: absolute; | |
25 top: 400px; | |
26 padding: 0px 10px; | |
27 font-family: Arial; | |
28 font-size: 9pt; | |
29 } | |
708 | 30 |
679 | 31 div._log { |
32 color: grey; | |
33 } | |
667 | 34 |
679 | 35 div._debug { |
36 color: darkgreen; | |
37 } | |
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
38 |
679 | 39 div._error { |
40 color: red; | |
41 } | |
708 | 42 |
702 | 43 div#test:hover { |
44 background-color: cornsilk; | |
45 } | |
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
46 |
659 | 47 </style> |
48 | |
49 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
50 <script type="text/javascript" src="dlGeometry.js"></script> | |
687 | 51 <script type="text/javascript" src="jquery.cookie.js"></script> |
659 | 52 <script type="text/javascript" src="jquery.digilib.js"></script> |
718 | 53 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" /> |
659 | 54 |
55 | |
56 <script type="text/javascript"> | |
57 $(document).ready(function(){ | |
667 | 58 $('div.digilib').digilib({ |
59 interactionMode : 'embedded', | |
60 birdDivWidth : 100, | |
61 birdDivHeight : 100 | |
62 }); | |
659 | 63 |
64 $('div.digilib').each(function(){ | |
65 console.log($(this).data('digilib').settings); | |
66 }); | |
67 | |
68 }); | |
69 | |
70 </script> | |
71 </head> | |
72 | |
73 <body> | |
679 | 74 <table> |
75 <tr> | |
76 <td> | |
77 <div id="digilib-1" class="digilib single"> | |
78 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
79 </div> | |
80 </td> | |
685 | 81 |
679 | 82 <td> |
83 <div id="digilib-2" class="digilib"> | |
84 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
85 </div> | |
86 </td> | |
685 | 87 |
679 | 88 <td> |
89 <div id="digilib-3" class="digilib"> | |
90 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
91 </div> | |
92 </td> | |
685 | 93 |
679 | 94 <td> |
95 <div id="digilib-4" class="digilib"> | |
96 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
97 </div> | |
98 </td> | |
99 </tr> | |
100 </table> | |
101 <div id="debug">DEBUG</div> | |
702 | 102 <div id="test"> |
103 <img id="test" src="img/black-glass-16.png"></img> | |
104 <img id="test2" src="img/black-glass-32.png"></img> | |
105 </div> | |
659 | 106 </body> |
107 </html> | |
108 |