-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathintroduction.html
More file actions
168 lines (153 loc) · 7.18 KB
/
introduction.html
File metadata and controls
168 lines (153 loc) · 7.18 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{file_name}}物品介绍</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="static/css_introduction.css" rel="stylesheet">
</head>
<body>
<div id="main">
<div class="card-wrap" id="item-container">
<div class="item-card">
<div class="card-wrapper">
<div class="item-header">
<div class="item-title" id="js_item_name_lang"></div>
<div id="js_item_textures" class="item-image-container"></div>
</div>
<div class="item-content">
<div class="item-description" id="js_item_annotation">
<h3>简介</h3>
</div>
<div class="stats-section">
<h3 id="js_item_basic"></h3>
<table class="markdown-table"></table>
</div>
<!-- 修改掉落展示结构 -->
<div class="loot-section">
<h3 class="section-title">🎁 获取方式</h3>
<div class="loot-category">
<div class="loot-item" id="js_item_loot_by_entity">
<div class="loot-content">
<span class="loot-label">实体掉落</span>
<div class="loot-details">
<span class="loot-source"></span>
<span class="loot-probability"></span>
</div>
</div>
</div>
<div class="loot-item" id="js_item_loot_by_block">
<div class="loot-content">
<span class="loot-label">方块掉落</span>
<div class="loot-details">
<span class="loot-source"></span>
<span class="loot-probability"></span>
</div>
</div>
</div>
<div class="loot-item" id="js_item_loot_by_structure">
<div class="loot-content">
<span class="loot-label">结构生成</span>
<div class="loot-details">
<span class="loot-source"></span>
<span class="loot-probability"></span>
</div>
</div>
</div>
<div class="loot-item" id="js_item_loot_by_fishing">
<div class="loot-content">
<span class="loot-label">钓鱼产出</span>
<div class="loot-details">
<span class="loot-source"></span>
<span class="loot-probability"></span>
</div>
</div>
</div>
<div class="loot-item" id="js_item_loot_by_other">
<div class="loot-content">
<span class="loot-label">其他方式</span>
<div class="loot-details">
<span class="loot-source"></span>
<span class="loot-probability"></span>
</div>
</div>
</div>
<!-- 其他掉落项保持相同结构 -->
</div>
</div>
<div class="crafting-section">
<h3 class="section-title">📜 原料使用</h3>
<div class="crafting-grid" id="js_item_if_ing">
<!-- 动态生成合成表 -->
</div>
</div>
<div class="crafting-section">
<h3 class="section-title">📜 合成配方</h3>
<div class="crafting-grid" id="js_item_if_rec">
<!-- 动态生成合成表 -->
</div>
</div>
</div>
<div class="action-buttons">
<button id="button_back" class="modern-button" onclick="history.back()">
<span class="button-text">返回</span>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
<style>
/* 自动注入的样式 */
#toast-container {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.toast {
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 12px 24px;
border-radius: 25px;
font-size: 14px;
font-family: Arial, sans-serif;
backdrop-filter: blur(5px);
opacity: 0;
transform: translateY(100%);
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
max-width: 80vw;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.toast.show {
opacity: 1;
transform: translateY(0);
}
</style>
<script src="static/data/RecData.js" type="text/javascript"></script>
<script src="static/data/AddData.js" type="text/javascript"></script>
<script src="static/data/VanillaTran.js" type="text/javascript"></script>
<script src="static/data/AddTran.js" type="text/javascript"></script>
<script src="static/data/DefaultTran.js" type="text/javascript"></script>
<script src="static/func.js" type="text/javascript"></script>
<script src="static/data/PowTran.js" type="text/javascript"></script>
<script src="static/pow.js" type="text/javascript"></script>
<script src="static/introduction.js" type="text/javascript"></script>
<script>
function friendsOnload(target) {
let h = document.body.scrollHeight;
parent.postMessage(h, target);
}
setTimeout(function () {
friendsOnload(window.parent.location.href);
}, 1000);
</script>
</html>