Mercurial > hg > digilib
annotate client/digitallibrary/jquery/jquery-test-embedded.html @ 693:dbd7c7aa575f jquery
cookie names should not contain equal signs
| author | hertzhaft |
|---|---|
| date | Thu, 27 Jan 2011 18:50:55 +0100 |
| parents | 317f7033e6ed |
| children | 89ff5133d1c1 |
| 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 { | |
| 12 padding: 10px; | |
| 667 | 13 width: 220px; |
| 659 | 14 } |
| 15 | |
| 667 | 16 div.buttons { |
| 17 position: absolute; | |
| 18 margin-left: 184px; | |
| 19 top: 0px; | |
| 20 padding: 2px; | |
| 689 | 21 background-color: grey; |
| 22 opacity: 0.4; | |
| 659 | 23 } |
| 681 | 24 |
| 659 | 25 div.button { |
| 26 } | |
| 27 | |
| 28 div.button:hover { | |
| 29 background-color: darkred; | |
| 30 } | |
| 31 | |
| 667 | 32 div.birdview { |
| 33 border: 1px solid white; | |
| 34 z-index: 1; | |
| 35 } | |
| 36 | |
| 37 div.about { | |
| 38 position: absolute; | |
| 39 width: 200px; | |
| 40 top: 100px; | |
| 41 left: 350px; | |
| 42 height: 200px; | |
| 43 padding: 0px 2px; | |
| 44 font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 45 border: 2px solid lightcyan; | |
| 46 background-color: lightgrey; | |
| 47 text-align: center; | |
| 48 display: none; | |
| 49 z-index: 1000; | |
| 50 } | |
| 679 | 51 |
| 52 td { | |
| 53 vertical-align: top; | |
| 54 } | |
| 55 | |
| 56 #debug { | |
| 57 background-color: beige; | |
| 58 position: absolute; | |
| 59 top: 400px; | |
| 60 padding: 0px 10px; | |
| 61 font-family: Arial; | |
| 62 font-size: 9pt; | |
| 63 } | |
| 64 | |
| 65 div._log { | |
| 66 color: grey; | |
| 67 } | |
| 667 | 68 |
| 679 | 69 div._debug { |
| 70 color: darkgreen; | |
| 71 } | |
|
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
72 |
| 679 | 73 div._error { |
| 74 color: red; | |
| 75 } | |
|
688
7ef3bc87ab19
cookie control for birdview, works for fullscreen
hertzhaft
parents:
687
diff
changeset
|
76 |
| 659 | 77 </style> |
| 78 | |
| 79 <script type="text/javascript" src="jquery-1.4.4.js"></script> | |
| 80 <script type="text/javascript" src="dlGeometry.js"></script> | |
| 687 | 81 <script type="text/javascript" src="jquery.cookie.js"></script> |
| 659 | 82 <script type="text/javascript" src="jquery.digilib.js"></script> |
| 83 | |
| 84 | |
| 85 <script type="text/javascript"> | |
| 86 $(document).ready(function(){ | |
| 667 | 87 $('div.digilib').digilib({ |
| 88 interactionMode : 'embedded', | |
| 89 birdDivWidth : 100, | |
| 90 birdDivHeight : 100 | |
| 91 }); | |
| 659 | 92 |
| 93 $('div.digilib').each(function(){ | |
| 94 console.log($(this).data('digilib').settings); | |
| 95 }); | |
| 96 | |
| 97 }); | |
| 98 | |
| 99 </script> | |
| 100 </head> | |
| 101 | |
| 102 <body> | |
| 679 | 103 <table> |
| 104 <tr> | |
| 105 <td> | |
| 106 <div id="digilib-1" class="digilib single"> | |
| 107 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/&pn=1" /> | |
| 108 </div> | |
| 109 </td> | |
| 685 | 110 |
| 679 | 111 <td> |
| 112 <div id="digilib-2" class="digilib"> | |
| 113 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/ferrara" /> | |
| 114 </div> | |
| 115 </td> | |
| 685 | 116 |
| 679 | 117 <td> |
| 118 <div id="digilib-3" class="digilib"> | |
| 119 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/weide" /> | |
| 120 </div> | |
| 121 </td> | |
| 685 | 122 |
| 679 | 123 <td> |
| 124 <div id="digilib-4" class="digilib"> | |
| 125 <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/HansHolbein-NikolausKratzer" /> | |
| 126 </div> | |
| 127 </td> | |
| 128 </tr> | |
| 129 </table> | |
| 130 <div id="debug">DEBUG</div> | |
| 659 | 131 </body> |
| 132 </html> | |
| 133 |
