OLD | NEW |
1 #!mojo mojo:sky_viewer | 1 #!mojo mojo:sky_viewer |
2 <sky> | 2 <sky> |
3 <import src="/packages/sky/framework/debug/shake-to-reload.sky" /> | 3 <import src="/packages/sky/framework/debug/shake-to-reload.sky" /> |
4 <style> | 4 <style> |
5 dot { | 5 dot { |
6 position: absolute; | 6 position: absolute; |
7 height: 10px; | 7 height: 10px; |
8 width: 10px; | 8 width: 10px; |
9 background-color: #00FF00; | 9 background-color: #00FF00; |
10 border-radius: 5px; | 10 border-radius: 5px; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 | 62 |
63 void main() { | 63 void main() { |
64 document.addEventListener("pointerdown", moreDots); | 64 document.addEventListener("pointerdown", moreDots); |
65 document.addEventListener("pointermove", runToTheCenter); | 65 document.addEventListener("pointermove", runToTheCenter); |
66 document.addEventListener("pointerup", goAway); | 66 document.addEventListener("pointerup", goAway); |
67 document.addEventListener("pointercancel", stopDots); | 67 document.addEventListener("pointercancel", stopDots); |
68 } | 68 } |
69 </script> | 69 </script> |
70 </sky> | 70 </sky> |
OLD | NEW |