Annotation of zogiLib/zpt/head_js.zpt, revision 1.4
1.1 casties 1: <script type="text/javascript" tal:attributes="src python:here.zogilibPath()+'jslib_js'"></script>
2: <script type="text/javascript" tal:attributes="src python:here.zogilibPath()+'dllib_js'"></script>
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())"/>
1.4 ! casties 10: <script type="text/javascript" tal:content="python:'''\n
! 11: newParameter('fn', '%s', 1);\n
! 12: newParameter('pn', '%s', 1);\n
! 13: '''%(here.getDLParam('fn', ''),here.getDLParam('pn', 1))"/>
1.3 casties 14: <script type="text/javascript">
15: newParameter('ws', '1.0', 2);
16: newParameter('mo', '', 2);
17: newParameter('wx', '0.0', 4);
18: newParameter('wy', '0.0', 4);
19: newParameter('ww', '1.0', 4);
20: newParameter('wh', '1.0', 4);
21: newParameter('brgt', '0.0', 4);
22: newParameter('cont', '0.0', 4);
23: newParameter('rot', '0.0', 4);
24: newParameter('rgba', '', 4);
25: newParameter('rgbm', '', 4);
26: newParameter('ddpi', '', 8);
27: newParameter('ddpix', '', 8);
28: newParameter('ddpiy', '', 8);
29: newParameter('mk', '', 16);
30: newParameter('pt', '0', 32);
31: </script>
32: <script type="text/javascript" tal:condition="exists:options/newparams" tal:repeat="p options/newparams" tal:content="python:'''\n
33: newParameter('%s', '%s', %s);\n'''%(p[0],p[1],p[2])"/>
34: <script type="text/javascript">
35: dl_param_init();
36: </script>
1.2 casties 37: <script type="text/javascript" tal:condition="python:here.getDLParam('pt', None) is not None"
38: tal:content="structure python:'''setParameter('pt', %d);'''%here.getPT()"></script>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>