Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery-test-full.html @ 760:f0be4432f515 jquery
primitive plugin extension mechanism - unsure how useful this is
author | hertzhaft |
---|---|
date | Tue, 08 Feb 2011 23:57:39 +0100 |
parents | 4c0cc97a6399 |
children | aab01da232ef |
comparison
equal
deleted
inserted
replaced
756:ccf67eaf97ee | 760:f0be4432f515 |
---|---|
34 $(document).ready(function(){ | 34 $(document).ready(function(){ |
35 var opts = { | 35 var opts = { |
36 interactionMode : 'fullscreen', | 36 interactionMode : 'fullscreen', |
37 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' | 37 scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' |
38 }; | 38 }; |
39 $('div.digilib').digilib(opts); | 39 var $div = $('div.digilib'); |
40 $div.digilib(opts); | |
41 var obj = { | |
42 'initExtension' : function() { | |
43 var settings = $(this).data('digilib').settings; | |
44 console.debug('initExtension:', this, 'settings:', settings); | |
45 }, | |
46 'options' : { 'test' : 'content of option "test"' }, | |
47 }; | |
48 $div.digilib('extendPlugin', obj); | |
49 $div.digilib('initExtension'); | |
40 }); | 50 }); |
41 | 51 |
42 </script> | 52 </script> |
43 </head> | 53 </head> |
44 | 54 |