mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
new: Added new tab pages and related modules
This commit is contained in:
1243
templates/default/assets/js/lib/wordcloud2.js
Normal file
1243
templates/default/assets/js/lib/wordcloud2.js
Normal file
File diff suppressed because it is too large
Load Diff
12
templates/default/assets/js/tag.js
Normal file
12
templates/default/assets/js/tag.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const tagWordCloudCanvas = document.getElementById('tag-word-cloud-canvas');
|
||||
|
||||
const options = {
|
||||
list: JSON.parse(tagList),
|
||||
weightFactor: 20,
|
||||
backgroundColor: 'transparent',
|
||||
click: (item) => {
|
||||
console.log(item[0], item[1]);
|
||||
}
|
||||
};
|
||||
|
||||
WordCloud(tagWordCloudCanvas, options);
|
||||
Reference in New Issue
Block a user