-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
102 lines (102 loc) · 3.77 KB
/
Copy pathpage.html
File metadata and controls
102 lines (102 loc) · 3.77 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Tubbs</title>
<link rel="stylesheet" type="text/css" href="res/css/sharedstyle.css">
<link rel="stylesheet" type="text/css" href="res/css/mainpage_style.css">
<link rel="icon" type="image/x-icon" href="./res/icon/favicon.ico">
<script src="./libs/lodash.js"></script>
<script src="./res/js/index.js"></script>
</head>
<body>
<div id="main_container">
<div class="content-block" id="search_container">
<p id="webtitle">Tubbs</p>
<div id="top_search_box">
<label>
<input type="text" id="search_inp" autocomplete="off" placeholder="输入型号或者参数表达式以搜索电子管...">
</label>
<button id="search_btn" onclick="searchTubeToPage()">搜索</button>
</div>
<div id="search_result"></div>
</div>
<div class="content-block" id="tube_container">
<div id="tube-deatil">
<div style="display: flex; align-items: center">
<p id="tube-name"></p>
<div id="tube-img-pindefine-div">
<div id="tube-img-pindefine-div2">
<p id="tube-noimg-pindefine-text">暂无引脚图</p>
<img id="tube-img-pindefine" src="" alt="管脚图">
</div>
</div>
</div>
<p id="tube-maker"></p>
<p id="tube-use"></p>
<div id="tube-inf-selectbar">
<button onclick="btnToArgsDiv()">参数</button>
<button onclick="btnToImgsDiv()">曲线图</button>
<button onclick="btnToPdfDiv()">PDF数据手册</button>
</div>
<div id="tube-args" style="display: block">
<p id="arg-text">电气参数:</p>
<div id="args">
</div>
<div id="supplements">
<p id="supplement-text">注:</p>
<div id="supplement_forjs">
</div>
</div>
</div>
<div id="tube-imgs" style="display: none"></div>
<div id="tube-pdf" style="display: none;">
<p id="tube-pdf-nofile">暂无PDF数据手册</p>
<div id="pdfreader"></div>
</div>
</div>
<div id="tube-noselect">
<b>请先选择电子管</b>
</div>
</div>
</div>
<div id="bottom-information">
Created by
<a href="../text.html?text=5pyJ6Zeu6aKY6K+35Y+R6YCB6YKu5Lu25YiwYWRtaW5AaHhnZmsuY29t">Hxgfk</a>
@ Copyright (c)
<a href="../licensepage/#?type=GPLv3">GNU General Public License v3.0</a>
<a href="https://github.com/Hxgfk/Tubbs">开源</a>
<a href="./submitTube.html">上传电子管数据</a>
</div>
<script src="./res/js/main_page.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
let url_params = location.search;
if (url_params === '') {
url_params = location.hash.slice(1);
}
let tubename = new URLSearchParams(url_params).get("tubename");
loadTubeData(function (e) {
if (tubename != null) {
search_value_inp.value = tubename;
searchTube(search_value_inp.value, false).forEach(t => {
searchResultAddToPage(t);
});
}else {
e.forEach(t => {
searchResultAddToPage(t);
});
}
});
loadSymbolList();
document.addEventListener("keypress", function (e) {
if (e.code === "Enter" || e.code === "NumpadEnter") {
searchTubeToPage();
}
});
});
</script>
</body>
</html>