Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: sky/examples/touch-demo.sky

Issue 962383003: Make shake-to-reload actually work (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/framework/debug/shake-to-reload.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 background-color: #00FF00; 9 background-color: #00FF00;
10 border-radius: 50px; 10 border-radius: 50px;
11 } 11 }
12 </style> 12 </style>
13 <log>Ready</log> 13 <log>Ready!</log>
14 <script> 14 <script>
15 import "dart:sky"; 15 import "dart:sky";
16 16
17 // Material design colors. :p 17 // Material design colors. :p
18 List<String> colors = [ 18 List<String> colors = [
19 "#009688", 19 "#009688",
20 "#FFC107", 20 "#FFC107",
21 "#9C27B0", 21 "#9C27B0",
22 "#03A9F4", 22 "#03A9F4",
23 "#673AB7", 23 "#673AB7",
(...skipping 27 matching lines...) Expand all
51 } 51 }
52 52
53 void main() { 53 void main() {
54 document.addEventListener("pointerdown", moreDots); 54 document.addEventListener("pointerdown", moreDots);
55 document.addEventListener("pointermove", runToTheCenter); 55 document.addEventListener("pointermove", runToTheCenter);
56 document.addEventListener("pointerup", goAway); 56 document.addEventListener("pointerup", goAway);
57 document.addEventListener("pointercancel", stopDots); 57 document.addEventListener("pointercancel", stopDots);
58 } 58 }
59 </script> 59 </script>
60 </sky> 60 </sky>
OLDNEW
« no previous file with comments | « no previous file | sky/framework/debug/shake-to-reload.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698