Skip to content

Commit

Permalink
FR pop
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Oct 23, 2023
1 parent 909e475 commit f8db3ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/FR.html
Original file line number Diff line number Diff line change
Expand Up @@ -941,11 +941,14 @@
})

//select layer from URL
const ls = gviz.getParameterByName('lay')
let ls = gviz.getParameterByName('lay')
if (ls) {
const b = document.querySelector('#' + ls)
if (b) b.checked = true
}
//select geo from URL
ls = gviz.getParameterByName('geo')
if (ls) document.querySelector('#geo').value = ls

//initialise
updateGeo()
Expand Down
7 changes: 5 additions & 2 deletions examples/FR_pop.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</div>

<script src="../dist/gridviz.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].0"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-color@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-interpolate@3"></script>
Expand Down Expand Up @@ -750,11 +750,14 @@
})

//select layer from URL
const ls = gviz.getParameterByName('lay')
let ls = gviz.getParameterByName('lay')
if (ls) {
const b = document.querySelector('#' + ls)
if (b) b.checked = true
}
//select geo from URL
ls = gviz.getParameterByName('geo')
if (ls) document.querySelector('#geo').value = ls

//initialise
updateGeo()
Expand Down

0 comments on commit f8db3ae

Please sign in to comment.