OLD | NEW |
1 #!mojo mojo:sky_viewer | 1 #!mojo mojo:sky_viewer |
2 <sky> | 2 <sky> |
| 3 <import src="/sky/framework/debug/shake-to-reload.sky" /> |
3 <style> | 4 <style> |
4 dot { | 5 dot { |
5 position: absolute; | 6 position: absolute; |
6 height: 100px; | 7 height: 100px; |
7 width: 100px; | 8 width: 100px; |
8 background-color: #00FF00; | 9 background-color: #00FF00; |
9 border-radius: 50px; | 10 border-radius: 50px; |
10 } | 11 } |
11 </style> | 12 </style> |
12 <log>Ready</log> | 13 <log>Ready</log> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 51 } |
51 | 52 |
52 void main() { | 53 void main() { |
53 document.addEventListener("pointerdown", moreDots); | 54 document.addEventListener("pointerdown", moreDots); |
54 document.addEventListener("pointermove", runToTheCenter); | 55 document.addEventListener("pointermove", runToTheCenter); |
55 document.addEventListener("pointerup", goAway); | 56 document.addEventListener("pointerup", goAway); |
56 document.addEventListener("pointercancel", stopDots); | 57 document.addEventListener("pointercancel", stopDots); |
57 } | 58 } |
58 </script> | 59 </script> |
59 </sky> | 60 </sky> |
OLD | NEW |