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

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

Issue 963303004: Implement shake-to-reload (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
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 <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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698