Annotation of zogiLib/zpt/head_js.zpt, revision 1.7
1.7 ! casties 1: <script type="text/javascript" tal:attributes="src python:here.zogilibPath()+'template/jslib_js'"></script>
! 2: <script type="text/javascript" tal:attributes="src python:here.zogilibPath()+'template/dllib_js'"></script>
1.1 casties 3: <script type="text/javascript" tal:content="structure python:'''\n
4: base_init();\n
5: var baseUrl = '%s';\n
6: var toolbarEnabledURL = '%s';\n
7: var dlTarget = '%s';\n
8: window.name = dlTarget;\n
1.3 casties 9: document.id = dlTarget;\n'''%(here.zogilibPath(), here.getToolbarPageURL(), here.getDLTarget())"/>
10: <script type="text/javascript">
1.5 casties 11: newParameter('fn', '', 1);
1.6 casties 12: newParameter('pn', 1, 2);
1.3 casties 13: newParameter('ws', '1.0', 2);
14: newParameter('mo', '', 2);
15: newParameter('wx', '0.0', 4);
16: newParameter('wy', '0.0', 4);
17: newParameter('ww', '1.0', 4);
18: newParameter('wh', '1.0', 4);
19: newParameter('brgt', '0.0', 4);
20: newParameter('cont', '0.0', 4);
21: newParameter('rot', '0.0', 4);
22: newParameter('rgba', '', 4);
23: newParameter('rgbm', '', 4);
24: newParameter('ddpi', '', 8);
25: newParameter('ddpix', '', 8);
26: newParameter('ddpiy', '', 8);
1.5 casties 27: // non-digilib parameters have detail level 32
28: newParameter('mk', '', 64);
29: newParameter('pt', '0', 128);
1.3 casties 30: </script>
31: <script type="text/javascript" tal:condition="exists:options/newparams" tal:repeat="p options/newparams" tal:content="python:'''\n
32: newParameter('%s', '%s', %s);\n'''%(p[0],p[1],p[2])"/>
33: <script type="text/javascript">
34: dl_param_init();
35: </script>
1.2 casties 36: <script type="text/javascript" tal:condition="python:here.getDLParam('pt', None) is not None"
37: tal:content="structure python:'''setParameter('pt', %d);'''%here.getPT()"></script>
1.5 casties 38: <script type="text/javascript" tal:condition="exists:options/fn" tal:content="python:'''\n
39: // fn and pn defined outside -- mask in URL\n
40: setParameter('fn', '%s');\n
41: setParameter('pn', '%s');\n
42: dlUrlParamMask = 254;
43: '''%(options.get('fn'),options.get('pn', 1))"/>
44:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>