mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 13:33:26 +08:00
add rank btn
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -124,7 +124,7 @@ class App{
|
|||||||
<span class="title">统计</span>
|
<span class="title">统计</span>
|
||||||
<ul id="total"></ul>
|
<ul id="total"></ul>
|
||||||
<span style="padding:0.25rem; margin: 0.5rem 0; border: none; background: #ccc;"></span>
|
<span style="padding:0.25rem; margin: 0.5rem 0; border: none; background: #ccc;"></span>
|
||||||
<span class="title">成就</span>
|
<span class="title">成就<button id="rank">排行榜</button></span>
|
||||||
<ul id="achievements"></ul>
|
<ul id="achievements"></ul>
|
||||||
`)
|
`)
|
||||||
|
|
||||||
@@ -132,6 +132,9 @@ class App{
|
|||||||
.find('#specialthanks')
|
.find('#specialthanks')
|
||||||
.click(()=>this.switch('index'));
|
.click(()=>this.switch('index'));
|
||||||
|
|
||||||
|
achievementPage
|
||||||
|
.find('#rank')
|
||||||
|
.click(()=>this.hint('别卷了,没有排行榜'));
|
||||||
// Talent
|
// Talent
|
||||||
const talentPage = $(`
|
const talentPage = $(`
|
||||||
<div id="main">
|
<div id="main">
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sponsor,
|
.sponsor,
|
||||||
|
#rank,
|
||||||
#specialthanks,
|
#specialthanks,
|
||||||
#achievement {
|
#achievement {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -164,6 +165,13 @@ body {
|
|||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#rank {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 1.5rem;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
#spthx {
|
#spthx {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -221,6 +229,7 @@ body {
|
|||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: white;
|
color: white;
|
||||||
|
position: relative;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sponsor,
|
.sponsor,
|
||||||
|
#rank,
|
||||||
#specialthanks,
|
#specialthanks,
|
||||||
#achievement {
|
#achievement {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -163,6 +164,13 @@ body {
|
|||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#rank {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 1.5rem;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
#spthx {
|
#spthx {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -218,6 +226,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
position: relative;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user