Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / JSResources / EffectsFat.resx
blob635120c5c523d35001c06fee47bbcd267def0a38
1 <?xml version="1.0" encoding="utf-8"?>
2 <root>
3 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
4 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
5 <xsd:element name="root" msdata:IsDataSet="true">
6 <xsd:complexType>
7 <xsd:choice maxOccurs="unbounded">
8 <xsd:element name="metadata">
9 <xsd:complexType>
10 <xsd:sequence>
11 <xsd:element name="value" type="xsd:string" minOccurs="0" />
12 </xsd:sequence>
13 <xsd:attribute name="name" use="required" type="xsd:string" />
14 <xsd:attribute name="type" type="xsd:string" />
15 <xsd:attribute name="mimetype" type="xsd:string" />
16 <xsd:attribute ref="xml:space" />
17 </xsd:complexType>
18 </xsd:element>
19 <xsd:element name="assembly">
20 <xsd:complexType>
21 <xsd:attribute name="alias" type="xsd:string" />
22 <xsd:attribute name="name" type="xsd:string" />
23 </xsd:complexType>
24 </xsd:element>
25 <xsd:element name="data">
26 <xsd:complexType>
27 <xsd:sequence>
28 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
29 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
30 </xsd:sequence>
31 <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
32 <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
33 <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
34 <xsd:attribute ref="xml:space" />
35 </xsd:complexType>
36 </xsd:element>
37 <xsd:element name="resheader">
38 <xsd:complexType>
39 <xsd:sequence>
40 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
41 </xsd:sequence>
42 <xsd:attribute name="name" type="xsd:string" use="required" />
43 </xsd:complexType>
44 </xsd:element>
45 </xsd:choice>
46 </xsd:complexType>
47 </xsd:element>
48 </xsd:schema>
49 <resheader name="resmimetype">
50 <value>text/microsoft-resx</value>
51 </resheader>
52 <resheader name="version">
53 <value>2.0</value>
54 </resheader>
55 <resheader name="reader">
56 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
57 </resheader>
58 <resheader name="writer">
59 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
60 </resheader>
61 <data name="fatfunctions" xml:space="preserve">
62 <value><![CDATA[
63 // @name The Fade Anything Technique
64 // @namespace http://www.axentric.com/aside/fat/
65 // @version 1.0-RC1
66 // @author Adam Michela
68 var Fat = {
69 make_hex : function (r,g,b)
71 r = r.toString(16); if (r.length == 1) r = '0' + r;
72 g = g.toString(16); if (g.length == 1) g = '0' + g;
73 b = b.toString(16); if (b.length == 1) b = '0' + b;
74 return "#" + r + g + b;
76 fade_all : function ()
78 var a = document.getElementsByTagName("*");
79 for (var i = 0; i < a.length; i++)
81 var o = a[i];
82 var r = /fade-?(\w{3,6})?/.exec(o.className);
83 if (r)
85 if (!r[1]) r[1] = "";
86 if (o.id) Fat.fade_element(o.id,null,null,"#"+r[1]);
90 fade_element : function (id, fps, duration, from, to)
92 if (!fps) fps = 30;
93 if (!duration) duration = 3000;
94 if (!from || from=="#") from = "#FFFF33";
95 if (!to) to = this.get_bgcolor(id);
97 var frames = Math.round(fps * (duration / 1000));
98 var interval = duration / frames;
99 var delay = interval;
100 var frame = 0;
102 if (from.length < 7) from += from.substr(1,3);
103 if (to.length < 7) to += to.substr(1,3);
105 var rf = parseInt(from.substr(1,2),16);
106 var gf = parseInt(from.substr(3,2),16);
107 var bf = parseInt(from.substr(5,2),16);
108 var rt = parseInt(to.substr(1,2),16);
109 var gt = parseInt(to.substr(3,2),16);
110 var bt = parseInt(to.substr(5,2),16);
112 var r,g,b,h;
113 while (frame < frames)
115 r = Math.floor(rf * ((frames-frame)/frames) + rt * (frame/frames));
116 g = Math.floor(gf * ((frames-frame)/frames) + gt * (frame/frames));
117 b = Math.floor(bf * ((frames-frame)/frames) + bt * (frame/frames));
118 h = this.make_hex(r,g,b);
120 setTimeout("Fat.set_bgcolor('"+id+"','"+h+"')", delay);
122 frame++;
123 delay = interval * frame;
125 setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')", delay);
127 set_bgcolor : function (id, c)
129 var o = document.getElementById(id);
130 o.style.backgroundColor = c;
132 get_bgcolor : function (id)
134 var o = document.getElementById(id);
135 while(o)
137 var c;
138 if (window.getComputedStyle) c = window.getComputedStyle(o,null).getPropertyValue("background-color");
139 if (o.currentStyle) c = o.currentStyle.backgroundColor;
140 if ((c != "" && c != "transparent") || o.tagName == "BODY") { break; }
141 o = o.parentNode;
143 if (c == undefined || c == "" || c == "transparent") c = "#FFFFFF";
144 var rgb = c.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/);
145 if (rgb) c = this.make_hex(parseInt(rgb[1]),parseInt(rgb[2]),parseInt(rgb[3]));
146 return c;
150 var oldonload = window.onload;
151 if (typeof window.onload != 'function') {
152 window.onload = function() { Fat.fade_all(); };
153 } else {
154 window.onload = function() {
155 oldonload();
156 Fat.fade_all();
160 </value>
161 </data>
162 </root>