Skip to content

Commit e4f4651

Browse files
committed
Fixes jquery bug
1 parent 1a300fe commit e4f4651

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_pages/wc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ description: Word cloud visualization of blog posts by year.
5656
.then(words => {
5757
WordCloud(canvas, {
5858
list: words,
59-
gridSize: Math.round(16 * $('#canvas').width() / 1024),
59+
gridSize: Math.round(16 * canvas.width() / 1024),
6060
weightFactor: function (size) {
61-
return Math.pow(size, 2.3) * $('#canvas').width() / 1024;
61+
return Math.pow(size, 2.3) * canvas.width() / 1024;
6262
},
6363
fontFamily: 'Arial',
6464
color: 'random-dark',

0 commit comments

Comments
 (0)