Public
Edited
Apr 2, 2022
1 fork
Insert cell
Insert cell
Insert cell
html`
<div class='card-box'>

<div class='card'>
Mike Bloomberg spent $11 million of his own money on a 60-second Super Bowl ad. That was 0.018 percent of his net worth. For you, that's equivalent to $17, <span class='answer' id='answer'>a 14-inch Domino’s Buffalo Chicken pizza</span>.
<div>

</div>
`
Insert cell
Insert cell
{
let index = 0;
write(index);
function write() {
if(index < txt.length) {
document.getElementById('answer').innerHTML += txt.charAt(index);
index++;
setTimeout(write, speed);
}
}
}
Insert cell
$(`#answer`).text('');
Insert cell
txt = $('.answer').text();
Insert cell
Insert cell
$ = require('jquery')
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more