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

Side by Side 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, 1 month 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
(Empty)
1 ---
2 layout: default
3 title: A Basic Geolocation Example
4 live_example_url: example/index.html
5 header:
6 css: ["/samples/samples.css"]
7 ---
8
9 ## {{ page.title }}
10
11 Read the
12 [source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/geoloca tion/trip_meter).
13
14 The Geolocation API lets you track a user's location. The API is
15 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.
16 wifi, or simply asking the user to enter their location manually. Since
17 these lookups can take some time, the API is asynchronous, and you
18 pass it a callback method whenever you request a location.
19
20 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.
21 tracks the distance the user has travelled since the page was loaded.
22
23 You can open the example in Dart Editor and run it by clicking `index.html`.
24
25 <iframe class="running-app-frame"
26 style="height:300px;width:100%;"
27 src="{{page.live_example_url}}">
28 </iframe>
29
30 See all [samples](/samples/).
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698