Project

General

Profile

« Previous | Next » 

Revision 1203

Added by nicolasboyer 10 months ago

update tranwf countdown

View differences:

_xxx@countDown.xsl
7 7
		<xsl:if test="*/sp:countDown">
8 8
<script type="text/JavaScript">
9 9
countDownMgr.fTime = <xsl:call-template name="get_time">
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time/sp:*"/>
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time//sp:*"/>
11 11
</xsl:call-template>;
12 12
countDownMgr.fReset = <xsl:value-of select="if(local-name()='case','false','true')"/>;
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown/sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown/sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown/sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown/sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown//sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown//sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown//sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown//sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
14 14
countDownMgr.fDisplay = "<xsl:value-of select="*/sp:countDown/*/sp:display"/>";</xsl:if><xsl:if test="*/sp:countDown/*/sp:appearance">
15 15
countDownMgr.fAppearance = "<xsl:value-of select="*/sp:countDown/*/sp:appearance"/>";</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior/sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior//sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
25 25
</xsl:if>
26
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
26
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
28 28
</xsl:call-template></xsl:if>};</xsl:if>
29 29
</script>
30 30
		</xsl:if>

Also available in: Unified diff