Skip to content

Commit ff71771

Browse files
committed
Add info panel linking to GeoNames
1 parent 36479c5 commit ff71771

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

example/transition.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ const whenData = fetch(
3030
*/
3131
showModal('Loading...');
3232

33+
/**
34+
* Add info to footer
35+
*/
36+
const footer = document.querySelector('#footer');
37+
footer.classList.remove('hidden');
38+
const infoContent = document.querySelector('#info-content');
39+
infoContent.innerHTML = `
40+
<p><a href="https://www.geonames.org/about.html" target="_blank">GeoNames – Cities Dataset</a> visualized in three: by the cities' geographic location, by the total population across contintents, and by the citie's latitude distribution.</p>
41+
`;
42+
3343
const canvas = document.querySelector('#canvas');
3444
const numPointsEl = document.querySelector('#num-points');
3545
const numPointsValEl = document.querySelector('#num-points-value');

0 commit comments

Comments
 (0)