Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (10 sloc) 0.65 kb
76f57e7 @marcuswestin Enforce variable name starts with a lowercase letter
authored
1 import mouse
d164f27 @marcuswestin Update examples and remove some old ones
authored
2
244101a @marcuswestin Improve copy
authored
3 "Two divs that follow the mouse."
d164f27 @marcuswestin Update examples and remove some old ones
authored
4
5 <pre>'
4fbcb17 @marcuswestin Update examples and modules to not use
authored
6 offset = 25
d164f27 @marcuswestin Update examples and remove some old ones
authored
7 <div id="output1" style={ background:"red", width:100, height:100, position:"absolute", top:mouse.y + offset, left:mouse.x + offset }/>
8 <div id="output2" style={ background:"blue", width:50, height:50, position:"absolute", top:mouse.y + offset + 25, left:mouse.x + offset + 25 }/>
9 '</pre>
4fbcb17 @marcuswestin Update examples and modules to not use
authored
10 offset = 25
d164f27 @marcuswestin Update examples and remove some old ones
authored
11 <div id="output1" style={ background:"red", width:100, height:100, position:"absolute", top:mouse.y + offset, left:mouse.x + offset }/>
12 <div id="output2" style={ background:"blue", width:50, height:50, position:"absolute", top:mouse.y + offset + 25, left:mouse.x + offset + 25 }/>
Something went wrong with that request. Please try again.