corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | <svg |
2 | width="800" height="600" |
||
3 | xmlns="http://www.w3.org/2000/svg" |
||
4 | onload="StartAnimation(evt)"> |
||
5 | |||
6 | <title>Test Tube Progress Bar</title> |
||
7 | <desc>Created for the Web Directions SVG competition</desc> |
||
8 | |||
9 | <script type="text/ecmascript"><![CDATA[ |
||
10 | var timevalue = 0; |
||
11 | var timer_increment = 1; |
||
12 | var max_time = 100; |
||
13 | var hickory; |
||
14 | var dickory; |
||
15 | var dock; |
||
16 | var i; |
||
17 | |||
18 | function StartAnimation(evt) { |
||
19 | hickory = evt.target.ownerDocument.getElementById("hickory"); |
||
20 | dickory = evt.target.ownerDocument.getElementById("dickory"); |
||
21 | dock = evt.target.ownerDocument.getElementById("dock"); |
||
22 | |||
23 | ShowAndGrowElement(); |
||
24 | } |
||
25 | function ShowAndGrowElement() { |
||
26 | timevalue = timevalue + timer_increment; |
||
27 | if (timevalue > max_time) |
||
28 | return; |
||
29 | // Scale the text string gradually until it is 20 times larger |
||
30 | scalefactor = (timevalue * 650) / max_time; |
||
31 | |||
32 | if (timevalue < 30) { |
||
33 | hickory.setAttribute("display", ""); |
||
34 | hickory.setAttribute("transform", "translate(" + (600+scalefactor*3*-1 ) + ", -144 )"); |
||
35 | } |
||
36 | |||
37 | if (timevalue > 30 && timevalue < 66) { |
||
38 | dickory.setAttribute("display", ""); |
||
39 | dickory.setAttribute("transform", "translate(" + (-795+scalefactor*2) + ", 0 )"); |
||
40 | } |
||
41 | if (timevalue > 66) { |
||
42 | dock.setAttribute("display", ""); |
||
43 | dock.setAttribute("transform", "translate(" + (1450+scalefactor*2*-1) + ", 144 )"); |
||
44 | } |
||
45 | |||
46 | // Call ShowAndGrowElement again <timer_increment> milliseconds later. |
||
47 | setTimeout("ShowAndGrowElement()", timer_increment) |
||
48 | } |
||
49 | window.ShowAndGrowElement = ShowAndGrowElement |
||
50 | ]]></script> |
||
51 | |||
52 | <rect |
||
53 | fill="#2e3436" |
||
54 | fill-rule="nonzero" |
||
55 | stroke-width="3" |
||
56 | y="0" |
||
57 | x="0" |
||
58 | height="600" |
||
59 | width="800" |
||
60 | id="rect3590"/> |
||
61 | |||
62 | <text |
||
63 | style="font-size:144px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" |
||
64 | x="50" |
||
65 | y="350" |
||
66 | id="hickory" |
||
67 | display="none"> |
||
68 | Hickory,</text> |
||
69 | <text |
||
70 | style="font-size:144px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" |
||
71 | x="50" |
||
72 | y="350" |
||
73 | id="dickory" |
||
74 | display="none"> |
||
75 | dickory,</text> |
||
76 | <text |
||
77 | style="font-size:144px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" |
||
78 | x="50" |
||
79 | y="350" |
||
80 | id="dock" |
||
81 | display="none"> |
||
82 | dock!</text> |
||
83 | </svg> |