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 <import src="/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; |
11 opacity: .75; | 11 opacity: .75; |
12 } | 12 } |
13 | 13 |
14 log { | 14 log { |
| 15 display: paragraph; |
15 margin-top: 50px; | 16 margin-top: 50px; |
16 } | 17 } |
17 </style> | 18 </style> |
18 <log>Touch the screen!</log> | 19 <log>Touch the screen!</log> |
19 <script> | 20 <script> |
20 import "dart:sky"; | 21 import "dart:sky"; |
21 | 22 |
22 // Material design colors. :p | 23 // Material design colors. :p |
23 List<String> colors = [ | 24 List<String> colors = [ |
24 "#009688", | 25 "#009688", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 61 } |
61 | 62 |
62 void main() { | 63 void main() { |
63 document.addEventListener("pointerdown", moreDots); | 64 document.addEventListener("pointerdown", moreDots); |
64 document.addEventListener("pointermove", runToTheCenter); | 65 document.addEventListener("pointermove", runToTheCenter); |
65 document.addEventListener("pointerup", goAway); | 66 document.addEventListener("pointerup", goAway); |
66 document.addEventListener("pointercancel", stopDots); | 67 document.addEventListener("pointercancel", stopDots); |
67 } | 68 } |
68 </script> | 69 </script> |
69 </sky> | 70 </sky> |
OLD | NEW |