svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3178 21cb76012c78
parent 3175 b2ba6eeb61ec
child 3181 50d0fef791d5
equal deleted inserted replaced
3175:b2ba6eeb61ec 3178:21cb76012c78
  5746 </xsl:text>
  5746 </xsl:text>
  5747     <xsl:text>        switch(index) {
  5747     <xsl:text>        switch(index) {
  5748 </xsl:text>
  5748 </xsl:text>
  5749     <xsl:text>            case 0:
  5749     <xsl:text>            case 0:
  5750 </xsl:text>
  5750 </xsl:text>
       
  5751     <xsl:text>                this.range = Math.max(1,value);
       
  5752 </xsl:text>
       
  5753     <xsl:text>                break;
       
  5754 </xsl:text>
       
  5755     <xsl:text>            case 1:
       
  5756 </xsl:text>
  5751     <xsl:text>                this.position = value;
  5757     <xsl:text>                this.position = value;
  5752 </xsl:text>
  5758 </xsl:text>
  5753     <xsl:text>                break;
  5759     <xsl:text>                break;
  5754 </xsl:text>
  5760 </xsl:text>
  5755     <xsl:text>            case 1:
  5761     <xsl:text>            case 2:
  5756 </xsl:text>
  5762 </xsl:text>
  5757     <xsl:text>                this.range = Math.max(1,value);
  5763     <xsl:text>                this.size = value;
  5758 </xsl:text>
  5764 </xsl:text>
  5759     <xsl:text>                break;
  5765     <xsl:text>                break;
  5760 </xsl:text>
  5766 </xsl:text>
  5761     <xsl:text>            case 2:
       
  5762 </xsl:text>
       
  5763     <xsl:text>                this.size = value;
       
  5764 </xsl:text>
       
  5765     <xsl:text>                break;
       
  5766 </xsl:text>
       
  5767     <xsl:text>        }
  5767     <xsl:text>        }
  5768 </xsl:text>
  5768 </xsl:text>
  5769     <xsl:text>
  5769     <xsl:text>
  5770 </xsl:text>
  5770 </xsl:text>
  5771     <xsl:text>        this.request_animate();
  5771     <xsl:text>        this.request_animate();
  5832 </xsl:text>
  5832 </xsl:text>
  5833     <xsl:text>    apply_position(position){
  5833     <xsl:text>    apply_position(position){
  5834 </xsl:text>
  5834 </xsl:text>
  5835     <xsl:text>        this.position = Math.round(Math.max(Math.min(position, this.range - this.size), 0));
  5835     <xsl:text>        this.position = Math.round(Math.max(Math.min(position, this.range - this.size), 0));
  5836 </xsl:text>
  5836 </xsl:text>
  5837     <xsl:text>        this.apply_hmi_value(0, this.position);
  5837     <xsl:text>        this.apply_hmi_value(1, this.position);
  5838 </xsl:text>
  5838 </xsl:text>
  5839     <xsl:text>    }
  5839     <xsl:text>    }
  5840 </xsl:text>
  5840 </xsl:text>
  5841     <xsl:text>
  5841     <xsl:text>
  5842 </xsl:text>
  5842 </xsl:text>