2 Commits

Author SHA1 Message Date
Vick Scarlet
b2d556a9f4 update specialthanks 2021-09-15 23:28:27 +08:00
Vick Scarlet
b1faf87dc0 add S/L 2021-09-15 20:36:22 +08:00
7 changed files with 272 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1741,6 +1741,123 @@
"name": "五彩鸿鹄",
"color": "#00ff00"
},
{
"group": 2,
"name": "红烧二花肉"
},
{
"group": 2,
"name": "顾熙豪"
},
{
"group": 2,
"name": "错过开关"
},
{
"group": 2,
"name": "飞鸟掌门"
},
{
"group": 2,
"name": "煮酒醉月"
},
{
"group": 2,
"name": "汉墨明华"
},
{
"group": 2,
"name": "人未尽”"
},
{
"group": 2,
"name": "卡纸129"
},
{
"group": 2,
"name": "shiny"
},
{
"group": 2,
"name": "Elina"
},
{
"group": 2,
"name": "钟离"
},
{
"group": 2,
"name": "IMFAH"
},
{
"group": 2,
"name": "Noah"
},
{
"group": 2,
"name": "桃酥"
},
{
"group": 2,
"name": "晨露微凉暮流光"
},
{
"group": 2,
"name": "若酷"
},
{
"group": 2,
"name": "剑绝轩"
},
{
"group": 2,
"name": "……"
},
{
"group": 2,
"name": "嘉然🥰我的嘉然🥰🥰"
},
{
"group": 2,
"name": "卡尔西尔兰"
},
{
"group": 2,
"name": "sbhehe"
},
{
"group": 2,
"name": "我永远喜欢阎魔爱"
},
{
"group": 2,
"name": "Achi-27"
},
{
"group": 2,
"name": "小僵尸是吃了跳跳糖么"
},
{
"group": 2,
"name": "Muse"
},
{
"group": 2,
"name": "Cxyfu"
},
{
"group": 2,
"name": "王柯南"
},
{
"group": 1,
"name": "NIRVANA",
"comment": "加拿大刘亦菲Regina"
},
{
"group": 2,
"name": "天边最远的云"
},
{
"group": 2,
"name": "超级无敌暴龙战士"
@@ -2745,7 +2862,7 @@
"name": "八千"
},
{
"group": 1,
"group": 2,
"name": "b 安贝慧",
"comment": " "
},
@@ -2803,5 +2920,78 @@
{
"group": 2,
"name": "太帅很苦恼"
},
{
"group": 2,
"name": "巴音"
},
{
"group": 2,
"name": "张鑫宇"
},
{
"group": 2,
"name": "zpdma"
},
{
"group": 2,
"name": "cknrsz"
},
{
"group": 2,
"name": "沈航计算机@526室"
},
{
"group": 2,
"name": "llidds"
},
{
"group": 1,
"name": "不言而言",
"comment": "花生、饮料、矿泉水!前边的腿让一让!"
},
{
"group": 2,
"name": "盘锦大汉"
},
{
"group": 2,
"name": "我是不白嫖"
},
{
"group": 2,
"name": "Alkahest"
},
{
"group": 2,
"name": "想喝胡辣汤"
},
{
"group": 2,
"name": "**"
},
{
"group": 2,
"name": "7akum1"
},
{
"group": 2,
"name": "暗夜星辰"
},
{
"group": 2,
"name": "迷路的狗剩"
},
{
"group": 2,
"name": "鎂光光同志"
},
{
"group": 2,
"name": "Jay"
},
{
"group": 2,
"name": "Jaclhui"
}
]

File diff suppressed because one or more lines are too long

View File

@@ -58,6 +58,8 @@ class App{
<button id="achievement">成就</button>
<button id="specialthanks">特别感谢</button>
<button id="themeToggleBtn">黑</button>
<button id="save">Save</button>
<button id="load">Load</button>
<div id="title">
人生重开模拟器<br>
<div style="font-size:1.5rem; font-weight:normal;">这垃圾人生一秒也不想呆了</div>
@@ -78,6 +80,58 @@ class App{
.find('#achievement')
.click(()=>this.switch('achievement'));
indexPage
.find('#save')
.click(()=>{
const data = {};
Object
.keys(localStorage)
.filter(v=>v.substr(0,4)!='goog')
.forEach(key=>data[key] = localStorage[key]);
let blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
const slice = blob.slice || blob.webkitSlice || blob.mozSlice;
blob = slice.call(blob, 0, blob.size, 'application/octet-stream');
const a = document.createElementNS('http://www.w3.org/1999/xhtml', 'a');
a.href = URL.createObjectURL(blob);
a.download = `Remake_save_${new Date().toISOString().replace(':','.')}.json`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(a.href);
});
indexPage
.find('#load')
.click(()=>{
const file = $(`<input type="file" name="file" accept="application/json" style="display: none;" />`)
file.appendTo('body');
file.click();
file.on('change', (e)=>{
this.switch('loading');
const file = e.target.files[0];
if(!file) return;
const reader = new FileReader();
reader.onload = () => {
const data = JSON.parse(reader.result);
for(const key in data) {
localStorage[key] = data[key];
}
this.switch('index');
this.setTheme(localStorage.getItem('theme'))
if(localStorage.getItem('theme') == 'light') {
indexPage.find('#themeToggleBtn').text('黑')
} else{
indexPage.find('#themeToggleBtn').text('白')
}
this.hint('加载存档成功', 'success');
}
reader.readAsText(file);
});
});
if(localStorage.getItem('theme') == 'light') {
indexPage.find('#themeToggleBtn').text('黑')
} else{

View File

@@ -266,6 +266,8 @@ ul#total li .achievementtitle,
overflow: scroll;
}
#save,
#load,
#themeToggleBtn {
padding: 0 0.7rem;
width: 6.5rem;
@@ -284,6 +286,17 @@ ul#total li .achievementtitle,
bottom: 0.5rem;
}
#save {
background-color:#007046;
color: white;
bottom: 6.5rem;
}
#load {
background-color: #fc5531;
color: white;
bottom: 3.5rem;
}
.head {
display: flex;
flex-direction: column;

View File

@@ -262,6 +262,8 @@ ul#total li .achievementtitle,
overflow: scroll;
}
#save,
#load,
#themeToggleBtn {
padding: 0 0.7rem;
width: 6.5rem;
@@ -280,6 +282,17 @@ ul#total li .achievementtitle,
bottom: 0.5rem;
}
#save {
background-color:#007046;
color: white;
bottom: 6.5rem;
}
#load {
background-color: #fc5531;
color: white;
bottom: 3.5rem;
}
.head {
display: flex;
flex-direction: column;