Project

General

Profile

root / branches / 4.4-sc42 / model / sources / dkCore / genSld / wdt / mgr / scHPSSlide.uiwidget @ 3097

1
<?xml version="1.0" encoding="UTF-8"?>
2
<sm:openUiWidget xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="scHPSSlide" info="SCENARI HTML Presentation system - slide template (requires scHPS in window.parent)">
3
	<sm:fillTemplateBuffers>
4
		<sm:standardLibrary codeLib="SiLib"/>
5
		<sm:postXslFragment keyXsl="xhtml"><!--<comment xmlns="scenari.eu:comment:1.0" type="thread"><comment creationTime="1600265810044" updateTime="1600268759560">https://source.scenari.software/issues/17</comment></comment>-->&lt;xsl:overlay match="body" mode="endBodyTags"&gt;
6
	&lt;script&gt;
7
		try{if (window.parent &amp;amp;&amp;amp; window.parent.scHPS){
8
			if (!window.parent.scHPS.fDisabled) window.parent.scHPS.swichToSsStyles(document);
9
		}}catch(e){}
10
	&lt;/script&gt;
11
&lt;/xsl:overlay&gt;</sm:postXslFragment>
12
		<sm:postXslFragment keyXsl="xhtml"><!--<comment xmlns="scenari.eu:comment:1.0" type="thread"><comment creationTime="1364484006331">Les boutons de navigation du mode HTML doivent charger les pages en mode HTML.</comment></comment>-->&lt;xsl:template match="@href[contains(parent::a/@class,'outNav_i')]"&gt;
13
  &lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="."/&gt;?mode=html&lt;/xsl:attribute&gt;
14
&lt;/xsl:template&gt;</sm:postXslFragment>
15
		<sm:postXslFragment keyXsl="xhtml"><!--<comment xmlns="scenari.eu:comment:1.0" type="thread"><comment creationTime="1364484037252">Les boutons de zoom du mode HTML doivent charger les pages en mode HTML.</comment></comment>-->&lt;xsl:template match="@href[contains(parent::a/@class,'ssZmLnk')]"&gt;
16
  &lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="."/&gt;?mode=html&lt;/xsl:attribute&gt;
17
&lt;/xsl:template&gt;
18

    
19
&lt;xsl:template match="@href[contains(parent::a/@class,'htmlZmLnk')]"&gt;
20
  &lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="."/&gt;?mode=html&lt;/xsl:attribute&gt;
21
&lt;/xsl:template&gt;</sm:postXslFragment>
22
		<sm:otherBuffers keyBuffer="js.postLink">if (window.parent &amp;&amp; window.parent.scHPS){
23
   var scHPS = window.parent.scHPS;
24
   var scSldMgr = new scHPS.SldMgr("ide:tplPge", window);
25
   (function(pSldMgr){
26
     pSldMgr.addBindableBlk("des:div.imgInFlow",{ratioHeightAlone:1,ratioHeight:.85,captionHeight:45},scHPS.SizeBlkImg);
27
     pSldMgr.addBindableBlk("des:div.imgIllus",{ratioHeightAlone:.6,ratioHeight:.5,captionHeight:45},scHPS.SizeBlkImg);
28
     pSldMgr.addBindableBlk("des:span.imgInline",{captionHeight:0},scHPS.SizeBlkImg);
29
     pSldMgr.addBindableBlk("des:div.objInFlow",null,scHPS.SizeBlkObj);
30
     pSldMgr.addBindableBlk("des:div.vidInFlow",{onAction:function(pRes){try{this.fObj.SetVariable("player:jsPause", "")}catch(e){};try{this.fObj.pause()}catch(e){};}},scHPS.SizeBlkObj);
31
     pSldMgr.addBindableBlk("des:span.objInline",{captionHeight:0},scHPS.SizeBlkObj);
32
     pSldMgr.addBindableBlk("des:a.ssZmLnk",null,scHPS.FraZmBlk);
33
     pSldMgr.addBindableBlk("des:a.sldZmLnk",{type:'sld'},scHPS.FraZmBlk);
34
     pSldMgr.addBindableBlk("des:a.htmlZmLnk",{setModeHtml:true},scHPS.FraZmBlk);
35
     pSldMgr.addBindableBlk("des:a.webZmLnk",null,scHPS.FraZmBlk);
36
     pSldMgr.addBindableBlk("des:div.imgAnim",{autoStart:false},scHPS.AnimBlk);
37
   })(scSldMgr);
38
}</sm:otherBuffers>
39
	</sm:fillTemplateBuffers>
40
	<sm:content/>
41
</sm:openUiWidget>
(4-4/4)