Mercurial > hg > digilib-old
annotate client/digitallibrary/jquery/jquery-test-full.html @ 762:aab01da232ef jquery
small preparations for SVG
author | hertzhaft |
---|---|
date | Thu, 10 Feb 2011 09:20:56 +0100 |
parents | f0be4432f515 |
children | 6d7c51e4724b |
rev | line source |
---|---|
607 | 1 <?xml version="1.0" ?> |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | |
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 | 6 |
607 | 7 <style type="text/css"> |
8 body { | |
9 background: silver; | |
10 } | |
614 | 11 |
762 | 12 div.digilib { |
13 /* padding for buttons and bird-div */ | |
14 padding-right: 18px; | |
15 padding-bottom: 100px; | |
16 /* width: 220px; */ | |
17 } | |
18 | |
19 div.svg { | |
20 position: absolute; | |
21 background: transparent; | |
22 } | |
23 | |
24 td { | |
25 vertical-align: top; | |
26 } | |
27 | |
28 div#test:hover { | |
29 background-color: cornsilk; | |
30 } | |
31 | |
755 | 32 #debug { |
33 background-color: beige; | |
34 position: absolute; | |
35 opacity: 50%; | |
36 top: 4px; | |
37 left: 300px; | |
38 width: 500px; | |
39 padding: 0px 5px; | |
40 font-family: Arial; | |
41 font-size: 9px; | |
42 } | |
43 | |
762 | 44 div._log { |
45 color: grey; | |
46 } | |
47 | |
48 div._debug { | |
49 color: darkgreen; | |
50 } | |
51 | |
52 div._error { | |
53 color: red; | |
54 } | |
607 | 55 </style> |
614 | 56 |
607 | 57 <script type="text/javascript" src="jquery-1.4.4.js"></script> |
609 | 58 <script type="text/javascript" src="dlGeometry.js"></script> |
694 | 59 <script type="text/javascript" src="jquery.cookie.js"></script> |
607 | 60 <script type="text/javascript" src="jquery.digilib.js"></script> |
729 | 61 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" /> |
614 | 62 |
607 | 63 |
64 <script type="text/javascript"> | |
65 $(document).ready(function(){ | |
657 | 66 var opts = { |
67 interactionMode : 'fullscreen', | |
693 | 68 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' |
657 | 69 }; |
760
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
70 var $div = $('div.digilib'); |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
71 $div.digilib(opts); |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
72 var obj = { |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
73 'initExtension' : function() { |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
74 var settings = $(this).data('digilib').settings; |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
75 console.debug('initExtension:', this, 'settings:', settings); |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
76 }, |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
77 'options' : { 'test' : 'content of option "test"' }, |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
78 }; |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
79 $div.digilib('extendPlugin', obj); |
f0be4432f515
primitive plugin extension mechanism - unsure how useful this is
hertzhaft
parents:
755
diff
changeset
|
80 $div.digilib('initExtension'); |
607 | 81 }); |
82 | |
83 </script> | |
84 </head> | |
85 | |
86 <body> | |
614 | 87 |
729 | 88 <div id="digilib-1" class="digilib"> |
614 | 89 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> |
607 | 90 </div> |
755 | 91 <div id="debug">DEBUG</div> |
607 | 92 </body> |
93 </html> | |
94 |