-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathranking.html
More file actions
167 lines (143 loc) · 3.75 KB
/
Copy pathranking.html
File metadata and controls
167 lines (143 loc) · 3.75 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>排行榜 · AI Knowledge Graph</title>
<link rel="stylesheet" href="css/style.css">
<style>
.ranking-layout {
max-width: 900px;
margin: 0 auto;
padding: 80px 24px 48px;
}
.page-title {
font-size: 24px;
font-weight: 700;
margin-bottom: 8px;
}
.page-subtitle {
color: var(--text2);
margin-bottom: 32px;
font-size: 14px;
}
/* Tab bar */
.tab-bar {
display: flex;
gap: 4px;
border-bottom: 1px solid var(--border);
margin-bottom: 24px;
}
.tab {
padding: 10px 20px;
cursor: pointer;
color: var(--text2);
font-size: 14px;
border-bottom: 2px solid transparent;
transition: var(--transition);
margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active {
color: var(--text);
border-bottom-color: var(--accent);
font-weight: 500;
}
/* Ranking list */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
display: flex;
align-items: center;
gap: 16px;
padding: 14px 16px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: var(--transition);
cursor: pointer;
}
.rank-item:hover {
border-color: var(--accent);
background: var(--bg3);
}
.rank-num {
font-size: 20px;
font-weight: 700;
width: 36px;
text-align: center;
flex-shrink: 0;
}
.rank-num.top1 { color: #ffd700; }
.rank-num.top2 { color: #c0c0c0; }
.rank-num.top3 { color: #cd7f32; }
.rank-num.other { color: var(--text3); font-size: 15px; }
.rank-info { flex: 1; min-width: 0; }
.rank-name {
font-size: 15px;
font-weight: 500;
margin-bottom: 3px;
display: flex;
align-items: center;
gap: 8px;
}
.rank-desc {
font-size: 12px;
color: var(--text2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rank-bar-wrap { width: 160px; flex-shrink: 0; }
.rank-bar-bg {
height: 6px;
background: var(--bg3);
border-radius: 3px;
overflow: hidden;
margin-bottom: 4px;
}
.rank-bar-fill {
height: 100%;
border-radius: 3px;
transition: width 0.6s ease;
}
.rank-count {
font-size: 11px;
color: var(--text3);
text-align: right;
}
/* Loading state */
#ranking-content { min-height: 300px; }
</style>
</head>
<body>
<nav class="nav">
<div class="nav-brand">🔮 <span>AI</span> Knowledge Graph</div>
<div class="nav-links">
<a href="index.html">知识图谱</a>
<a href="ranking.html" class="active">排行榜</a>
<a href="browse.html">分类浏览</a>
</div>
<div class="nav-meta" id="nav-meta">加载中…</div>
</nav>
<div class="page">
<div class="ranking-layout">
<h1 class="page-title">🏆 排行榜</h1>
<p class="page-subtitle">基于知识库中的提及频次和关联关系数量综合排名</p>
<div class="tab-bar" id="tab-bar">
<div class="tab active" data-type="product">产品</div>
<div class="tab" data-type="company">公司/院校</div>
<div class="tab" data-type="person">人物</div>
<div class="tab" data-type="paper">论文</div>
<div class="tab" data-type="concept">技术概念</div>
</div>
<div id="ranking-content">
<div class="loading">
<div class="spinner"></div>
<div>加载中…</div>
</div>
</div>
</div>
</div>
<script src="js/ranking.js"></script>
</body>
</html>