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

Unified Diff: src/site/docs/tutorials/polymer-intro/examples/stopwatch/web/tute_stopwatch.html

Issue 24269013: first draft of polymer element tutorial (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: src/site/docs/tutorials/polymer-intro/examples/stopwatch/web/tute_stopwatch.html
diff --git a/src/site/docs/tutorials/polymer-intro/examples/stopwatch/web/tute_stopwatch.html b/src/site/docs/tutorials/polymer-intro/examples/stopwatch/web/tute_stopwatch.html
new file mode 100644
index 0000000000000000000000000000000000000000..89835f49f564e44a5bc6449e95ac2c3c06d8029c
--- /dev/null
+++ b/src/site/docs/tutorials/polymer-intro/examples/stopwatch/web/tute_stopwatch.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<polymer-element name="tute-stopwatch">
+
+ <template>
+ <style>
+ @host {
+ :scope {
+ background-color: LemonChiffon;
+ text-align: center;
+ display: inline-block;
+ border: solid 1px;
+ padding: 10px 10px 10px 10px;
+ }
+ }
+ </style>
+ <div>
+ <div>
+ {{counter}}
+ </div>
+ <div>
+ <button on-click="start" id="startButton">Start</button>
+ <button on-click="stop" id="stopButton">Stop</button>
+ <button on-click="reset" id="resetButton">Reset</button>
+ </div>
+ </div>
+ </template>
+
+ <script type="application/dart" src="tute_stopwatch.dart">
+ </script>
+
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698