-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (61 loc) · 2.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二维码工具</title>
<link rel="stylesheet" href="css/common.css" type="text/css">
</link>
<link rel="stylesheet" href="css/index.css" type="text/css">
</link>
<style>
</style>
</head>
<body>
<div id="app_index" class="app">
<div class="app-main">
<h1>二维码工具</h1>
<div class="qrcode-make">
<div class="qrcode-make-container">
<textarea type="text" placeholder="输入内容" id="qrcode_input" class="qrcode-make-input"></textarea>
<div class="qrcode-button-wrap">
<button id="qrcode_make_button" class="btn qrcode-button">生成二维码</button>
<button id="qrcode_scan_button" class="btn qrcode-button">扫描二维码</button>
<input type="file" accept="image/*" capture="environment" id="qrcode_file_Input"
style="display: none;">
<button id="qrcode_scan_image_button" class="btn qrcode-button">识别二维码</button>
</div>
</div>
<div class="qrcode-show-contariner">
<div id="qrcode_show_preview" class="qrcode-show-preview">
<p class="qrcode-show-preview-tip">二维码预览</p>
</div>
<video id="qrcode_scan_video" class="qrcode-scan-video">
</video>
<canvas id="qrcode_scan_video_canvas" style="display:none;"></canvas>
<div id="qrcode_show" class="qrcode-show"></div>
<div class="qrcode-button-wrap">
<button id="qrcode_save_button" class="btn qrcode-button">保存二维码</button>
</div>
</div>
</div>
</div>
<div class="app-side">
<div class="code-record-header ">
<span class="code-record-title">生成记录</span>
<div class="code-record-delete">
<button id="code_record_delete_button" class="btn record-button">全部删除</button>
</div>
</div>
<ul id="make_code_record_list" class="make-code-record-list">
</ul>
</div>
</div>
<script src="js/qrcode.js"></script>
<script src="js/jsQR.js"></script>
<script src="js/Toast.js"></script>
<script src="js/html2canvas.js"></script>
<script src="js/util.js"></script>
<script src="js/index.js"></script>
</body>
</html>