mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
feat: 乱七八糟的的统计词云
This commit is contained in:
parent
7f773dcfc4
commit
3cfbe9eae7
7 changed files with 188 additions and 4 deletions
48
resources/wordcloud/index.html
Normal file
48
resources/wordcloud/index.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>WordCloud</title>
|
||||
<script src="{{pluResPath}}/wordcloud/js2wordcloud.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wordcloud2" style="width: 640px;height: 350px"></div>
|
||||
<script>
|
||||
let list = JSON.parse('{{@ list}}')
|
||||
var wc = new Js2WordCloud(document.getElementById('wordcloud2'))
|
||||
wc.setOption({
|
||||
tooltip: {
|
||||
show: true
|
||||
},
|
||||
list: list,
|
||||
color: 'random-light',
|
||||
fontFamily: 'Microsoft YaHei'
|
||||
})
|
||||
|
||||
</script>
|
||||
<div class="logo">Created By Yunzai-Bot and ChatGPT-Plugin {{version}}</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
user-select: none;
|
||||
}
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-size: 16px;
|
||||
width: 640px;
|
||||
color: #1e1f20;
|
||||
transform: scale(1.5);
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.logo {
|
||||
font-size: 14px;
|
||||
font-family: "tttgbnumber";
|
||||
text-align: center;
|
||||
color: #7994a7;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue