Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea689 committed Dec 24, 2019
1 parent a768d71 commit 037992e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main() {
}

Future<void> makeRequest() async {
const path = '/examples.json';
const path = 'examples.json';
final httpRequest = HttpRequest();
httpRequest
..open('GET', path)
Expand All @@ -19,8 +19,7 @@ void requestComplete(HttpRequest request) {
switch (request.status) {
case 200:
for (var obj in json.decode(request.responseText)) {
AnchorElement link =
AnchorElement(href: '/${obj['folder']}/index.html');
AnchorElement link = AnchorElement(href: '${obj['folder']}/index.html');
link.text = obj['title'];
link.className = 'list-group-item list-group-item-action';
examples.children.add(link);
Expand Down
3 changes: 2 additions & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
<div class="container">
<h1>Source code</h1>
<p>Library source code: <a href="https://github.com/andrea689/mapbox-gl-dart">mapbox-gl-dart</a></p>
<p>Examples source code: <a href="https://github.com/andrea689/mapbox-gl-dart/example">examples</a></p>
<p>Examples source code: <a
href="https://github.com/andrea689/mapbox-gl-dart/tree/master/example">examples</a></p>
<h1>Examples</h1>
<div id='examples' class="list-group">
<div id='spinner' class="text-center">
Expand Down

0 comments on commit 037992e

Please sign in to comment.