Skip to content

Commit

Permalink
chore(example): correct the view source link
Browse files Browse the repository at this point in the history
  • Loading branch information
zarov authored and gchoqueux committed Aug 21, 2019
1 parent 8cbaae6 commit 0492d14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
} else {
goTo('view_3d_map.html');
}
};
}

function goTo(url, slug) {
if (slug) window.location.hash = slug;
Expand All @@ -51,10 +51,10 @@
iframe.focus();

var viewSrc = '<a href="https://github.com/iTowns/itowns/blob/master/examples/';
viewSrc += window.location.hash.substr(1);
viewSrc += window.location.hash.substr(1) || 'view_3d_map';
viewSrc += '.html" target="_blank">View source</a>';
document.getElementById('view-source').innerHTML = viewSrc;
};
}

function initNavigation(list) {
var nav = '<h2>Examples</h2>';
Expand Down

0 comments on commit 0492d14

Please sign in to comment.