feat: 二维码生成插件
parent
3dd9324308
commit
075ca62f7e
@ -1,29 +1,38 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta
|
||||||
<title>内容转二维码</title>
|
name="viewport"
|
||||||
<link rel="stylesheet" href="style.css">
|
content="width=device-width, initial-scale=1.0"
|
||||||
</head>
|
/>
|
||||||
<body>
|
<title>内容转二维码</title>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="style.css"
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h1>内容转二维码生成器</h1>
|
||||||
|
<p>将您的文本粘贴到下面的框中,然后点击“生成二维码”按钮。</p>
|
||||||
|
|
||||||
<div class="container">
|
<textarea
|
||||||
<h1>内容转二维码生成器</h1>
|
id="text-input"
|
||||||
<p>将您的文本粘贴到下面的框中,然后点击“生成二维码”按钮。</p>
|
rows="10"
|
||||||
|
placeholder="请在此处粘贴您的文本内容..."
|
||||||
<textarea id="text-input" rows="10" placeholder="请在此处粘贴您的文本内容..."></textarea>
|
></textarea>
|
||||||
|
|
||||||
<button id="generate-btn">生成二维码</button>
|
|
||||||
|
|
||||||
<div id="qrcode-container">
|
|
||||||
<!-- 二维码将在这里生成 -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 引入 qrcode.js 库 -->
|
<button id="generate-btn">生成二维码</button>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js"></script>
|
|
||||||
<!-- 引入我们自己的逻辑脚本 -->
|
<div id="qrcode-container">
|
||||||
<script src="main.js"></script>
|
<!-- 二维码将在这里生成 -->
|
||||||
</body>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 引入 qrcode.js 库 -->
|
||||||
|
<script src="qrcode.min.js"></script>
|
||||||
|
<!-- 引入我们自己的逻辑脚本 -->
|
||||||
|
<script src="main.js"></script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,17 +1,12 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "内容转二维码",
|
"name": "内容转二维码",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"description": "将长文本内容分割并生成一个或多个二维码的页面。",
|
"description": "将长文本内容分割并生成一个或多个二维码的页面。",
|
||||||
"action": {
|
"action": {
|
||||||
"default_title": "内容转二维码"
|
"default_title": "内容转二维码"
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"service_worker": "background.js"
|
"service_worker": "background.js"
|
||||||
},
|
}
|
||||||
"icons": {
|
|
||||||
"16": "images/icon16.png",
|
|
||||||
"48": "images/icon48.png",
|
|
||||||
"128": "images/icon128.png"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue