forked from gumilastik/VVVV.HTMLTexture.DX11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2. Injecting jQuery.v4p
295 lines (295 loc) · 13.3 KB
/
2. Injecting jQuery.v4p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE PATCH SYSTEM "http://vvvv.org/versions/vvvv45beta33.7.dtd" >
<PATCH nodename="C:\vvvv_45beta33.7_x86\2. Injecting jQuery.v4p" scrollx="0" scrolly="0" systemname="1. UI Sample" filename="C:\vvvv_45beta33.7_x86\1. UI Sample.v4p">
<BOUNDS type="Window" left="2055" top="2310" width="9165" height="10020">
</BOUNDS>
<PACK Name="addonpack" Version="33.7.0">
</PACK>
<NODE systemname="HTMLTexture (DX11.Texture URL)" filename="%VVVV%\plugins\URLDX11.TextureHTMLTexture\URLDX11.TextureHTMLTexture.csproj" nodename="HTMLTexture (DX11.Texture URL)" componentmode="Hidden" id="0">
<BOUNDS type="Node" left="900" top="5985" width="100" height="100">
</BOUNDS>
<PIN pinname="Url" visible="1" slicecount="1" values="http://yandex.com">
</PIN>
<PIN pinname="Output" visible="1">
</PIN>
<PIN pinname="Method" visible="1">
</PIN>
<PIN pinname="Bind" slicecount="1" visible="1" values="0">
</PIN>
<PIN pinname="Result" visible="1">
</PIN>
<PIN pinname="Mouse Event" visible="1">
</PIN>
<PIN pinname="Transparent" slicecount="1" visible="1" values="0">
</PIN>
<PIN pinname="Reload" slicecount="1" visible="1" values="0">
</PIN>
<PIN pinname="JavaScript" visible="1" slicecount="1" values="| $('input').bind('blur', function(){&cr;&lf;&tab;vvvv.focus(0);&cr;&lf; }); &cr;&lf; $('input').bind('focus', function(){&cr;&lf;&tab;vvvv.focus(1);&cr;&lf; });&cr;&lf; vvvv.focus(+$(document.activeElement).is( 'input' ));|">
</PIN>
<PIN pinname="Execute" visible="1" slicecount="1" values="0">
</PIN>
<PIN pinname="Is Loading" visible="1">
</PIN>
<PIN pinname="Width" visible="1" slicecount="1" values="441">
</PIN>
<PIN pinname="Height" visible="1" slicecount="1" values="369">
</PIN>
<PIN pinname="Key Event" visible="1" slicecount="1" values="||">
</PIN>
<PIN pinname="Show Dev Tools" slicecount="1" values="0">
</PIN>
</NODE>
<NODE systemname="FullscreenQuad (DX11.Layer)" filename="%VVVV%\packs\dx11\nodes\modules\FullscreenQuad (DX11.Layer).v4p" nodename="FullscreenQuad (DX11.Layer)" componentmode="Hidden" id="2">
<BOUNDS type="Node" left="495" top="7545" width="100" height="100">
</BOUNDS>
<PIN pinname="Layer" visible="1">
</PIN>
<PIN pinname="Texture" visible="1">
</PIN>
<PIN pinname="Render State" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="0" srcpinname="Output" dstnodeid="2" dstpinname="Texture">
</LINK>
<NODE nodename="IOBox (String)" componentmode="InABox" id="4" systemname="IOBox (String)">
<BOUNDS type="Box" left="2505" top="5610" width="795" height="240">
</BOUNDS>
<BOUNDS type="Node" left="2505" top="5610" width="0" height="0">
</BOUNDS>
<PIN pinname="Input String" slicecount="1" visible="1" values="focus">
</PIN>
<PIN pinname="Default" slicecount="1" values="hello">
</PIN>
<PIN pinname="File Mask" slicecount="1" values="||">
</PIN>
<PIN pinname="Maximum Characters" slicecount="1" values="-1">
</PIN>
</NODE>
<LINK srcnodeid="4" srcpinname="Output String" dstnodeid="0" dstpinname="Method">
</LINK>
<NODE systemname="Mouse (Devices Window)" filename="%VVVV%\lib\nodes\plugins\VVVV.Nodes.dll" nodename="Mouse (Devices Window)" componentmode="Hidden" id="6">
<BOUNDS type="Node" left="2115" top="4860" width="100" height="100">
</BOUNDS>
<PIN pinname="Device" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="6" srcpinname="Device" dstnodeid="0" dstpinname="Mouse Event">
</LINK>
<NODE systemname="Blend (DX11.RenderState)" filename="%VVVV%\packs\dx11\nodes\plugins\VVVV.DX11.Nodes.dll" nodename="Blend (DX11.RenderState)" componentmode="Hidden" id="10">
<BOUNDS type="Node" left="495" top="7125" width="100" height="100">
</BOUNDS>
<PIN pinname="Render State" visible="1" slicecount="1" values="||">
</PIN>
<PIN pinname="Mode" slicecount="1" values="Blend">
</PIN>
</NODE>
<LINK srcnodeid="10" srcpinname="Render State" dstnodeid="2" dstpinname="Render State">
</LINK>
<NODE nodename="IOBox (String)" componentmode="InABox" id="12" systemname="IOBox (String)">
<BOUNDS type="Box" left="885" top="4470" width="1605" height="240">
</BOUNDS>
<BOUNDS type="Node" left="885" top="4470" width="0" height="0">
</BOUNDS>
<PIN pinname="Input String" slicecount="1" visible="1" values="http://google.com">
</PIN>
<PIN pinname="Default" slicecount="1" values="||">
</PIN>
<PIN pinname="File Mask" slicecount="1" values="||">
</PIN>
<PIN pinname="Maximum Characters" slicecount="1" values="-1">
</PIN>
<PIN pinname="Output String" visible="1">
</PIN>
</NODE>
<NODE systemname="FrameDelay (Value)" filename="%VVVV%\lib\nodes\plugins\VVVV.Nodes.dll" nodename="FrameDelay (Value)" componentmode="Hidden" id="25">
<BOUNDS type="Node" left="4245" top="6765" width="100" height="100">
</BOUNDS>
<PIN pinname="Input 1" visible="1">
</PIN>
<PIN pinname="Output 1" visible="1">
</PIN>
</NODE>
<NODE systemname="TogEdge (Animation)" nodename="TogEdge (Animation)" componentmode="Hidden" id="26">
<BOUNDS type="Node" left="3600" top="6360" width="100" height="100">
</BOUNDS>
<PIN pinname="Down Edge" visible="1">
</PIN>
<PIN pinname="Input" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="26" srcpinname="Down Edge" dstnodeid="25" dstpinname="Input 1">
</LINK>
<LINK srcnodeid="25" srcpinname="Output 1" dstnodeid="0" dstpinname="Execute" hiddenwhenlocked="1">
</LINK>
<LINK srcnodeid="25" srcpinname="Output 1" dstnodeid="0" dstpinname="Bind" hiddenwhenlocked="1">
</LINK>
<LINK srcnodeid="0" srcpinname="Is Loading" dstnodeid="26" dstpinname="Input">
</LINK>
<NODE systemname="Vector (2d Split)" nodename="Vector (2d Split)" componentmode="Hidden" id="31">
<BOUNDS type="Node" left="1305" top="8355" width="100" height="100">
</BOUNDS>
<PIN pinname="XY" visible="1" slicecount="2" values="150,150">
</PIN>
<PIN pinname="X" visible="1">
</PIN>
<PIN pinname="Y" visible="1">
</PIN>
</NODE>
<NODE systemname="AspectRatio (Transform)" nodename="AspectRatio (Transform)" componentmode="Hidden" id="32">
<BOUNDS type="Node" left="1080" top="8745" width="100" height="100">
</BOUNDS>
<PIN pinname="Aspect Width" visible="1">
</PIN>
<PIN pinname="Aspect Height" visible="1">
</PIN>
<PIN pinname="Transform Out" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="31" srcpinname="X" dstnodeid="32" dstpinname="Aspect Width">
</LINK>
<LINK srcnodeid="31" srcpinname="Y" dstnodeid="32" dstpinname="Aspect Height">
</LINK>
<LINK srcnodeid="31" srcpinname="X" dstnodeid="0" dstpinname="Width" hiddenwhenlocked="1">
</LINK>
<LINK srcnodeid="31" srcpinname="Y" dstnodeid="0" dstpinname="Height" hiddenwhenlocked="1">
</LINK>
<NODE systemname="Renderer (DX11)" filename="%VVVV%\packs\dx11\nodes\plugins\VVVV.DX11.Nodes.dll" nodename="Renderer (DX11)" componentmode="InAWindow" id="33">
<BOUNDS type="Node" left="330" top="7920" width="100" height="100">
</BOUNDS>
<BOUNDS type="Box" left="330" top="7920" width="6000" height="4500">
</BOUNDS>
<BOUNDS type="Window" left="8100" top="2700" width="15285" height="10755">
</BOUNDS>
<PIN pinname="Show Cursor" slicecount="1" values="1">
</PIN>
<PIN pinname="Layers" visible="1" slicecount="1" values="||">
</PIN>
</NODE>
<LINK srcnodeid="33" srcpinname="Actual BackBuffer SizeXY" dstnodeid="31" dstpinname="XY">
</LINK>
<LINK srcnodeid="32" srcpinname="Transform Out" dstnodeid="33" dstpinname="Aspect Ratio" hiddenwhenlocked="1">
</LINK>
<NODE systemname="Add (String)" nodename="Add (String)" componentmode="Hidden" id="34">
<BOUNDS type="Node" left="3540" top="5595" width="100" height="100">
</BOUNDS>
<PIN pinname="Input Count" slicecount="1" values="2">
</PIN>
<PIN pinname="Input 1" visible="1" slicecount="1" values="text">
</PIN>
<PIN pinname="Input 3" visible="1" slicecount="1" values="||">
</PIN>
<PIN pinname="Input 2" visible="1">
</PIN>
<PIN pinname="Output" visible="1">
</PIN>
</NODE>
<NODE nodename="IOBox (String)" componentmode="InABox" id="36" systemname="IOBox (String)">
<BOUNDS type="Box" left="3540" top="240" width="5115" height="3030">
</BOUNDS>
<BOUNDS type="Node" left="3540" top="240" width="0" height="0">
</BOUNDS>
<PIN pinname="Input String" slicecount="1" visible="1" values="|(function() {&cr;&lf; if (typeof jQuery != 'undefined') {&cr;&lf; injection();&cr;&lf; return;&cr;&lf; }&cr;&lf; var scriptTag = document.createElement('script');&cr;&lf; scriptTag.setAttribute('type', 'text/javascript');&cr;&lf; scriptTag.setAttribute('src', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js');&cr;&lf; scriptTag.onload = scriptTag.onreadystatechange = function() {&cr;&lf; injection();&cr;&lf; };&cr;&lf; document.head.appendChild(scriptTag);&cr;&lf;})();|">
</PIN>
<PIN pinname="Default" slicecount="1" values="text">
</PIN>
<PIN pinname="File Mask" slicecount="1" values="||">
</PIN>
<PIN pinname="Maximum Characters" slicecount="1" values="-1">
</PIN>
</NODE>
<LINK srcnodeid="36" srcpinname="Output String" dstnodeid="34" dstpinname="Input 1">
</LINK>
<NODE nodename="IOBox (String)" componentmode="InABox" id="38" systemname="IOBox (String)">
<BOUNDS type="Box" left="3705" top="3480" width="4500" height="1935">
</BOUNDS>
<BOUNDS type="Node" left="3705" top="3480" width="0" height="0">
</BOUNDS>
<PIN pinname="Input String" slicecount="1" visible="1" values="|function injection() {&cr;&lf; $('input').bind('blur', function() {&cr;&lf; focus(0);&cr;&lf; });&cr;&lf; $('input').bind('focus', function() {&cr;&lf; focus(1);&cr;&lf; });&cr;&lf; focus(+$(document.activeElement).is('input'));&cr;&lf;}|">
</PIN>
<PIN pinname="Default" slicecount="1" values="text">
</PIN>
<PIN pinname="File Mask" slicecount="1" values="||">
</PIN>
<PIN pinname="Maximum Characters" slicecount="1" values="-1">
</PIN>
<PIN pinname="Output String" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="38" srcpinname="Output String" dstnodeid="34" dstpinname="Input 2">
</LINK>
<NODE nodename="IOBox (Value Advanced)" componentmode="InABox" id="39" systemname="IOBox (Value Advanced)">
<BOUNDS type="Box" left="1035" top="5370" width="480" height="480">
</BOUNDS>
<BOUNDS type="Node" left="1035" top="5370" width="0" height="0">
</BOUNDS>
<PIN pinname="Y Input Value" slicecount="1" visible="1" values="0">
</PIN>
<PIN pinname="Units" slicecount="1" values="||">
</PIN>
<PIN pinname="Precision" slicecount="1" values="4">
</PIN>
<PIN pinname="Value Type" slicecount="1" values="Boolean">
</PIN>
<PIN pinname="Behavior" slicecount="1" values="Bang">
</PIN>
<PIN pinname="X Input Value" slicecount="1" values="0">
</PIN>
</NODE>
<LINK srcnodeid="39" srcpinname="Y Output Value" dstnodeid="0" dstpinname="Reload">
</LINK>
<LINK srcnodeid="2" srcpinname="Layer" dstnodeid="33" dstpinname="Layers">
</LINK>
<NODE nodename="IOBox (Value Advanced)" componentmode="InABox" id="40" systemname="IOBox (Value Advanced)">
<BOUNDS type="Box" left="2235" top="6765" width="480" height="480">
</BOUNDS>
<BOUNDS type="Node" left="2235" top="6765" width="0" height="0">
</BOUNDS>
<PIN pinname="Units" slicecount="1" values="||">
</PIN>
<PIN pinname="Precision" slicecount="1" values="4">
</PIN>
<PIN pinname="Value Type" slicecount="1" values="Boolean">
</PIN>
<PIN pinname="Behavior" slicecount="1" values="Toggle">
</PIN>
<PIN pinname="Y Input Value" slicecount="1" values="1">
</PIN>
</NODE>
<NODE systemname="AsValue (String)" nodename="AsValue (String)" componentmode="Hidden" id="7">
<BOUNDS type="Node" left="2235" top="6360" width="100" height="100">
</BOUNDS>
<PIN pinname="Input" visible="1">
</PIN>
<PIN pinname="Output" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="0" srcpinname="Result" dstnodeid="7" dstpinname="Input">
</LINK>
<LINK srcnodeid="7" srcpinname="Output" dstnodeid="40" dstpinname="Y Input Value">
</LINK>
<NODE nodename="IOBox (String)" componentmode="InABox" id="42" systemname="IOBox (String)">
<BOUNDS type="Node" left="330" top="315" width="2340" height="270">
</BOUNDS>
<BOUNDS type="Box" left="330" top="315" width="1725" height="330">
</BOUNDS>
<PIN pinname="Input String" visible="0" slicecount="1" values="|test focus on input|">
</PIN>
<PIN pinname="Output String" visible="0">
</PIN>
<PIN pinname="Show Grid" slicecount="1" values="0">
</PIN>
<PIN pinname="String Type" slicecount="1" values="MultiLine">
</PIN>
</NODE>
<NODE systemname="Keyboard (Devices Desktop)" filename="%VVVV%\lib\nodes\plugins\VVVV.Nodes.dll" nodename="Keyboard (Devices Desktop)" componentmode="Hidden" id="43">
<BOUNDS type="Node" left="2265" top="5235" width="100" height="100">
</BOUNDS>
<PIN pinname="Device" visible="1">
</PIN>
</NODE>
<LINK srcnodeid="34" srcpinname="Output" dstnodeid="0" dstpinname="JavaScript">
</LINK>
<LINK srcnodeid="12" srcpinname="Output String" dstnodeid="0" dstpinname="Url">
</LINK>
<LINK srcnodeid="43" srcpinname="Device" dstnodeid="0" dstpinname="Key Event">
</LINK>
</PATCH>