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

Unified Diff: src/site/samples/geolocation/index.markdown

Issue 47213005: Added geolocation (new); surfaced appcache and webaudio samples (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/samples/geolocation/index.markdown
diff --git a/src/site/samples/geolocation/index.markdown b/src/site/samples/geolocation/index.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..5898c3c059ccf7d70263a1e54cb2e4449186b8d7
--- /dev/null
+++ b/src/site/samples/geolocation/index.markdown
@@ -0,0 +1,30 @@
+---
+layout: default
+title: A Basic Geolocation Example
+live_example_url: example/index.html
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+Read the
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/geolocation/trip_meter).
+
+The Geolocation API lets you track a user's location. The API is
+device-agnostic; the underlying mechanism might be via GPS,
Kathy Walrath 2013/10/28 15:26:37 device-agnostic -> device agnostic (No need for a
shailentuli 2013/10/28 17:07:54 Done.
+wifi, or simply asking the user to enter their location manually. Since
+these lookups can take some time, the API is asynchronous, and you
+pass it a callback method whenever you request a location.
+
+The Trip Meter example display's the user's initial location, and it
Kathy Walrath 2013/10/28 15:26:37 display's -> displays
shailentuli 2013/10/28 17:07:54 Done.
+tracks the distance the user has travelled since the page was loaded.
+
+You can open the example in Dart Editor and run it by clicking `index.html`.
+
+<iframe class="running-app-frame"
+ style="height:300px;width:100%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/).

Powered by Google App Engine
This is Rietveld 408576698