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

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: More tweaks 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
« no previous file with comments | « src/site/samples/geolocation/example/trip_meter.dart.precompiled.js ('k') | src/site/samples/samples.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3f8bf4bce286b3416991637d3aaea7c396a8db6a
--- /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 }}
+
+The Geolocation API lets you track a user's location. The API is
+device agnostic; the underlying mechanism might be via GPS,
+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 displays the user's initial location, and it
+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>
+
+Read the
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/geolocation/trip_meter).
+
+See all [samples](/samples/).
« no previous file with comments | « src/site/samples/geolocation/example/trip_meter.dart.precompiled.js ('k') | src/site/samples/samples.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698