Last active
May 27, 2021 14:05
-
-
Save sitiaish/3ce6cd5cd13f0dac4aea01fef57f4b58 to your computer and use it in GitHub Desktop.
handleStepEnter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handleStepEnter(response) { | |
// update graphic based on step | |
const linkHead = 'https://flo.uri.sh/story/872914/embed#slide-' | |
const slide = response.index | |
d3.select('.scrolly__chart iframe') | |
.attr('src', linkHead + slide); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment